OJS 3.1 API Error

Hi,

After login the user are redirect to journals submissions page (journals/submissions).
The same error are displayed 3 times;
Screenshot from 2017-11-01 10-46-29

And now, with broken translation:
Screenshot from 2017-11-01 10-46-59

My apache error log have 3 lines:

[Wed Nov 01 10:39:18.495940 2017] [:error] [pid 9018] [client IP] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/ojs3/html/lib/pkp/lib/vendor/slim/slim/Slim/Container.php on line 149, referer: http://ojs/caracol/submissions
[Wed Nov 01 10:39:18.496139 2017] [:error] [pid 8929] [client IP] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/ojs3/html/lib/pkp/lib/vendor/slim/slim/Slim/Container.php on line 149, referer: http://ojs/caracol/submissions
[Wed Nov 01 10:39:18.503245 2017] [:error] [pid 8949] [client IP] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/ojs3/html/lib/pkp/lib/vendor/slim/slim/Slim/Container.php on line 149, referer: http://ojs/caracol/submissions

I have no idea why.

Regards,
Tarcisio Pereira

Hi @Tarcisio_Pereira
Please see this thread Ojs 3.1 upgrade issue - #18 by asmecher

It is about php minimum requirement

2 Likes

hi @Tarcisio_Pereira,

probably the translation got lost in this new version… you can download an updated version at

and

the error is due to PHP version
check what version of PHP you are using in the webserver… it must be 5.6 <=

similar problem was commented on this post:

regards

2 Likes

Is there a resolution to this issue yet? I have the exact same issue (##api.submissions.unknownError## popup 3 times) after installation of new 3.1.1-4 OJS and running upgrade from 2.4.2. The php minimum version is not my issue as we are running PHP7.2 on our server. Has this not been resolved, 14 months after this post?