Problem after upgrade OJS from 3.2.1-2 to 3.3.0-10 (last stable version)

Dear,

After we upgraded our OJS 3.2.1-2 to de last stable version (3.3.0-10) we are facing a specific problem after we log in OJS. The buttons “Journals” and “Administration”, in the left menu are generating error 500. I´m sending the screenshot indication exactly which buttons are broken and the error received. Anyone can help to find the root cause of this?

image

Broken buttons in yellow.

image

Hello @Marcio,

Are you able to access your PHP error log and can report on errors from there? That typically gives a better indication of what might be happening.

-Roger
PKP Team

Hello @rcgillis ,

Thanks for answer me.

I found the exact error that occurs when i click on that broken buttons.

[19-May-2022 20:41:07 UTC] PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: GET http://pkp.sfu.ca/ojs/xml/ojs-version.xml?id=5a6a331c84f86&oai=https%3A%2F%2Fsite.domain%2Findex.php%2Findex%2Foai resulted in a 403 Forbidden response:

<meta http-equiv="Content-Type" content="t (truncated...) in /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create() #1 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #2 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler() #3 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run() #5 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #6 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #7 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #8 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #9 /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Client.php(182): GuzzleHttp\Promise\Promise->wait() #10 /var/www/ojs-3.3.0-10/lib/pkp/classes/xml/PKPXMLParser.inc.php(113): GuzzleHttp\Client->request() #11 /var/www/ojs-3.3.0-10/lib/pkp/classes/xml/PKPXMLParser.inc.php(199): PKPXMLParser->_getStream() #12 /var/www/ojs-3.3.0-10/lib/pkp/classes/db/XMLDAO.inc.php(52): PKPXMLParser->parseStruct() #13 /var/www/ojs-3.3.0-10/lib/pkp/classes/site/VersionCheck.inc.php(76): XMLDAO->parseStruct() #14 /var/www/ojs-3.3.0-10/lib/pkp/classes/site/VersionCheck.inc.php(44): VersionCheck::parseVersionXML() #15 /var/www/ojs-3.3.0-10/lib/pkp/classes/site/VersionCheck.inc.php(175): VersionCheck::getLatestVersion() #16 /var/www/ojs-3.3.0-10/lib/pkp/pages/management/ManagementHandler.inc.php(121): VersionCheck::checkIfNewVersionExists() #17 /var/www/ojs-3.3.0-10/lib/pkp/pages/management/ManagementHandler.inc.php(66): ManagementHandler->context() #18 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/PKPRouter.inc.php(395): ManagementHandler->settings() #19 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest() #20 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route() #21 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch() #22 /var/www/ojs-3.3.0-10/index.php(68): PKPApplication->execute() #23 {main} thrown in /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113 ^C [root@lrnpweb04 ojs-3.3.0-10]# tail -f /var/log/php-fpm/www-error.log #15 /var/www/ojs-3.3.0-10/lib/pkp/classes/site/VersionCheck.inc.php(175): VersionCheck::getLatestVersion() #16 /var/www/ojs-3.3.0-10/lib/pkp/pages/management/ManagementHandler.inc.php(121): VersionCheck::checkIfNewVersionExists() #17 /var/www/ojs-3.3.0-10/lib/pkp/pages/management/ManagementHandler.inc.php(66): ManagementHandler->context() #18 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/PKPRouter.inc.php(395): ManagementHandler->settings() #19 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest() #20 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route() #21 /var/www/ojs-3.3.0-10/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch() #22 /var/www/ojs-3.3.0-10/index.php(68): PKPApplication->execute() #23 {main} thrown in /var/www/ojs-3.3.0-10/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113 <p>Do you know what is the root cause of this?</p>

Dear,

Anyone could help me to fix this?

Hi @Marcio,

This error means that OJS tried to access a public file on PKP’s website, but it couldn’t due to permission restrictions.

Is it possible that your server is behind a firewall or proxy blocking access to external URLs?

If that’s the case, you’ll have to ask your sysadmin to whitelist http://pkp.sfu.ca/ojs/xml/ojs-version.xml so that the request doesn’t get blocked.

Hi, @janiosarmento,

Thanks for answer me. I already verified if the server can contact the pkp site and it is allowed. This error 403 is coming from pkp site. The pkp site is refusing the contact for some reason i don´t know. Do you have any idea why it is happening?

In this upgrade both tha name and IP of the server was changed. This could be the root cause of this problem?

Dear,

We found the solution. The Web Filter of our firewal was blocking the connection. We fixed this and everything is working properly.

Thanks for the attention.