OJS 3.2: Plugins not loading

Hi,

My “installed plugins” are not loading, here’s a screenshot of my issue:

image

This is the only error that my php log provides when I try to load the plugins section on the global administration:

[Tue Jul 28 07:13:22.645228 2020] [autoindex:error] [pid 2763:tid 140148230563584] [client 172.16.29.2:55955] AH01276: Cannot serve directory /ojs/ojsProd/public/site/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://XXXXXXX/index.php/index/admin/settings

but when I’m on a Journal, the log doesn’t throw any error however the navigator console throws the following:

image

I tried by replacing the plugins folder with the default one that is on the github: https://github.com/pkp/ojs but it doesn’t work.

Could this be a problem with the firewall of the company or something like that?

Best,

Juan

Hi @Juan_Lopez,

There should definitely be a server-side PHP error to go with that 500. Make sure you’re checking your PHP error log, which might be kept separately from your web server (Apache) error log.

I don’t recommend replacing the plugins directory with something from github unless you know which branch you need to use – it’s probably incompatible.

Regards,
Alec Smecher
Public Knowledge Project Team

This is my php.ini configuration for the error log:

display_errors => Off => Off
display_startup_errors => Off => Off
error_append_string => no value => no value
error_log => /var/log/php_errors.log => /var/log/php_errors.log
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
html_errors => Off => Off
ignore_repeated_errors => Off => Off
log_errors => On => On
log_errors_max_len => 1024 => 1024
track_errors => Off => Off
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
opcache.error_log => no value => no value

is there something that I’m missing in this configuration and thats why my php_errors.log is not showing any error?

Hi @Juan_Lopez,

This is more of a PHP question than an OJS question – maybe look through StackOverflow, e.g. https://serverfault.com/questions/153115/error-in-php-not-logging-or-displaying?

Regards,
Alec Smecher
Public Knowledge Project Team

Ok I had to replicate my ojs on a new virtual machine… here is the error log:

[Thu Jul 30 10:26:50.095555 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin
[Thu Jul 30 10:26:50.095624 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin
[Thu Jul 30 10:26:50.095631 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin
[Thu Jul 30 10:26:50.119171 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/pages/admin/AdminHandler.inc.php on line 87, referer: http://159.89.9.184/ur/index.php/index/admin
[Thu Jul 30 10:26:50.119226 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/pages/admin/AdminHandler.inc.php on line 87, referer: http://159.89.9.184/ur/index.php/index/admin
[Thu Jul 30 10:26:50.119236 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/pages/admin/AdminHandler.inc.php on line 87, referer: http://159.89.9.184/ur/index.php/index/admin
[Thu Jul 30 10:26:50.579101 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:50.579158 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:50.579166 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:51.563722 2020] [core:error] [pid 30581] [client 190.158.220.19:58658] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/OJS-UR/public, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:52.863231 2020] [core:error] [pid 2886] [client 190.158.220.19:58662] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/OJS-UR/public, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.185083 2020] [php7:notice] [pid 2886] [client 190.158.220.19:58662] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.185133 2020] [php7:notice] [pid 2886] [client 190.158.220.19:58662] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.185150 2020] [php7:notice] [pid 2886] [client 190.158.220.19:58662] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.204469 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.204544 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.204554 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.259829 2020] [php7:notice] [pid 2882] [client 190.158.220.19:58663] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.259873 2020] [php7:notice] [pid 2882] [client 190.158.220.19:58663] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.259890 2020] [php7:notice] [pid 2882] [client 190.158.220.19:58663] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.264258 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/controllers/grid/admin/languages/AdminLanguageGridHandler.inc.php on line 140, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.264582 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/controllers/grid/admin/languages/AdminLanguageGridHandler.inc.php on line 140, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.264859 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: it_IT in /var/www/html/OJS-UR/lib/pkp/controllers/grid/admin/languages/AdminLanguageGridHandler.inc.php on line 140, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.265162 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: fr_CA in /var/www/html/OJS-UR/lib/pkp/controllers/grid/admin/languages/AdminLanguageGridHandler.inc.php on line 140, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.267020 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/controllers/grid/admin/languages/AdminLanguageGridHandler.inc.php on line 140, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.267331 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: de_DE in /var/www/html/OJS-UR/lib/pkp/controllers/grid/admin/languages/AdminLanguageGridHandler.inc.php on line 140, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.304502 2020] [php7:notice] [pid 8794] [client 190.158.220.19:58657] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.304561 2020] [php7:notice] [pid 8794] [client 190.158.220.19:58657] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.304566 2020] [php7:notice] [pid 8794] [client 190.158.220.19:58657] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.341059 2020] [php7:notice] [pid 2911] [client 190.158.220.19:58661] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.341127 2020] [php7:notice] [pid 2911] [client 190.158.220.19:58661] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.341135 2020] [php7:notice] [pid 2911] [client 190.158.220.19:58661] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.370607 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: htmlspecialchars(): charset utf8' not supported, assuming utf-8 in /var/www/html/OJS-UR/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 575, referer: http://159.89.9.184/ur/index.php/index/admin/settings [Thu Jul 30 10:26:53.370668 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: htmlspecialchars(): charset utf8’ not supported, assuming utf-8 in /var/www/html/OJS-UR/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 575, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.370689 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: htmlspecialchars(): charset utf8' not supported, assuming utf-8 in /var/www/html/OJS-UR/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 575, referer: http://159.89.9.184/ur/index.php/index/admin/settings [Thu Jul 30 10:26:53.370699 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: htmlspecialchars(): charset utf8’ not supported, assuming utf-8 in /var/www/html/OJS-UR/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 575, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.375311 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: htmlspecialchars(): charset utf8' not supported, assuming utf-8 in /var/www/html/OJS-UR/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 336, referer: http://159.89.9.184/ur/index.php/index/admin/settings [Thu Jul 30 10:26:53.375362 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: htmlspecialchars(): charset utf8’ not supported, assuming utf-8 in /var/www/html/OJS-UR/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 336, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.401072 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: xml_parser_create(): unsupported source encoding “utf8” in /var/www/html/OJS-UR/lib/pkp/classes/xml/XMLParser.inc.php on line 223, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.401138 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: xml_parser_set_option() expects parameter 1 to be resource, bool given in /var/www/html/OJS-UR/lib/pkp/classes/xml/XMLParser.inc.php on line 224, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.401147 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: xml_parser_set_option() expects parameter 1 to be resource, bool given in /var/www/html/OJS-UR/lib/pkp/classes/xml/XMLParser.inc.php on line 225, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.401169 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: xml_parse_into_struct() expects parameter 1 to be resource, bool given in /var/www/html/OJS-UR/lib/pkp/classes/xml/XMLParser.inc.php on line 172, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.401222 2020] [php7:warn] [pid 2911] [client 190.158.220.19:58661] PHP Warning: xml_parser_free() expects parameter 1 to be resource, bool given in /var/www/html/OJS-UR/lib/pkp/classes/xml/XMLParser.inc.php on line 234, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:53.401317 2020] [php7:error] [pid 2911] [client 190.158.220.19:58661] PHP Fatal error: Uncaught Error: Call to a member function getCurrent() on null in /var/www/html/OJS-UR/lib/pkp/classes/site/VersionDAO.inc.php:135\nStack trace:\n#0 /var/www/html/OJS-UR/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.inc.php(184): VersionDAO->insertVersion(NULL, true)\n#1 /var/www/html/OJS-UR/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php(124): PluginGridHandler->loadCategoryData(Object(Request), ‘blocks’, Array)\n#2 /var/www/html/OJS-UR/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php(473): CategoryGridHandler->getGridCategoryDataElements(Object(Request), ‘blocks’)\n#3 /var/www/html/OJS-UR/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php(453): CategoryGridHandler->_renderCategoryInternally(Object(Request), Object(PluginCategoryGridRow))\n#4 /var/www/html/OJS-UR/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php(276): CategoryGridHandler->_renderCategoriesInternally(Object(Request))\n#5 /var/www/html/OJS-UR/lib/pkp/classes/controllers/grid/GridHandler.inc.p in /var/www/html/OJS-UR/lib/pkp/classes/site/VersionDAO.inc.php on line 135, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:54.068371 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:54.068449 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:54.068462 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:54.383455 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: en_US in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:54.383503 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: es_ES in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:54.383509 2020] [php7:notice] [pid 30581] [client 190.158.220.19:58658] PHP Notice: Undefined index: pt_BR in /var/www/html/OJS-UR/lib/pkp/classes/site/Site.inc.php on line 39, referer: http://159.89.9.184/ur/index.php/index/admin/settings
[Thu Jul 30 10:26:55.533519 2020] [core:error] [pid 30581] [client 190.158.220.19:58658] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/ojs3211/favicon.ico, referer: http://159.89.9.184/ur/index.php/index/admin/settings

Hi @Juan_Lopez,

I see we’re having the same conversation at OJS 3.2: language options not showing so I’ll close this topic in favour of that one.

Regards,
Alec Smecher
Public Knowledge Project Team