Installing OJS manager.inc.php line 1294

After installing OJS, this error shows up. We enabled “display errors” option in config file. Only the login page for the admin is working, after login, this error show up.
Cannot go any further

Hi @almokbelr,

Can you please indicate which specific version you’re using (e.g. 3.3.0-17)? Please include this your posts as it is important for others.

-Roger
PKP Team

good day!

OJS 3.3 LTS

Hi @almokbelr,

Thank you - but it would be helpful to know specific version - typically this will be noted like this: 3.3.0-17. Please see here: How do I determine my PKP software's version?, if you need assistance with how to do that.

-Roger
PKP Team

sure, here you go 3.3.0-17

1 Like

Thanks - I’ll see if one of our team members can have a look when they are available.

-Roger
PKP Team

Hi @almokbelr,

If you send PHP errors to the browser, they’ll interfere with AJAX requests; I’d recommend sending PHP errors to the log, and then if/when you encounter a problem, checking what appears there.

The cURL error might’ve been a temporary network issue, or if your server is behind a proxy, you might need to configure the [proxy] part of the config.inc.php configuration file. OJS contacts the PKP server when you use the admin interface in order to check the latest available version of OJS, and this error indicates that it couldn’t do that.

Regards,
Alec Smecher
Public Knowledge Project Team

good day,
we enabled “display errors” option from the config file in order to find what is going wrong. when this option if off, OJS only shows a blank page. PHP is already sending the errors to the log.
does OJS needs to contact PKP server to function well? there is no internet connection on the OJS server at the moment.

thank you.

good day!

Your prompt response would be appreciated.

Hi @almokbelr,

OJS needs a connection in order to check the latest version, load the Plugin Gallery, and if you have the “beacon” feature enabled, to provide a unique ID and URL to the PKP server for statistics and security purposes. You can disable the upgrade warning (show_upgrade_warning) and beacon (enable_beacon) in config.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team

OJS installation was done correctly. All requirements are met. However, it is still not functioning well.
After installation, I accessed the login page (via URL which was added in "base_url” option in config file) and entered the admin credential (which was provided during installation process):

After hitting “Login” this error comes: (in some browsers, it shows a blank page)

However, if I pressed the back button in my browser to go to the previous page, suddenly it shows the admin profile page and I can edit and save changes in the admin profile:

“show_upgrade_warning” is now off, and “enable_beacon” was already off. the installation supposed to be done successfully. However, OJS still not working.

Hi @almokbelr,

Can you check if something different appears in your PHP error log?

(OJS isn’t designed to be operated without access to external services – I believe it downloads GeoIP information after installation, and important integrations with CrossRef, ORCiD, and others require access to 3rd party APIs. I don’t recommend trying to run OJS without giving it the ability to contact external services.)

Regards,
Alec Smecher
Public Knowledge Project Team

good day,
please check PHP error log below :

[24-Jul-2024 09:31:14 Asia/Kuwait] PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 56: Recv failure: Connection was reset (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:201
Stack trace:
#0 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection()
#1 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError()
#2 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish()
#3 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#4 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#5 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\PrepareBodyMiddleware.php(37): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#6 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Middleware.php(29): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#7 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#8 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke()
#9 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#10 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Client.php(351): GuzzleHttp\HandlerStack->__invoke()
#11 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Client.php(162): GuzzleHttp\Client->transfer()
#12 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Client.php(182): GuzzleHttp\Client->requestAsync()
#13 E:\ojs\lib\pkp\classes\xml\PKPXMLParser.inc.php(113): GuzzleHttp\Client->request()
#14 E:\ojs\lib\pkp\classes\xml\PKPXMLParser.inc.php(199): PKPXMLParser->_getStream()
#15 E:\ojs\lib\pkp\classes\db\XMLDAO.inc.php(52): PKPXMLParser->parseStruct()
#16 E:\ojs\lib\pkp\classes\site\VersionCheck.inc.php(76): XMLDAO->parseStruct()
#17 E:\ojs\lib\pkp\classes\site\VersionCheck.inc.php(44): VersionCheck::parseVersionXML()
#18 E:\ojs\lib\pkp\classes\site\VersionCheck.inc.php(175): VersionCheck::getLatestVersion()
#19 E:\ojs\lib\pkp\pages\admin\AdminHandler.inc.php(98): VersionCheck::checkIfNewVersionExists()
#20 E:\ojs\lib\pkp\classes\core\PKPRouter.inc.php(394): AdminHandler->initialize()
#21 E:\ojs\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#22 E:\ojs\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route()
#23 E:\ojs\lib\pkp\classes\core\PKPApplication.inc.php(360): Dispatcher->dispatch()
#24 E:\ojs\index.php(68): PKPApplication->execute()
#25 {main}
thrown in E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201
[24-Jul-2024 09:31:19 Asia/Kuwait] PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 56: Recv failure: Connection was reset (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:201
Stack trace:
#0 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection()
#1 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError()
#2 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish()
#3 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#4 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#5 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\PrepareBodyMiddleware.php(37): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#6 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Middleware.php(29): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#7 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#8 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke()
#9 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#10 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Client.php(351): GuzzleHttp\HandlerStack->__invoke()
#11 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Client.php(162): GuzzleHttp\Client->transfer()
#12 E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Client.php(182): GuzzleHttp\Client->requestAsync()
#13 E:\ojs\lib\pkp\classes\xml\PKPXMLParser.inc.php(113): GuzzleHttp\Client->request()
#14 E:\ojs\lib\pkp\classes\xml\PKPXMLParser.inc.php(199): PKPXMLParser->_getStream()
#15 E:\ojs\lib\pkp\classes\db\XMLDAO.inc.php(52): PKPXMLParser->parseStruct()
#16 E:\ojs\lib\pkp\classes\site\VersionCheck.inc.php(76): XMLDAO->parseStruct()
#17 E:\ojs\lib\pkp\classes\site\VersionCheck.inc.php(44): VersionCheck::parseVersionXML()
#18 E:\ojs\lib\pkp\classes\site\VersionCheck.inc.php(175): VersionCheck::getLatestVersion()
#19 E:\ojs\lib\pkp\pages\admin\AdminHandler.inc.php(98): VersionCheck::checkIfNewVersionExists()
#20 E:\ojs\lib\pkp\classes\core\PKPRouter.inc.php(394): AdminHandler->initialize()
#21 E:\ojs\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#22 E:\ojs\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route()
#23 E:\ojs\lib\pkp\classes\core\PKPApplication.inc.php(360): Dispatcher->dispatch()
#24 E:\ojs\index.php(68): PKPApplication->execute()
#25 {main}
thrown in E:\ojs\lib\pkp\lib\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201

Hi @almokbelr,

Just looking over the code, it turns out the show_upgrade_warning option can be used to turn off the display of the message indicating that a new version is available – but does not turn off the fetch of the current version XML from the PKP website. You’ll need to either modify the code to disable the fetch, or permit your server to contact the pkp.sfu.ca server.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 13 days. New replies are no longer allowed.