Loading installed plugins

Hi @joapreditor,

I’m afraid there’s nothing there to explain the plugin page not loading – I’d suggest looking further up in the log, in particular for something else containing the word Fatal or Error. These warnings are cosmetic, and many have been resolved already in later releases of OJS.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I found this error in earlier logs. These errors are repeated number of times

[13-May-2020 23:20:21 Asia/Kolkata] PHP Fatal error: Call to a member function getId() on null in /home/japtronl/domains/japtronline.com/public_html/plugins/generic/webFeed/WebFeedPlugin.inc.php on line 98
[14-May-2020 03:10:46 Asia/Kolkata] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/japtronl/domains/japtronline.com/public_html/classes/i18n/AppLocale.inc.php on line 64
[14-May-2020 04:10:09 Asia/Kolkata] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/i18n/LocaleFile.inc.php on line 143
[14-May-2020 06:09:01 Asia/Kolkata] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/cache/FileCache.inc.php on line 68
[14-May-2020 10:49:41 Asia/Kolkata] PHP Fatal error: Call to a member function getQualifiedDAOName() on null in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/db/DAORegistry.inc.php on line 62
[14-May-2020 23:08:40 Asia/Kolkata] PHP Fatal error: Call to a member function getRemoteURL() on null in /home/japtronl/domains/japtronline.com/public_html/pages/article/ArticleHandler.inc.php on line 230

Hi @joapreditor,

You’ll need to identify the set of messages that correspond to the page you’re having trouble loading. To do that…

  1. Check the newest time/date in your log; make note of it.
  2. As quickly as possible, try to load the plugin list in your browser.
  3. Quickly check the logs again. Look for the date you noted earlier, and grab everything newer than that line.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I have followed your instruction and found following errors in php error log. Sorry there are lot many. I apologize for long listing of errors however, I could not identify which code may help you to resolve the issue. Therefore I searched for “fatal” word in all the logs and I am posting only one error with fatal word. Hope this will be of interest to you. Thanks

[16-May-2020 03:28:17 Asia/Kolkata] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/i18n/LocaleFile.inc.php on line 143

Hi @asmecher, These are few new log entry

[16-May-2020 03:34:40 Asia/Kolkata] PHP Notice: unserialize(): Error at offset 14739 of 36995 bytes in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/db/DAO.inc.php on line 347
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of PayPalPlugin::displayPaymentSettingsForm() should be compatible with PKPPaymethodPlugin::displayPaymentSettingsForm(&$params, $smarty) in /home/japtronl/domains/japtronline.com/public_html/plugins/paymethod/paypal/PayPalPlugin.inc.php on line 354
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/core/Request.inc.php on line 68
[16-May-2020 03:34:40 Asia/Kolkata] PHP Notice: unserialize(): Error at offset 14739 of 36995 bytes in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/db/DAO.inc.php on line 347
[16-May-2020 03:34:40 Asia/Kolkata] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_en_US.js) is not within the allowed path(s): (/home/japtronl/:/tmp:/var/tmp:/opt/alt/php56/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php56/lib/php/) in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 571
[16-May-2020 03:34:40 Asia/Kolkata] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_en.js) is not within the allowed path(s): (/home/japtronl/:/tmp:/var/tmp:/opt/alt/php56/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php56/lib/php/) in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 571
[16-May-2020 03:34:40 Asia/Kolkata] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/en_US.js) is not within the allowed path(s): (/home/japtronl/:/tmp:/var/tmp:/opt/alt/php56/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php56/lib/php/) in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 588
[16-May-2020 03:34:40 Asia/Kolkata] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/en.js) is not within the allowed path(s): (/home/japtronl/:/tmp:/var/tmp:/opt/alt/php56/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php56/lib/php/) in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 588
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of InformationBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/japtronl/domains/japtronline.com/public_html/plugins/blocks/information/InformationBlockPlugin.inc.php on line 18
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/japtronl/domains/japtronline.com/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 129
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/japtronl/domains/japtronline.com/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 129
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/japtronl/domains/japtronline.com/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 129
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/japtronl/domains/japtronline.com/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 129
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of IssueHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/japtronl/domains/japtronline.com/public_html/pages/issue/IssueHandler.inc.php on line 19
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of IssueHandler::initialize() should be compatible with PKPHandler::initialize($request, $args = NULL) in /home/japtronl/domains/japtronline.com/public_html/pages/issue/IssueHandler.inc.php on line 19
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of PublishedArticleDAO::getBySetting() should be compatible with ArticleDAO::getBySetting($settingName, $settingValue, $journalId = NULL, $rangeInfo = NULL) in /home/japtronl/domains/japtronline.com/public_html/classes/article/PublishedArticleDAO.inc.php on line 20
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method Request::getJournal() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/issue/IssueAction.inc.php on line 59
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/core/Request.inc.php on line 42
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::getUser() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/issue/IssueAction.inc.php on line 115
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 564
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of InstitutionalSubscription::isValid() should be compatible with Subscription::isValid($check = SUBSCRIPTION_DATE_BOTH, $checkDate = NULL) in /home/japtronl/domains/japtronline.com/public_html/classes/subscription/InstitutionalSubscription.inc.php on line 127
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::getRemoteDomain() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/issue/IssueAction.inc.php on line 157
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 453
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::getRemoteAddr() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/issue/IssueAction.inc.php on line 157
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 425
[16-May-2020 03:34:40 Asia/Kolkata] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home/japtronl/domains/japtronline.com/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method Config::getContextBaseUrls() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 206
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method Request::getJournal() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/plugins/blocks/information/InformationBlockPlugin.inc.php on line 48
[16-May-2020 03:34:40 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/core/Request.inc.php on line 42
[16-May-2020 03:34:41 Asia/Kolkata] PHP Deprecated: Non-static method Request::getJournal() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/plugins/blocks/role/RoleBlockPlugin.inc.php on line 48
[16-May-2020 03:34:41 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/classes/core/Request.inc.php on line 42
[16-May-2020 03:34:41 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::getUser() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/plugins/blocks/role/RoleBlockPlugin.inc.php on line 49
[16-May-2020 03:34:41 Asia/Kolkata] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 564

Hi @joapreditor,

It’s not normal for the plugin page to take longer than 30 seconds to load, but you could try resolving this message:

[16-May-2020 03:28:17 Asia/Kolkata] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/japtronl/domains/japtronline.com/public_html/lib/pkp/classes/i18n/LocaleFile.inc.php on line 143

…by extending your PHP time limit in your PHP configuration.

Beyond that, I suspect you’re still not pinpointing the right messages in the log. Try to follow the instructions above to narrow down the volume of log messages you’ll need to look through.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thanks for suggestion. Now the plugin page is loading. I did the following to resolve the issue

  1. Checked the php.ini file and its content
  2. Checked the contents of .htaccess file

I found that the settings in these two files were mismatching and then I corrected the files and fed same data.

This solved the problem and now the page is loading properly and instantly within 5-10 secs

1 Like

Hi @asmecher,

I have the same problem with the following PHP error log:

PHP Fatal error: Cannot declare class QuickSubmitPlugin, because the name is already in use in /var/www/html/plugins/importexport/quickSubmit-master/QuickSubmitPlugin.inc.php on line 0

even though there is no Quick Submit Plugin in /var/www/html/plugins/importexport/ and the installed plugin keep loading with no result,

please can you help?

Hi @Yolla,

I think you have several copies of the Quick Submit plugin installed (one in quickSubmit-master, and at least one somewhere else). I would suggest using the Plugin Gallery to install plugins – it’s important for plugins to be installed in the right place, and I also suspect you’re installing a version of the plugin that’s not compatible with OJS. The Plugin Gallery will take care of both.

Next time, could you post a new topic rather than reopening an old one? That’ll help keep the forum organized.

Thanks,
Alec Smecher
Public Knowledge Project Team