3.1.2 Ajax error when editing pre-review discussions

Hi,

When trying to edit pre review discussions I get an Ajax failed error.
Php logs show the following:

PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:Array’ ←
thrown in path/to/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

I have only the default plugins installed, is this an OJS error ?

Thank you,
k457

I would like to push this because I have the same error but as far as i can tell only when trying to edit the review discussions, nowhere else.

Hi all,

Could you try turning on the show_stacktrace setting in config.inc.php, triggering the error, and posting the resulting stack trace from your PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,

this is my error log including Warnings and Notices:

[05-Jun-2019 09:21:48] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:48.334324 2019] [proxy_fcgi:error] [pid 71:tid 140168187074304] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/1

[05-Jun-2019 09:21:48] WARNING: [pool www] child 69 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:48.436321 2019] [proxy_fcgi:error] [pid 71:tid 140168640050944] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:48] WARNING: [pool www] child 68 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:48] WARNING: [pool www] child 69 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:48.785920 2019] [proxy_fcgi:error] [pid 71:tid 140168161896192] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:48] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:48.806802 2019] [proxy_fcgi:error] [pid 71:tid 140167633417984] [client 172.18.0.1:55804] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[Wed Jun 05 09:21:48.849166 2019] [proxy_fcgi:error] [pid 70:tid 140168992294656] [client 172.18.0.1:55788] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:48] WARNING: [pool www] child 68 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:48.870687 2019] [proxy_fcgi:error] [pid 71:tid 140167625025280] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:48] WARNING: [pool www] child 69 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:48] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:48.986526 2019] [proxy_fcgi:error] [pid 70:tid 140168983901952] [client 172.18.0.1:55788] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[Wed Jun 05 09:21:48.991027 2019] [proxy_fcgi:error] [pid 71:tid 140168975509248] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:49] WARNING: [pool www] child 68 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:49.105688 2019] [proxy_fcgi:error] [pid 71:tid 140168983901952] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:49] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:49] WARNING: [pool www] child 69 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:49.208381 2019] [proxy_fcgi:error] [pid 71:tid 140168992294656] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:49] WARNING: [pool www] child 68 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:49.275677 2019] [proxy_fcgi:error] [pid 70:tid 140168967116544] [client 172.18.0.1:55788] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[Wed Jun 05 09:21:49.327507 2019] [proxy_fcgi:error] [pid 71:tid 140168967116544] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:49] WARNING: [pool www] child 69 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:49] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:49] WARNING: [pool www] child 68 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:49.408425 2019] [proxy_fcgi:error] [pid 70:tid 140168958723840] [client 172.18.0.1:55788] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[Wed Jun 05 09:21:49.423786 2019] [proxy_fcgi:error] [pid 70:tid 140168740730624] [client 172.18.0.1:55802] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[Wed Jun 05 09:21:49.434763 2019] [proxy_fcgi:error] [pid 71:tid 140168958723840] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:49] WARNING: [pool www] child 69 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:49] WARNING: [pool www] child 68 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[Wed Jun 05 09:21:49.472792 2019] [proxy_fcgi:error] [pid 71:tid 140168665229056] [client 172.18.0.1:55804] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[Wed Jun 05 09:21:49.493324 2019] [proxy_fcgi:error] [pid 71:tid 140168673621760] [client 172.18.0.1:55794] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0"

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

“NOTICE: PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 801”

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

“NOTICE: PHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1088”

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

“NOTICE: PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1098”

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: preg_match() expects parameter 2 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php

on line 171"

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Warning: substr() expects parameter 1 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php

on line 50"

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php

on line 51"

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

“NOTICE: PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 62”

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

“NOTICE: PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 62”

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

“NOTICE: PHP message: PHP Warning: filemtime(): stat failed for lib/pkp/templates/Array in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51”

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

"NOTICE: PHP message: PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:Array’ ← "

[05-Jun-2019 09:21:51] WARNING: [pool www] child 127 said into stderr:

" thrown in

/app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php

on line 195"

[Wed Jun 05 09:21:51.836855 2019] [proxy_fcgi:error] [pid 71:tid 140168656836352] [client 172.18.0.1:55776] AH01071: Got error 'PHP

message: PHP Warning: Declaration of

CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /app/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0\nPHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 801\nPHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1088\nPHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1098\nPHP message: PHP Warning: preg_match() expects parameter 2 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php

on line 171\nPHP message: PHP Warning: substr() expects parameter 1 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php

on line 50\nPHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php

on line 51\nPHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 62\nPHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 62\nPHP message: PHP Warning: filemtime(): stat failed for lib/pkp/templates/Array in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51\nPHP message: PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:Array’ ← \n thrown in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php

on line 195\n’, referer:

https://ojs.sub.uni-goettingen.de/index.php/ASJ/workflow/index/39/3

Best regards,
Franzi

Hi @fpannach,

All those warnings about CustomBlockPlugin::getBlockContext are cosmetic, and can be resolved by applying this patch.

However, the problem you’re encountering seems to be related to these messages:

PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 801
PHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1088
PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1098
PHP message: PHP Warning: preg_match() expects parameter 2 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php on line 171
PHP message: PHP Warning: substr() expects parameter 1 to be string, array given in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php on line 50
PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php on line 51
PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 62
PHP message: PHP Notice: Array to string conversion in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 62
PHP message: PHP Warning: filemtime(): stat failed for lib/pkp/templates/Array in /app/ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51
PHP message: PHP Fatal error: Uncaught --> Smarty: Unable to load template ‘app:Array’ <-- \n thrown in /app/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

…in particular the Fatal error message at the end. However, it still doesn’t include any stack trace information, which should appear after that – is it possible the message got cut off?

Is it possible that you have some incompatible code mixed in with your 3.1.2 installation, e.g. plugins that come from the older installation?

Regards,
Alec Smecher
Public Knowledge Project Team

I installed OJS fresh from a docker imagine, the plugins I installed come directly from the plugin gallery.

For some reason, the last Fatal Error doesnt come with a stack trace. There are some errors though who do, but I am not sure if they have anything to do with my problem.

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

"NOTICE: PHP message: PHP Fatal error: Uncaught RuntimeException:

Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /app/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php:625"

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

“Stack trace:”

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

"#0 /app/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(335):

Slim\App->finalize(Object(APIResponse))"

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

#1 /app/ojs/lib/pkp/classes/core/APIRouter.inc.php(109): Slim\App->run()”

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

"#2 /app/ojs/lib/pkp/classes/core/Dispatcher.inc.php(134):

APIRouter->route(Object(Request))"

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

"#3 /app/ojs/lib/pkp/classes/core/PKPApplication.inc.php(252):

Dispatcher->dispatch(Object(Request))"

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

#4 /app/ojs/index.php(68): PKPApplication->execute()”

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

#5 {main}”

[07-Jun-2019 07:44:22] WARNING: [pool www] child 280 said into stderr:

" thrown in /app/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php on line 625"

The entire file from today is rather long, can I upload it somewhere instead of dumping everything here?

Hi @fpannach,

Unfortunately I’ve got some platform issues over here that are preventing me from working with Docker, but I’ll ask around if anyone else has seen this.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,
this would be great. I assume “my” editors would want to use the feature of editing discussions quite frequently. This error appears in all discussions that I try to edit, not only pre review.

Thanks!
Franziska

Dear @asmecher,

I am having the exactly same error. My error log gives the following error.

[22-Jun-2019 15:07:52 America/New_York] PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:Array’ ←
thrown in /home/ejfoodor/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

Regards,

Zaratushtra

Hi @zaratushtra,

What version of OJS are you using? Are you also using the Docker image?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

We use OJS 3.1.2 with PHP 7.2.19 and no Docker image.
It is a fresh installation we are experiencing the problem.

Regards,

Zaratushtra

I have same issue, OJS 3.1.2.0, on both versions, one upgraded from 2.x, other is clean install.

When click on edit, I’ve got error message: Failed Ajax request or invalid JSON returned.

PHP error log:
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Notice: Array to string conversion in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\classes\template\PKPTemplateManager.inc.php on line 801
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Warning: strpos() expects parameter 1 to be string, array given in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php on line 1088
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Notice: Array to string conversion in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php on line 1098
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Warning: preg_match() expects parameter 2 to be string, array given in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php on line 171
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Warning: substr() expects parameter 1 to be string, array given in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php on line 50
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Notice: Array to string conversion in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php on line 51
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Notice: Array to string conversion in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\classes\template\PKPTemplateResource.inc.php on line 62
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Notice: Array to string conversion in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\classes\template\PKPTemplateResource.inc.php on line 62
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Warning: filemtime(): stat failed for lib\pkp\templates\Array in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\classes\template\PKPTemplateResource.inc.php on line 51
[25-Jun-2019 09:00:00 Europe/Belgrade] PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:Array’ ←
thrown in C:\inetpub\wwwroot\aseestant.ceon.rs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php on line 195

Hi @Dragoljub_Djordjevic,

Are you able to post a repeatable series of steps to create this problem?

Regards,
Alec Smecher
Public Knowledge Project Team

Well, in an existing submission, I am able to add review discussion, but when I click on edit link for that discussion, I’ve got following error:
localhost says
Failed Ajax request or invalid JSON returned, and ‘Update discussion’ modal is not opening. Nothing unussual in workflow steps

Here is error log from wamp64 PHP 7.2 (previous one was from IIS php 7.1 and other OJS 3 installation)

.edit%20discussion

Blockquote
[26-Jun-2019 06:55:37 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in C:\wamp64\www\ojs3test\lib\pkp\lib\adodb\adodb.inc.php on line 1003
[26-Jun-2019 06:55:37 UTC] PHP Stack trace:
[26-Jun-2019 06:55:37 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:37 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:37 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:37 UTC] PHP 4. PKPLocale::initialize() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:131
[26-Jun-2019 06:55:37 UTC] PHP 5. AppLocale::getLocale() C:\wamp64\www\ojs3test\lib\pkp\classes\i18n\PKPLocale.inc.php:129
[26-Jun-2019 06:55:37 UTC] PHP 6. SessionManager::getManager() C:\wamp64\www\ojs3test\classes\i18n\AppLocale.inc.php:73
[26-Jun-2019 06:55:37 UTC] PHP 7. SessionManager->__construct() C:\wamp64\www\ojs3test\lib\pkp\classes\session\SessionManager.inc.php:129
[26-Jun-2019 06:55:37 UTC] PHP 8. session_start() C:\wamp64\www\ojs3test\lib\pkp\classes\session\SessionManager.inc.php:58
[26-Jun-2019 06:55:37 UTC] PHP 9. SessionManager->read() C:\wamp64\www\ojs3test\lib\pkp\classes\session\SessionManager.inc.php:58
[26-Jun-2019 06:55:37 UTC] PHP 10. SessionDAO->getSession() C:\wamp64\www\ojs3test\lib\pkp\classes\session\SessionManager.inc.php:168
[26-Jun-2019 06:55:37 UTC] PHP 11. SessionDAO->retrieve() C:\wamp64\www\ojs3test\lib\pkp\classes\session\SessionDAO.inc.php:37
[26-Jun-2019 06:55:37 UTC] PHP 12. ADODB_mysqli->Execute() C:\wamp64\www\ojs3test\lib\pkp\classes\db\DAO.inc.php:100
[26-Jun-2019 06:55:37 UTC] PHP 13. each() C:\wamp64\www\ojs3test\lib\pkp\lib\adodb\adodb.inc.php:1003
[26-Jun-2019 06:55:37 UTC] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\wamp64\www\ojs3test\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[26-Jun-2019 06:55:37 UTC] PHP Stack trace:
[26-Jun-2019 06:55:37 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:37 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:37 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:37 UTC] PHP 4. PluginRegistry::loadCategory() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:132
[26-Jun-2019 06:55:37 UTC] PHP 5. PluginRegistry::register() C:\wamp64\www\ojs3test\lib\pkp\classes\plugins\PluginRegistry.inc.php:138
[26-Jun-2019 06:55:37 UTC] PHP 6. DRIVERPlugin->register() C:\wamp64\www\ojs3test\lib\pkp\classes\plugins\PluginRegistry.inc.php:65
[26-Jun-2019 06:55:37 UTC] PHP 7. DRIVERPlugin->import() C:\wamp64\www\ojs3test\plugins\generic\driver\DRIVERPlugin.inc.php:32
[26-Jun-2019 06:55:37 UTC] PHP 8. require_once() C:\wamp64\www\ojs3test\lib\pkp\classes\plugins\Plugin.inc.php:470
[26-Jun-2019 06:55:38 UTC] PHP Notice: Array to string conversion in C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php on line 801
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->getCompileId() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:764
[26-Jun-2019 06:55:38 UTC] PHP Warning: strpos() expects parameter 1 to be string, array given in C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php on line 1088
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. TemplateManager->_getTemplateId() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1016
[26-Jun-2019 06:55:38 UTC] PHP 14. strpos() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1088
[26-Jun-2019 06:55:38 UTC] PHP Notice: Array to string conversion in C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php on line 1098
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. TemplateManager->_getTemplateId() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1016
[26-Jun-2019 06:55:38 UTC] PHP Warning: preg_match() expects parameter 2 to be string, array given in C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php on line 171
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. Smarty_Internal_Template->__construct() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1029
[26-Jun-2019 06:55:38 UTC] PHP 14. Smarty_Template_Source::load() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:168
[26-Jun-2019 06:55:38 UTC] PHP 15. preg_match() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php:171
[26-Jun-2019 06:55:38 UTC] PHP Warning: substr() expects parameter 1 to be string, array given in C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php on line 50
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. Smarty_Internal_Template->__construct() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1029
[26-Jun-2019 06:55:38 UTC] PHP 14. Smarty_Template_Source::load() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:168
[26-Jun-2019 06:55:38 UTC] PHP 15. PKPTemplateResource->populate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php:182
[26-Jun-2019 06:55:38 UTC] PHP 16. substr() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php:50
[26-Jun-2019 06:55:38 UTC] PHP Notice: Array to string conversion in C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php on line 51
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. Smarty_Internal_Template->__construct() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1029
[26-Jun-2019 06:55:38 UTC] PHP 14. Smarty_Template_Source::load() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:168
[26-Jun-2019 06:55:38 UTC] PHP 15. PKPTemplateResource->populate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php:182
[26-Jun-2019 06:55:38 UTC] PHP Notice: Array to string conversion in C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateResource.inc.php on line 62
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. Smarty_Internal_Template->__construct() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1029
[26-Jun-2019 06:55:38 UTC] PHP 14. Smarty_Template_Source::load() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:168
[26-Jun-2019 06:55:38 UTC] PHP 15. PKPTemplateResource->populate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php:182
[26-Jun-2019 06:55:38 UTC] PHP 16. PKPTemplateResource->fetchTimestamp() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php:52
[26-Jun-2019 06:55:38 UTC] PHP 17. PKPTemplateResource->_getFilename() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateResource.inc.php:51
[26-Jun-2019 06:55:38 UTC] PHP Notice: Array to string conversion in C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateResource.inc.php on line 62
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. Smarty_Internal_Template->__construct() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1029
[26-Jun-2019 06:55:38 UTC] PHP 14. Smarty_Template_Source::load() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:168
[26-Jun-2019 06:55:38 UTC] PHP 15. PKPTemplateResource->populate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php:182
[26-Jun-2019 06:55:38 UTC] PHP 16. PKPTemplateResource->fetchTimestamp() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php:52
[26-Jun-2019 06:55:38 UTC] PHP 17. PKPTemplateResource->_getFilename() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateResource.inc.php:51
[26-Jun-2019 06:55:38 UTC] PHP Warning: filemtime(): stat failed for lib\pkp\templates\Array in C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateResource.inc.php on line 51
[26-Jun-2019 06:55:38 UTC] PHP Stack trace:
[26-Jun-2019 06:55:38 UTC] PHP 1. {main}() C:\wamp64\www\ojs3test\index.php:0
[26-Jun-2019 06:55:38 UTC] PHP 2. Application->execute() C:\wamp64\www\ojs3test\index.php:68
[26-Jun-2019 06:55:38 UTC] PHP 3. Dispatcher->dispatch() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPApplication.inc.php:252
[26-Jun-2019 06:55:38 UTC] PHP 4. PKPComponentRouter->route() C:\wamp64\www\ojs3test\lib\pkp\classes\core\Dispatcher.inc.php:134
[26-Jun-2019 06:55:38 UTC] PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPComponentRouter.inc.php:257
[26-Jun-2019 06:55:38 UTC] PHP 6. QueriesGridHandler->editQuery() C:\wamp64\www\ojs3test\lib\pkp\classes\core\PKPRouter.inc.php:390
[26-Jun-2019 06:55:38 UTC] PHP 7. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\QueriesGridHandler.inc.php:464
[26-Jun-2019 06:55:38 UTC] PHP 8. QueryForm->fetch() C:\wamp64\www\ojs3test\lib\pkp\controllers\grid\queries\form\QueryForm.inc.php:308
[26-Jun-2019 06:55:38 UTC] PHP 9. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\form\Form.inc.php:200
[26-Jun-2019 06:55:38 UTC] PHP 10. TemplateManager->fetch() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateManager.inc.php:770
[26-Jun-2019 06:55:38 UTC] PHP 11. TemplateManager->_execute() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:116
[26-Jun-2019 06:55:38 UTC] PHP 12. TemplateManager->createTemplate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php:189
[26-Jun-2019 06:55:38 UTC] PHP 13. Smarty_Internal_Template->__construct() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php:1029
[26-Jun-2019 06:55:38 UTC] PHP 14. Smarty_Template_Source::load() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:168
[26-Jun-2019 06:55:38 UTC] PHP 15. PKPTemplateResource->populate() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_source.php:182
[26-Jun-2019 06:55:38 UTC] PHP 16. PKPTemplateResource->fetchTimestamp() C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_resource_custom.php:52
[26-Jun-2019 06:55:38 UTC] PHP 17. filemtime() C:\wamp64\www\ojs3test\lib\pkp\classes\template\PKPTemplateResource.inc.php:51
[26-Jun-2019 06:55:38 UTC] PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:Array’ ←
thrown in C:\wamp64\www\ojs3test\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php on line 195

Hi @Dragoljub_Djordjevic,

Can you try the following query on your database?

SELECT * FROM journal_settings WHERE setting_name='themePluginPath';

Regards,
Alec Smecher
Public Knowledge Project Team

Sure, screenshoots from both installations are in attachment (1st one from upgraded ojs2 (I have changed theme to defaultManuscript for all journals) , 2nd from clean install):
jsettings jsettings_local

Hi all,

I managed to track this down – it’s Cannot edit discussions · Issue #4607 · pkp/pkp-lib · GitHub. It’s already been fixed in OJS 3.1.2-1, but there’s a patch linked from the issue if you want to just patch this problem alone.

Regards,
Alec Smecher
Public Knowledge Project Team

Great! I’ll try this on Monday, hope it will works.

Works excellent, thanks!

Yup, fixed it for me too. Thanks for helping!