Article display page behaving differently

Our journal homepage is http://amphysiol.com/index.php/amp/index
We are using OJS 3.0.2 version
In the first (current) issue published, on the article display page:

  1. Few article are not showing download statistics and reflects - “Download data is not yet available.” e.g. http://amphysiol.com/index.php/amp/article/view/v1i1.260846
  2. On few articles display page, right side (custom block) menu is missing e.g. http://amphysiol.com/index.php/amp/article/view/v1i1.262334
  3. On few articles display page, in ‘How to cite’ box when a particular citation style is clicked - It is opening in new window instead of displaying in the same box. e.g. http://amphysiol.com/index.php/amp/article/view/v1i1.262334
    Please help is rectifying it.

I think the problem seems to be ‘ORCID ID’
On which ever page ORCID ID for any of the author is displayed, there is no display of right menu, download statistics graph and the footer.
Is it a ‘bug’ which needs to be fixed?

Hi @hannanhazari,

Check your PHP error log to see if anything useful appears there.

Regards,
Alec Smecher
Public Knowledge Project Team

The error_log file is very large approx. 73.15 MB. What specifically should i look for?
Many errors belong to
PHP Strict Standards:
PHP Deprecated:

[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/classes/core/Request.inc.php on line 68
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[25-Apr-2017 04:48:25 America/New_York] PHP Deprecated:  Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/classes/core/Request.inc.php on line 68
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/qamevedq/amphysiol.com/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/qamevedq/amphysiol.com/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/qamevedq/amphysiol.com/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/qamevedq/amphysiol.com/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of ArticleHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 19
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of ArticleHandler::initialize() should be compatible with PKPHandler::initialize($request, $args = NULL) in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 19
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of PublishedArticleDAO::getBySetting() should be compatible with ArticleDAO::getBySetting($settingName, $settingValue, $journalId = NULL, $rangeInfo = NULL) in /home/qamevedq/amphysiol.com/classes/article/PublishedArticleDAO.inc.php on line 20
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of AbntCitationPlugin::fetchCitation() should be compatible with CitationPlugin::fetchCitation($article, $issue, $journal) in /home/qamevedq/amphysiol.com/plugins/citationFormats/abnt/AbntCitationPlugin.inc.php on line 0
[25-Apr-2017 04:48:25 America/New_York] PHP Strict Standards:  Declaration of AbntCitationPlugin::manage() should be compatible with Plugin::manage($args, $request) in /home/qamevedq/amphysiol.com/plugins/citationFormats/abnt/AbntCitationPlugin.inc.php on line 0

These are few of the error logs for today

You can safely suppress the PHP Strict Standards and PHP Deprecated warnings. You are looking for errors and warnings which correspond with the access times and access clients for the behavior you are concerned about.

You might particularly search for “PHP Warning:” or “PHP Fatal:”, but generally most lines without “PHP Deprecated” and “PHP Strict” will be of interest.

167730: [02-Apr-2017 02:44:01 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 167731: [02-Apr-2017 02:44:01 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 176050: [07-Apr-2017 11:53:04 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 176051: [07-Apr-2017 11:53:04 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 176133: [07-Apr-2017 11:53:47 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 176134: [07-Apr-2017 11:53:47 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 176222: [07-Apr-2017 11:54:45 America/New_York] PHP Warning:  array_intersect(): Argument #1 is not an array in /home/qamevedq/amphysiol.com/classes/security/authorization/OjsIssueRequiredPolicy.inc.php on line 59
Line 176315: [07-Apr-2017 11:54:55 America/New_York] PHP Warning:  array_intersect(): Argument #1 is not an array in /home/qamevedq/amphysiol.com/classes/security/authorization/OjsIssueRequiredPolicy.inc.php on line 59
Line 177663: [08-Apr-2017 13:02:11 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 177683: [08-Apr-2017 13:02:12 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 177703: [08-Apr-2017 13:02:12 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 177723: [08-Apr-2017 13:02:13 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178417: [08-Apr-2017 13:11:18 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178437: [08-Apr-2017 13:11:23 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178457: [08-Apr-2017 13:11:25 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178785: [08-Apr-2017 13:19:33 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178805: [08-Apr-2017 13:19:34 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 181437: [08-Apr-2017 21:27:09 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 183364: [08-Apr-2017 22:56:38 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 183365: [08-Apr-2017 22:56:38 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 184353: [08-Apr-2017 23:03:58 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 184354: [08-Apr-2017 23:03:58 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 184736: [08-Apr-2017 23:37:18 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 184737: [08-Apr-2017 23:37:18 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 185351: [08-Apr-2017 23:40:38 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 185352: [08-Apr-2017 23:40:38 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 186041: [08-Apr-2017 23:44:27 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 186042: [08-Apr-2017 23:44:27 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 200940: [17-Apr-2017 10:23:25 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 200960: [17-Apr-2017 10:23:25 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 200980: [17-Apr-2017 10:23:26 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 201000: [17-Apr-2017 10:23:26 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 207219: [17-Apr-2017 13:26:58 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
Line 207220: [17-Apr-2017 13:26:58 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
Line 278155: [25-Apr-2017 04:45:42 America/New_York] PHP Fatal error:  Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76
Line 278177: [25-Apr-2017 04:45:55 America/New_York] PHP Fatal error:  Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76
Line 278199: [25-Apr-2017 04:45:59 America/New_York] PHP Fatal error:  Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76
Line 278322: [25-Apr-2017 04:46:20 America/New_York] PHP Fatal error:  Call to undefined method Article::getGalleys() in /home/qamevedq/amphysiol.com/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 125
Line 278379: [25-Apr-2017 04:48:08 America/New_York] PHP Fatal error:  Call to undefined method Article::getGalleys() in /home/qamevedq/amphysiol.com/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 125
Line 278436: [25-Apr-2017 04:48:20 America/New_York] PHP Fatal error:  Call to undefined method Article::getGalleys() in /home/qamevedq/amphysiol.com/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 125

@ctgraham and @asmecher
Can you please have a look at few of the lines in the PHP error log which is posted above. Is this the reason for the different behavior of the article display page? Any solution to it?

Hi @asmecher and @ctgraham
Sorry for bothering you two busy individuals. I found the culprit. The differential behavior of article display page was because of ‘some conflict’ with ‘JATS XML to embedded HTML article embedGalley’ plugin which I have enabled. After disabling the plugin, the display page works fine.

@ajnyga & @Vitaliy
I am using OJS 3.0.2 with defaultManuscript child theme. My journal URL is http://amphysiol.com.
When I enable embedGalley plugin, those article display pages with the following additional data like ORCID IDs of authors and Most read articles by the same author(s) behave erratically in the following ways:

  1. Content of the page move to the center
  2. Disappearance of right menu bar with all custom blocks
  3. Disappearance of footer
  4. Article download graph not shown and display ‘article download data not yet available
  5. Disappearance of Most read articles by the same author(s)
  6. Whenever a citation format is clicked, instead of displaying in ‘How to cite’ box a new browser tab/window is opened showing the citation format.

I feel there is a conflict between the plugins. My php error log while the embedGalley plugin was enabled showed the following errors (Few lines are pasted below)

Line 278155: [25-Apr-2017 04:45:42 America/New_York] PHP Fatal error:  Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76
Line 278177: [25-Apr-2017 04:45:55 America/New_York] PHP Fatal error:  Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76
Line 278199: [25-Apr-2017 04:45:59 America/New_York] PHP Fatal error:  Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76
Line 278322: [25-Apr-2017 04:46:20 America/New_York] PHP Fatal error:  Call to undefined method Article::getGalleys() in /home/qamevedq/amphysiol.com/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 125
Line 278379: [25-Apr-2017 04:48:08 America/New_York] PHP Fatal error:  Call to undefined method Article::getGalleys() in /home/qamevedq/amphysiol.com/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 125
Line 278436: [25-Apr-2017 04:48:20 America/New_York] PHP Fatal error:  Call to undefined method Article::getGalleys() in /home/qamevedq/amphysiol.com/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 125
Line 167730: [02-Apr-2017 02:44:01 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 167731: [02-Apr-2017 02:44:01 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 176050: [07-Apr-2017 11:53:04 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 176051: [07-Apr-2017 11:53:04 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 176133: [07-Apr-2017 11:53:47 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 176134: [07-Apr-2017 11:53:47 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 176222: [07-Apr-2017 11:54:45 America/New_York] PHP Warning:  array_intersect(): Argument #1 is not an array in /home/qamevedq/amphysiol.com/classes/security/authorization/OjsIssueRequiredPolicy.inc.php on line 59
Line 176315: [07-Apr-2017 11:54:55 America/New_York] PHP Warning:  array_intersect(): Argument #1 is not an array in /home/qamevedq/amphysiol.com/classes/security/authorization/OjsIssueRequiredPolicy.inc.php on line 59
Line 177663: [08-Apr-2017 13:02:11 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 177683: [08-Apr-2017 13:02:12 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 177703: [08-Apr-2017 13:02:12 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 177723: [08-Apr-2017 13:02:13 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178417: [08-Apr-2017 13:11:18 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178437: [08-Apr-2017 13:11:23 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178457: [08-Apr-2017 13:11:25 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178785: [08-Apr-2017 13:19:33 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 178805: [08-Apr-2017 13:19:34 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 181437: [08-Apr-2017 21:27:09 America/New_York] PHP Warning:  assert(): Assertion failed in /home/qamevedq/amphysiol.com/pages/submission/SubmissionHandler.inc.php on line 52
Line 183364: [08-Apr-2017 22:56:38 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 183365: [08-Apr-2017 22:56:38 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 184353: [08-Apr-2017 23:03:58 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 184354: [08-Apr-2017 23:03:58 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 184736: [08-Apr-2017 23:37:18 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 184737: [08-Apr-2017 23:37:18 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 185351: [08-Apr-2017 23:40:38 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 185352: [08-Apr-2017 23:40:38 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Line 186041: [08-Apr-2017 23:44:27 America/New_York] PHP Warning:  array_merge(): Argument #2 is not an array in /home/qamevedq/amphysiol.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
Line 186042: [08-Apr-2017 23:44:27 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/qamevedq/amphysiol.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
1 Like

Hi,

Thanks. The plugin is under development, so I would not use it in production just yet. I am doing some fixes this week based on Alec’s comments. Thanks for notifying about the problem!

1 Like

I actually think that you had a very old version of embedGalley because $galleys = $article->getGalleys(); is in row 145 in my current version. I think that in one of the earlier versions the code that checked for xml galleys had a problem. Maybe this is related to that.

Hi, @hannanhazari

These errors:
Line 278199: [25-Apr-2017 04:45:59 America/New_York] PHP Fatal error: Call to a member function getId() on null in /home/qamevedq/amphysiol.com/pages/article/ArticleHandler.inc.php on line 76

Are created probably because there was some content on the page, possibly images, that had a url like this: <img src="image1.jpg" />. Did you have something like that in your XML file?

What happens is that the image then gets an url like this, because it has no other base path http://amphysiol.com/index.php/amp/article/view/image1.jpg and when the browser tries to show that image the ArticleHandler.inc.php is called.

The handler then encounters the error here, because it tries to handle the image call like a article call which is of course not possible: https://github.com/pkp/ojs/blob/master/pages/article/ArticleHandler.inc.php#L76

@asmecher, I hope you followed. Should this be fixed in the handler? I can of course make sure that the in the case of embedGalley the images with no path always get some path and of course the editors should make sure that all the images are visible in any case, but I think that this scenario could cause errors in some other cases as well?

2 Likes

Thanks @ajnyga for taking your valuable time to look into the issues.
For now I have disabled the plugin, I will be waiting till the plugin is stable and code reviewed by OJS team.

The problem I mentioned above probably did not cause your problems. Your problem was due to an older version of embedGalley which tried to load an XML galley even if one did not exist for the article. I have made some fixes to the plugin during the last two days, so you could check if it works ok for you now. But for actual production use I would still wait for the official release as you mentioned.

Hi @ajnyga,

Thanks for the heads-up – I’ve added a quick tweak that’ll respond to calls for nonexistent articles with a 404 rather than a 500. See Respond with a 404 to calls for nonexistent articles · pkp/ojs@2aac68b · GitHub.

Regards,
Alec Smecher
Public Knowledge Project Team