Loading installed plugins

@asmecher i found this error log from my hosting homedirectory/logs

–5c8d360b-H–
Message: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-global”: Permission denied
Message: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-ip”: Permission denied
Apache-Error: [file “apache2_util.c”] [line 271] [level 3] [client 66.249.65.206] ModSecurity: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-global”: Permission denied [hostname “pjo.org.pk”] [uri “/cgi-sys/ea-php70/index.php/pjo/article/view/102/78”] [unique_id “XbsnjYduO04ZjtjuXZUgAAAAAAg”]
Apache-Error: [file “apache2_util.c”] [line 271] [level 3] [client 66.249.65.206] ModSecurity: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-ip”: Permission denied [hostname “pjo.org.pk”] [uri “/cgi-sys/ea-php70/index.php/pjo/article/view/102/78”] [unique_id “XbsnjYduO04ZjtjuXZUgAAAAAAg”]
Apache-Handler: cgi-script
Stopwatch: 1572546445016917 109313 (- - -)
Stopwatch2: 1572546445016917 109313; combined=747, p1=204, p2=297, p3=0, p4=0, p5=158, sr=65, sw=1, l=0, gc=87
Producer: ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/); OWASP_CRS/3.0.2.
Server: Apache
Engine-Mode: “ENABLED”

–5c8d360b-Z–
–43170465-A–
[31/Oct/2019:23:09:55 +0500] Xbsjc4duO04ZjtjuXZUfQAAAAAg 66.249.65.206 41546 202.165.228.188 8080
–43170465-B–
GET /index.php/pjo/article/download/173/146 HTTP/1.1
Host: pjo.org.pk
X-Forwarded-Host: pjo.org.pk
X-Forwarded-Port: 80
X-Forwarded-Proto: http
X-Forwarded-Server: pjo.org.pk
X-Real-IP: 66.249.65.206
Accept: /
From: googlebot(at)googlebot.com
User-Agent: Googlebot/2.1 (+http://www.google.com/bot.html)

–43170465-F–
HTTP/1.1 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Accept-Ranges: none
Content-Disposition: attachment; filename=“173-Article Text-290-1-10-20180726.pdf”
Cache-Control: private
Pragma: public
Set-Cookie: PHPSESSID=6qdes05loah913e9idr6v1t6s6; path=/
Content-Length: 292513
Vary: Accept-Encoding,User-Agent
Content-Type: application/pdf

–43170465-H–
Message: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-global”: Permission denied
Message: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-ip”: Permission denied
Apache-Error: [file “apache2_util.c”] [line 271] [level 3] [client 66.249.65.206] ModSecurity: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-global”: Permission denied [hostname “pjo.org.pk”] [uri “/cgi-sys/ea-php70/index.php/pjo/article/download/173/146”] [unique_id “Xbsjc4duO04ZjtjuXZUfQAAAAAg”]
Apache-Error: [file “apache2_util.c”] [line 271] [level 3] [client 66.249.65.206] ModSecurity: collections_remove_stale: Failed to access DBM file “/var/cpanel/secdatadir/pjoorgpk-ip”: Permission denied [hostname “pjo.org.pk”] [uri “/cgi-sys/ea-php70/index.php/pjo/article/download/173/146”] [unique_id “Xbsjc4duO04ZjtjuXZUfQAAAAAg”]
Apache-Handler: cgi-script
Stopwatch: 1572545395646415 139367 (- - -)
Stopwatch2: 1572545395646415 139367; combined=769, p1=209, p2=300, p3=0, p4=0, p5=157, sr=57, sw=2, l=0, gc=101
Producer: ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/); OWASP_CRS/3.0.2.
Server: Apache
Engine-Mode: “ENABLED”

–43170465-Z–
–39b4757c-A–
[31/Oct/2019:23:44:23 +0500] Xbsrh2BBvTB4ypbVay9iRAAAAGU 39.40.6.56 51572 202.165.228.188 8080
–39b4757c-B–
GET /plugins/generic/pdfJsViewer/pdf.js/web/images/toolbarButton-print.png HTTP/1.1
Host: pjo.org.pk
Referer: http://pjo.org.pk/plugins/generic/pdfJsViewer/pdf.js/web/viewer.html?file=http%3A%2F%2Fpjo.org.pk%2Findex.php%2Fpjo%2Farticle%2Fdownload%2F859%2F697%2F
X-Forwarded-Host: pjo.org.pk
X-Forwarded-Port: 80
X-Forwarded-Proto: http
X-Forwarded-Server: pjo.org.pk
X-Real-IP: 39.40.6.56
Accept: image/png,image/svg+xml,image/;q=0.8,video/;q=0.8,/;q=0.5
Cookie: PHPSESSID=9m84cbs9enmq1etf5cob29b7t4
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15
Accept-Language: en-gb

[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 37
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 38
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 39
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 40
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 41
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 42
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 43
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 44
[25-Nov-2019 05:13:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 45
[25-Nov-2019 05:13:01 UTC] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/pjoorgpk/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 24
[25-Nov-2019 05:13:01 UTC] PHP Warning: Declaration of ArticleHandler::initialize($request, $args) should be compatible with PKPHandler::initialize($request) in /home/pjoorgpk/public_html/pages/article/ArticleHandler.inc.php on line 395
[25-Nov-2019 05:13:01 UTC] PHP Warning: Declaration of SubmissionFileDAO::fromRow($row) should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home/pjoorgpk/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[25-Nov-2019 05:13:01 UTC] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /home/pjoorgpk/public_html/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/includes/bootstrap.inc.php on line 49
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 139
[25-Nov-2019 05:14:09 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[25-Nov-2019 05:14:09 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[25-Nov-2019 05:14:09 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[25-Nov-2019 05:14:09 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[25-Nov-2019 05:14:09 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 35
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 36
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 37
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 38
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 39
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 40
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 41
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 42
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 43
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 44
[25-Nov-2019 05:14:09 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/pjoorgpk/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 45
[25-Nov-2019 05:14:09 UTC] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/pjoorgpk/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 24
[25-Nov-2019 05:14:09 UTC] PHP Warning: Declaration of ArticleHandler::initialize($request, $args) should be compatible with PKPHandler::initialize($request) in /home/pjoorgpk/public_html/pages/article/ArticleHandler.inc.php on line 395

Hi @hussainyousaf,

I still don’t see a message that corresponds to the 500 error message in your screenshot above. You’ll need to find that error message in order to debug it.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher please see this error messages

PHP Fatal error: Uncaught Error: Call to a member function getFileId() on null in /home/pjoorgpk/public_html/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php:1065

PHP Fatal error: require_once(): Failed opening required ‘plugins/importexport/users/PKPUserImportExportDeployment.inc.php’ (include_path=’.:/opt/cpanel/ea-php70/root/usr/share/pear’) in /home/pjoorgpk/public_html/lib/pkp/classes/plugins/Plugin.inc.php on line 458

ojs2: DB Error: Duplicate entry ‘5pes5ap1gm3tgm9g6ck7elst04’ for key ‘sessions_pkey’

PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /home/pjoorgpk/public_html/pages/issue/IssueHandler.inc.php:52

PHP Fatal error: Cannot declare class QuickSubmitPlugin, because the name is already in use in /home/pjoorgpk/public_html/plugins/importexport/quickSubmit_New/QuickSubmitPlugin.inc.php on line 248

PHP Fatal error: require_once(): Failed opening required ‘plugins/importexport/users/PKPUserImportExportDeployment.inc.php’ (include_path=’.:/opt/cpanel/ea-php70/root/usr/share/pear’) in /home/pjoorgpk/public_html/lib/pkp/classes/plugins/Plugin.inc.php on line 467

Hi @hussainyousaf,

There are several problems here, but this one jumps out at me:

PHP Fatal error: Cannot declare class QuickSubmitPlugin, because the name is already in use in /home/pjoorgpk/public_html/plugins/importexport/quickSubmit_New/QuickSubmitPlugin.inc.php on line 248

It looks like you’ve installed several copies of the quick submit plugin. Make sure you only have one installed, and that it’s compatible with your release of OJS, and that it’s installed in the right directory (plugins/importexport/quickSubmit and not plugins/importexport/quickSubmit_New).

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher i already delete this copy but still problem is there. Today i see error log, same error reporting. See below this is fatal error, Please resolve this.

[27-Nov-2019 04:21:59 UTC] PHP Fatal error: require_once(): Failed opening required ‘plugins/importexport/users/PKPUserImportExportDeployment.inc.php’ (include_path=’.:/opt/cpanel/ea-php70/root/usr/share/pear’) in /home/pjoorgpk/public_html/lib/pkp/classes/plugins/Plugin.inc.php on line 467

@asmecher i am waiting, please resolve this error.

Hi @hussainyousaf,

Does the file lib/pkp/plugins/importexport/users/PKPUserImportExportDeployment.inc.php exist in your installation directory?

Regards,
Alec Smecher
Public Knowledge Project Team

Yes it is in directory screenshoot attached

Hi @hussainyousaf,

It appears that PHP is not allowing your include_path to be set in order for OJS to load the code it’s looking for. Is it possible that your host has disabled the ini_set function? If so, you’ll probably see warnings like Warning: ini_set() has been disabled for security reasons in your PHP error log.

Regards,
Alec Smecher
Public Knowledge Project Team

Pls guide how disable I will ask my hosting support they will do this.

Hi @hussainyousaf,

Refer your host to the message I posted above and they will hopefully know what to do with it.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher my hosting services provider replying me, this is security risk that cannot modify. So please do it and please rectify my problem from one month i cannot add my previous issues. Please solve this problem.

Hi @hussainyousaf,

Unfortunately it sounds like your host has disabled a feature of PHP that OJS requires in order to run. If they have disabled the ini_set feature entirely – which I suspect is the case – you will have to use another host.

Regards,
Alec Smecher
Public Knowledge Project Team

I’m Facing the same issue :

Kindly help on it…

Error log as follows:

2020-01-12 22:54:46 PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\PLESKVHOST\vhosts\vandanapublications.com\dh.vandanapublications.com\lib\pkp\classes\i18n\LocaleFile.inc.php on line 143 php_error
2020-01-12 22:54:46 47.8.156.4 500 GET /index.php/ojs/$$$call$$$/grid/settings/plugins/settings-plugin-grid/fetch-grid _=1578849853265 HTTP/1.1 http://dh.vandanapublications.com/index.php/ojs/management/settings/website Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0 446 IIS access
2020-01-12 22:55:10 47.8.156.4 200 POST /index.php/ojs/$$$call$$$/grid/plugins/plugin-gallery-grid/fetch-grid - HTTP/1.1 http://dh.vandanapublications.com/index.php/ojs/management/settings/website Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0 5.37 K IIS access
2020-01-12 22:55:23 47.8.156.4 200 POST /index.php/ojs/$$$call$$$/grid/plugins/plugin-gallery-grid/fetch-grid - HTTP/1.1 http://dh.vandanapublications.com/index.php/ojs/management/settings/website Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0 5.37 K IIS access

Hi @Anurag_Singh,

Try extending the timeout in your PHP configuration to resolve this message:

PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\PLESKVHOST\vhosts\vandanapublications.com\dh.vandanapublications.com\lib\pkp\classes\i18n\LocaleFile.inc.php on line 143

Once you do that, please confirm whether or not that allows the plugin list to be loaded.

Note that the plugin list should not take this long to load – perhaps a second or two if the list is long – but that will probably be related to your server’s performance.

Regards,
Alec Smecher
Public Knowledge Project Team