Problems after upgrading OMP 3.2.0.3

Hi @asmecher,
I’ve just installed OMP 3.2.0.3 and installation was successful but I have these warnings in my error.log:

  • [Wed May 13 13:50:29.450622 2020] [php7:warn] [pid 104170] [client x.x.x:37372] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/omp/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https://x.x.x/index.php/press1/management/settings/website

  • [Wed May 13 13:50:30.116224 2020] [php7:warn] [pid 104169] [client x.x.x:37373] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/gateways/README/index.php) is not within the allowed path(s): (/home/omp/:/home/omp/plugins/gateway:/usr/share/php5/:/var/lib/php5/:/tmp/:/:/ompdata) in /home/omp/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 243, referer: https://x.x.x/index.php/press1/management/settings/website

No plugins can be searched in plugin gallery. When I search for a plugin, there’s nothing to return. My proxy is well configurated, because I can get to pkp.sfu.ca with a wget command. And it has been checked that there’s a request to pkp.sfu.ca from my server and that pkp.sfu.ca returns a reply to my server. But I get nothing in plugin gallery.

I’ve just installed OJS 3.2.0.3 and I can’t search for plugins either.

Thanks.
Regards.

Hi @rmga,

Is your proxy configured in config.inc.php?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi!

Yes:
http_host = x.x.x.x
http_port = 8080

I’ve tried by configurating allow_url_fopen=Off on /etc/php.ini, but I get nothing. These are the logs:

[Thu May 14 08:45:55.944929 2020] [php7:warn] [pid 73900] [client1x.x.x.x9622] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 39

[Thu May 14 08:46:24.583977 2020] [php7:warn] [pid 73931] [client x.x.x.x:9669] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https://x.x.x/index.php/rev1/management/settings/website

[Thu May 14 08:46:35.136802 2020] [php7:warn] [pid 73934] [client x.x.x.x:9676] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https:/x.x.x/index.php/rev1/management/settings/website

Thanks.
Regards.

Hi @rmga,

The warning:

[Wed May 13 13:50:30.116224 2020] [php7:warn] [pid 104169] [client x.x.x:37373] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/gateways/README/index.php) is not within the allowed path(s): (/home/omp/:/home/omp/plugins/gateway:/usr/share/php5/:/var/lib/php5/:/tmp/:/:/ompdata) in /home/omp/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 243, referer: https://x.x.x/index.php/press1/management/settings/website

…appears because you seem to have a file called README in plugins/gateways; I’m not sure where this came from but you should be able to remove it to resolve the warning. (This will be ignored without causing a warning in a future release.)

As for this warning:

[Wed May 13 13:50:29.450622 2020] [php7:warn] [pid 104170] [client x.x.x:37372] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/omp/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https://x.x.x/index.php/press1/management/settings/website

…it explains why the Plugin Gallery is empty. Are there any related warnings/errors appearing above that?

There is not enough information to track down the cause of the warning…

[Thu May 14 08:45:55.944929 2020] [php7:warn] [pid 73900] [client1x.x.x.x9622] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 39

…but I suspect it is cosmetic. To track it down, you’d probably need to temporary edit lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php at line 39 to dump a stack trace, which would help indicate the cause of the problem.

Regards,
Alec Smecher
Public Knowledge Project Team

And how can I dump a stack trace on that php file?

There’s no log above “empty gallery” log :frowning:

Is there any way to get more trace for that problem?

Thanks.

Regards,

Hi @rmga,

You can dump a stack trace to the PHP log by calling:

error_log(print_r(debug_backtrace(),true));

The output from this can be very verbose, so I would caution you to only call it when you need to. For the above warning, you could use:

if (!is_string($string)) error_log(print_r(debug_backtrace(),true));

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks so much, @asmecher

What’s the name of the php file where I need to add the if clause?
Regards.

Hi @rmga,

It’s the one I mentioned above: lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
I added the if clause you toldme at the end of the file:
image
but I get nothing at all in logs. Only the usual log:

[Mon May 18 10:43:50.264925 2020] [php7:warn] [pid 38271] [client 192.168.128.73:48203] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https://trevistas.uah.es/index.php/Quodlibet/management/settings/website

Hi @rmga,

You’ve added that after the return statements, so it’ll never get executed. It needs to be added higher up in the file (ideally at the very beginning of the function).

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
if I add that line at the beginning of the function, when I run the web, I get a screen in blank:

image
Could you tell me where I have to add it exactly?
Thanks a lot.
Regards.

Hi @rmga,

The blank screen probably corresponds to a message in your PHP error log. Can you check to see what appears there?

Regards,
Alec Smecher
Public Knowledge Project Team

You’re right. The log shows:
[Thu May 28 18:42:15.832936 2020] [php7:warn] [pid 78720] [client 192.168.128.73:62663] PHP Warning: print_r(): Couldn’t fetch mysqli_result in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 30
[Thu May 28 18:42:15.832968 2020] [php7:warn] [pid 78720] [client 192.168.128.73:62663] PHP Warning: print_r(): Property access is not allowed yet in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 30
[Thu May 28 18:42:15.833011 2020] [php7:warn] [pid 78720] [client 192.168.128.73:62663] PHP Warning: print_r(): Couldn’t fetch mysqli_result in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 30
[Thu May 28 18:42:15.833121 2020] [php7:warn] [pid 78720] [client 192.168.128.73:62663] PHP Warning: print_r(): Property access is not allowed yet in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 30
[Thu May 28 18:42:15.907469 2020] [php7:error] [pid 78720] [client 192.168.128.73:62663] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98570240 bytes) in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 30

Hi @rmga,

This is the relevant message:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98570240 bytes) in /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 30

It means you’ll need to increase your PHP memory_limit setting, at least temporarily to get this debug information into the log.

However, I suspect it’ll be possible to reduce the amount of memory needed by changing:

if (!is_string($string)) error_log(print_r(debug_backtrace(),true));

…to…

if (!is_string($string)) error_log(print_r(debug_backtrace(0),true));

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks a lot @asmecher.
I’ve just fixed the memory in my php.ini and now I get lots of messages. I’ll try to put the here for you to revise. It’s a very large log, so I can only insert a few lines here. I’ll do it in two messages:

[Fri May 29 10:58:44.965363 2020] [php7:notice] [pid 53405] [client X.X.X.X:8679] Array\n(\n [0] => Array\n (\n [file] => /home/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php\n [line] => 1468\n [function] => smarty_modifier_escape\n [args] => Array\n (\n [0] => \n [1] => html\n [2] => ISO-8859-1\n )\n\n )\n\n [1] => Array\n (\n [file] => /home/ojs/cache/t_compile/9d70773fc496ba9444fc5a8da3fbd6184f1a1d9c_0.app.formformSection.tpl.php\n [line] => 28\n [function] => smartyEscape\n [class] => PKPTemplateManager\n [type] => ->\n [args] => Array\n (\n [0] => \n )\n\n )\n\n [2] => Array\n (\n [file] => /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php\n [line] => 123\n [function] => content_5eb3c46eea55a6_36743814\n [args] => Array\n (\n [0] => Smarty_Internal_Template Object\n (\n [_objType] => 2\n [smarty] => TemplateManager Object\n (\n [_styleSheets:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [stylesheet] => Array\n (\n [style] => https://xxxxx.es/index.php/Quodlibet/$$$call$$$/page/page/css?name=stylesheet\n [inline] => \n )\n\n [fontNotoSans] => Array\n (\n [style] => //fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic\n [inline] => \n )\n\n [fontAwesome] => Array\n (\n [style] => https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_javaScripts:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [jQuery] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\n [inline] => \n )\n\n [jQueryUI] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js\n [inline] => \n )\n\n [jQueryTagIt] => Array\n (\n [script] => https://xxxxx.es/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js\n [inline] => \n )\n\n [popper] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/popper/popper.js\n [inline] => \n )\n\n [bsUtil] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/util.js\n [inline] => \n )\n\n [bsDropdown] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/dropdown.js\n [inline] => \n )\n\n [default] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/main.js\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_htmlHeaders:PKPTemplateManager:private] => Array\n (\n )\n\n [_constants:PKPTemplateManager:private] => Array\n (\n [REALLY_BIG_NUMBER] => 10000\n [UPLOAD_MAX_FILESIZE] => 2M\n [WORKFLOW_STAGE_ID_PUBLISHED] => 0\n [WORKFLOW_STAGE_ID_SUBMISSION] => 1\n [WORKFLOW_STAGE_ID_INTERNAL_REVIEW] => 2\n [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW] => 3\n [WORKFLOW_STAGE_ID_EDITING] => 4\n [WORKFLOW_STAGE_ID_PRODUCTION] => 5\n [INSERT_TAG_VARIABLE_TYPE_PLAIN_TEXT] => PLAIN_TEXT\n [ROLE_ID_MANAGER] => 16\n [ROLE_ID_SITE_ADMIN] => 1\n [ROL
[Fri May 29 10:58:45.683857 2020] [php7:error] [pid 53405] [client X.X.X.X:8679] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/ojs/lib/pkp/classes/i18n/LocaleFile.inc.php on line 154, referer: https://xxxxx.es/index.php/Quodlibet/management/settings/website
[Fri May 29 10:58:45.620460 2020] [php7:notice] [pid 53402] [client X.X.X.X:8677] Array\n(\n [0] => Array\n (\n [file] => /home/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php\n [line] => 1468\n [function] => smarty_modifier_escape\n [args] => Array\n (\n [0] => 1\n [1] => javascript\n [2] => ISO-8859-1\n )\n\n )\n\n [1] => Array\n (\n [file] => /home/ojs/cache/t_compile/b602b0f5ec47dbc29acdf1d1108881af6aa1e22c^4912f05bbf9193b6e3b34341126ecc3fbe974c23_0.app.controllersgridfeaturefea.php\n [line] => 53\n [function] => smartyEscape\n [class] => PKPTemplateManager\n [type] => ->\n [args] => Array\n (\n [0] => 1\n [1] => javascript\n )\n\n )\n\n [2] => Array\n (\n [file] => /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php\n [line] => 123\n [function] => content_5eb3e714f0fc85_36055792\n [args] => Array\n (\n [0] => Smarty_Internal_Template Object\n (\n [_objType] => 2\n [smarty] => TemplateManager Object\n (\n [_styleSheets:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [stylesheet] => Array\n (\n [style] => https://xxxxx.es/index.php/Quodlibet/$$$call$$$/page/page/css?name=stylesheet\n [inline] => \n )\n\n [fontNotoSans] => Array\n (\n [style] => //fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic\n [inline] => \n )\n\n [fontAwesome] => Array\n (\n [style] => https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_javaScripts:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [jQuery] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\n [inline] => \n )\n\n [jQueryUI] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js\n [inline] => \n )\n\n [jQueryTagIt] => Array\n (\n [script] => https://xxxxx.es/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js\n [inline] => \n )\n\n [popper] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/popper/popper.js\n [inline] => \n )\n\n [bsUtil] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/util.js\n [inline] => \n )\n\n [bsDropdown] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/dropdown.js\n [inline] => \n )\n\n [default] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/main.js\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_htmlHeaders:PKPTemplateManager:private] => Array\n (\n )\n\n [_constants:PKPTemplateManager:private] => Array\n (\n [REALLY_BIG_NUMBER] => 10000\n [UPLOAD_MAX_FILESIZE] => 2M\n [WORKFLOW_STAGE_ID_PUBLISHED] => 0\n [WORKFLOW_STAGE_ID_SUBMISSION] => 1\n [WORKFLOW_STAGE_ID_INTERNAL_REVIEW] => 2\n [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW] => 3\n [WORKFLOW_STAGE_ID_EDITING] => 4\n [WORKFLOW_STAGE_ID_PRODUCTION] => 5\n [INSERT_TAG_VARIABLE_TYPE_PLAIN_TEXT] => PLAIN_TEXT\n [ROLE_ID_MANAGER] => 16\n

[Fri May 29 11:00:54.980632 2020] [php7:notice] [pid 53413] [client X.X.X.X:8711] Array\n(\n [0] => Array\n (\n [file] => /home/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php\n [line] => 1468\n [function] => smarty_modifier_escape\n [args] => Array\n (\n [0] => \n [1] => html\n [2] => ISO-8859-1\n )\n\n )\n\n [1] => Array\n (\n [file] => /home/ojs/cache/t_compile/9d70773fc496ba9444fc5a8da3fbd6184f1a1d9c_0.app.formformSection.tpl.php\n [line] => 27\n [function] => smartyEscape\n [class] => PKPTemplateManager\n [type] => ->\n [args] => Array\n (\n [0] => \n )\n\n )\n\n [2] => Array\n (\n [file] => /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php\n [line] => 123\n [function] => content_5eb3c46eea55a6_36743814\n [args] => Array\n (\n [0] => Smarty_Internal_Template Object\n (\n [_objType] => 2\n [smarty] => TemplateManager Object\n (\n [_styleSheets:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [stylesheet] => Array\n (\n [style] => https://xxxxx.es/index.php/Quodlibet/$$$call$$$/page/page/css?name=stylesheet\n [inline] => \n )\n\n [fontNotoSans] => Array\n (\n [style] => //fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic\n [inline] => \n )\n\n [fontAwesome] => Array\n (\n [style] => https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_javaScripts:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [jQuery] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\n [inline] => \n )\n\n [jQueryUI] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js\n [inline] => \n )\n\n [jQueryTagIt] => Array\n (\n [script] => https://xxxxx.es/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js\n [inline] => \n )\n\n [popper] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/popper/popper.js\n [inline] => \n )\n\n [bsUtil] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/util.js\n [inline] => \n )\n\n [bsDropdown] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/dropdown.js\n [inline] => \n )\n\n [default] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/main.js\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_htmlHeaders:PKPTemplateManager:private] => Array\n (\n )\n\n [_constants:PKPTemplateManager:private] => Array\n (\n [REALLY_BIG_NUMBER] => 10000\n [UPLOAD_MAX_FILESIZE] => 2M\n [WORKFLOW_STAGE_ID_PUBLISHED] => 0\n [WORKFLOW_STAGE_ID_SUBMISSION] => 1\n [WORKFLOW_STAGE_ID_INTERNAL_REVIEW] => 2\n [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW] => 3\n [WORKFLOW_STAGE_ID_EDITING] => 4\n [WORKFLOW_STAGE_ID_PRODUCTION] => 5\n [INSERT_TAG_VARIABLE_TYPE_PLAIN_TEXT] => PLAIN_TEXT\n [ROLE_ID_MANAGER] => 16\n [ROLE_ID_SITE_ADMIN] => 1\n [ROL

[Fri May 29 11:01:00.171778 2020] [php7:notice] [pid 53413] [client X.X.X.X:8711] Array\n(\n [0] => Array\n (\n [file] => /home/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php\n [line] => 1468\n [function] => smarty_modifier_escape\n [args] => Array\n (\n [0] => \n [1] => html\n [2] => ISO-8859-1\n )\n\n )\n\n [1] => Array\n (\n [file] => /home/ojs/cache/t_compile/9d70773fc496ba9444fc5a8da3fbd6184f1a1d9c_0.app.formformSection.tpl.php\n [line] => 28\n [function] => smartyEscape\n [class] => PKPTemplateManager\n [type] => ->\n [args] => Array\n (\n [0] => \n )\n\n )\n\n [2] => Array\n (\n [file] => /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php\n [line] => 123\n [function] => content_5eb3c46eea55a6_36743814\n [args] => Array\n (\n [0] => Smarty_Internal_Template Object\n (\n [_objType] => 2\n [smarty] => TemplateManager Object\n (\n [_styleSheets:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [stylesheet] => Array\n (\n [style] => https://xxxxx.es/index.php/Quodlibet/$$$call$$$/page/page/css?name=stylesheet\n [inline] => \n )\n\n [fontNotoSans] => Array\n (\n [style] => //fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic\n [inline] => \n )\n\n [fontAwesome] => Array\n (\n [style] => https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_javaScripts:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [jQuery] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\n [inline] => \n )\n\n [jQueryUI] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js\n [inline] => \n )\n\n [jQueryTagIt] => Array\n (\n [script] => https://xxxxx.es/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js\n [inline] => \n )\n\n [popper] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/popper/popper.js\n [inline] => \n )\n\n [bsUtil] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/util.js\n [inline] => \n )\n\n [bsDropdown] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/dropdown.js\n [inline] => \n )\n\n [default] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/main.js\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_htmlHeaders:PKPTemplateManager:private] => Array\n (\n )\n\n [_constants:PKPTemplateManager:private] => Array\n (\n [REALLY_BIG_NUMBER] => 10000\n [UPLOAD_MAX_FILESIZE] => 2M\n [WORKFLOW_STAGE_ID_PUBLISHED] => 0\n [WORKFLOW_STAGE_ID_SUBMISSION] => 1\n [WORKFLOW_STAGE_ID_INTERNAL_REVIEW] => 2\n [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW] => 3\n [WORKFLOW_STAGE_ID_EDITING] => 4\n [WORKFLOW_STAGE_ID_PRODUCTION] => 5\n [INSERT_TAG_VARIABLE_TYPE_PLAIN_TEXT] => PLAIN_TEXT\n [ROLE_ID_MANAGER] => 16\n [ROLE_ID_SITE_ADMIN] => 1\n [ROL
[Fri May 29 11:01:10.705393 2020] [php7:notice] [pid 53413] [client X.X.X.X:8711] Array\n(\n [0] => Array\n (\n [file] => /home/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php\n [line] => 1468\n [function] => smarty_modifier_escape\n [args] => Array\n (\n [0] => \n [1] => html\n [2] => ISO-8859-1\n )\n\n )\n\n [1] => Array\n (\n [file] => /home/ojs/cache/t_compile/9d70773fc496ba9444fc5a8da3fbd6184f1a1d9c_0.app.formformSection.tpl.php\n [line] => 28\n [function] => smartyEscape\n [class] => PKPTemplateManager\n [type] => ->\n [args] => Array\n (\n [0] => \n )\n\n )\n\n [2] => Array\n (\n [file] => /home/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php\n [line] => 123\n [function] => content_5eb3c46eea55a6_36743814\n [args] => Array\n (\n [0] => Smarty_Internal_Template Object\n (\n [_objType] => 2\n [smarty] => TemplateManager Object\n (\n [_styleSheets:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [stylesheet] => Array\n (\n [style] => https://xxxxx.es/index.php/Quodlibet/$$$call$$$/page/page/css?name=stylesheet\n [inline] => \n )\n\n [fontNotoSans] => Array\n (\n [style] => //fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic\n [inline] => \n )\n\n [fontAwesome] => Array\n (\n [style] => https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_javaScripts:PKPTemplateManager:private] => Array\n (\n [frontend] => Array\n (\n [10] => Array\n (\n [jQuery] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\n [inline] => \n )\n\n [jQueryUI] => Array\n (\n [script] => //ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js\n [inline] => \n )\n\n [jQueryTagIt] => Array\n (\n [script] => https://xxxxx.es/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js\n [inline] => \n )\n\n [popper] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/popper/popper.js\n [inline] => \n )\n\n [bsUtil] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/util.js\n [inline] => \n )\n\n [bsDropdown] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/lib/bootstrap/dropdown.js\n [inline] => \n )\n\n [default] => Array\n (\n [script] => https://xxxxx.es/plugins/themes/default/js/main.js\n [inline] => \n )\n\n )\n\n )\n\n )\n\n [_htmlHeaders:PKPTemplateManager:private] => Array\n (\n )\n\n [_constants:PKPTemplateManager:private] => Array\n (\n [REALLY_BIG_NUMBER] => 10000\n [UPLOAD_MAX_FILESIZE] => 2M\n [WORKFLOW_STAGE_ID_PUBLISHED] => 0\n [WORKFLOW_STAGE_ID_SUBMISSION] => 1\n [WORKFLOW_STAGE_ID_INTERNAL_REVIEW] => 2\n [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW] => 3\n [WORKFLOW_STAGE_ID_EDITING] => 4\n [WORKFLOW_STAGE_ID_PRODUCTION] => 5\n [INSERT_TAG_VARIABLE_TYPE_PLAIN_TEXT] => PLAIN_TEXT\n [ROLE_ID_MANAGER] => 16\n [ROLE_ID_SITE_ADMIN] => 1\n [ROL
[Fri May 29 11:01:11.371875 2020] [php7:warn] [pid 53413] [client X.X.X.X:8711] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https://xxxxx.es/index.php/Quodlibet/management/settings/website

Regards.

Hi @rmga,

I’ve reviewed the code and can’t track down the source of the htmlspecialchars() expects parameter 1 to be string, array given warning. However, I can confirm that it’s cosmetic and shouldn’t cause problems in your installation. Were you able to extend the execution time limit, and did it result in the plugin area starting to work?

Regards,
Alec Smecher
Public Knowledge Project Team

Yes, I extended the execution time limit, but plugin gallery still are empty.
Regards.

Hi @rmga,

Do you still see the timeout message in your PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

No, there’s no timeout in Php error log.
Regards.