[OJS 3.1.2-1] Error in Submission

Hello everybody! How are you?

I have installed OJS 3.1.2-1. It works with Nginx and PHP 7.0

When I try to access to the submissions section through the control panel, this error is displayed:

error

(The original translation is “An unexpected error has occurred. Please reload the page and try again.” for the key api.submissions.unknownError)

The error log does not specify anything relevant. This one is the following:

2019/08/06 15:10:36 [error] 1707#1707: *12732631 FastCGI sent in stderr: "PHP message: PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /ojs/generic/driver/DRIVERDAO.inc.php on line 19

PHP message: PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /ojs/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 100" while reading response header from upstream, client: 10.10.1.10, server: antigua.unlam.edu.ar, request: “GET /index.php?journal=antigua_matanza&page=submissions HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “antigua.unlam.edu.ar”

2019/08/06 15:10:36 [error] 1707#1707: *12732626 FastCGI sent in stderr: "PHP message: PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /ojs/plugins/generic/driver/DRIVERDAO.inc.php on line 19

PHP message: PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /ojs/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 100" while reading response header from upstream, client: 10.10.1.10, server: antigua.unlam.edu.ar, request: “GET /index.php?journal=antigua_matanza&component=page.page&op=css HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “antigua.unlam.edu.ar”, referrer: “https://antigua.unlam.edu.ar/index.php?journal=antigua_matanza&page=submissions

PHP message: PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /ojs/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 100" while reading response header from upstream, client: 10.10.1.10, server: antigua.unlam.edu.ar, request: “GET /index.php?journal=antigua_matanza&component=page.page&op=user-nav-backend&_=1565115028960 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “antigua.unlam.edu.ar”, referrer: “https://antigua.unlam.edu.ar/index.php?journal=antigua_matanza&page=submissions

PHP message: ojs2: 404 Not Found" while reading response header from upstream, client: 10.10.1.10, server: antigua.unlam.edu.ar, request: “GET /index.php?journal=antigua_matanza&endpoint=/antigua_matanza/api/v1/submissions&status=1&assignedTo=-1&searchPhrase=&count=20&offset=0&=1565115028961 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “antigua.unlam.edu.ar”, referrer: “https://antigua.unlam.edu.ar/index.php?journal=antigua_matanza&page=submissions

What can I do in order to fix this?

regards,

Emanuel

Hello everybody!

Please, I wonder if someone could help me.

Thanks!

Hi @emanuelcarbone,

I’d suggest using your web browser’s inspection tools to see what your browser is receiving in response to the request for a list of submissions.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher, first of all, thank you for answering!

This is what I see in the browser’s inspection tools. It seems to be a problem with JQuery.

error

error2

Regards,

Emanuel

Hello everybody!

I have been using browser’s inspection tools and the conflicting requested URLs are:

https://antigua.unlam.edu.ar/index.php?journal=antigua_matanza&endpoint=/antigua_matanza/api/v1/submissions&status=1&assignedTo=-1&searchPhrase=&count=20&offset=0&=1567801623228

https://antigua.unlam.edu.ar/index.php?journal=antigua_matanza&endpoint=/antigua_matanza/api/v1/submissions&status=1&searchPhrase=&count=20&offset=0&=1567801623229

https://antigua.unlam.edu.ar/index.php?journal=antigua_matanza&endpoint=/antigua_matanza/api/v1/submissions&status%5B%5D=4&status%5B%5D=3&searchPhrase=&count=20&offset=0&=1567801623230

Is there a problem with them? I mean, in their “construction”

Regards,

Emanuel

Hi @emanuelcarbone,

I think the problem is being caused by the use of path_info_disabled in config.inc.php. If it’s possible to disable this setting, I’d strongly encourage it.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher, thank you for answering!

Yes, I have set On path_info_disabled because my installation is working on Nginx and when this variable was in Off, the OJS threw a 404.

Need I to make some modifications in my virtualhost in order to disable path_info_disabled without problems?

Regards,

Emanuel

Hi @emanuelcarbone,

Yes, it’s best to get PATH_INFO URLs working, and you’ll need to tinker with your web server’s configuration for that. See this thread for some ways to test it outside of OJS.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher!

We’ve decided to change our web server to Apache2, this solved the problem correctly.

Thanks a lot for helping!

Regards,

Emanuel

1 Like