Upgrading to 3.1.2

My administrator is upgrading to 3.1.2 and his next pstep needs Php 7.2. However, when he tries upgrade the site using the tools/upgrade, the page remains blank. Then when he leaves it on Php 5.4 he gets the error message which he suspects has something to do with plugins on the site. However, he has not figured out which one or how to disable or upgrade. The message reads: Parse error: syntax error, unexpected;; expecting ‘&’ or variable (T_VARIABLE) in/home1/haleem/Public_htm/journals/ojs-3.1.2-4/lib/pkp/lib/vendor/illuminate/support/helpers.php on line 554.

Hi Nimulola

The OJS 3.1.2 as far as I know does not compatible with php version 5. You should use at least php 7.1 version.

For the blank page, you could activate the debug mode display on the config.inc.php by changing the display_errors parameter to on.

Pse note I am now using php 7.2 and now I am seeing the below error (that I wasn’t seeing before):

Fatal error: Uncaught Error: Call to undefined function json_encode() in /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/template/PKPTemplateManager.inc.php:691 Stack trace: #0 /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/template/PKPTemplateManager.inc.php(155): PKPTemplateManager->registerJSLibraryData() #1 /home1/haleem/public_html/journals/ojs-3.1.2-4/classes/template/TemplateManager.inc.php(28): PKPTemplateManager->initialize(Object(Request)) #2 /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/template/PKPTemplateManager.inc.php(884): TemplateManager->initialize(Object(Request)) #3 /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/plugins/Plugin.inc.php(352): PKPTemplateManager::getManager() #4 /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/plugins/Plugin.inc.php(118): Plugin->_registerTemplateResource() #5 /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/plugins/LazyLoadPlugin.inc.php(28): Plugin->register(‘generic’, 'plugins/g in /home1/haleem/public_html/journals/ojs-3.1.2-4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 691

Seem like you don’t have the appropriate php extension

You should install the json package that suit your php version.

sudo apt-get install php7.2-json

Dont forget to restart both php and apache after you have install it.

Thanks for the advise. Let me try.

We try to upgrade, face the same problem. We follow the instruction when change to install mode and go for update,then the page remain blank. We did increase the time for script to be able to catch up but no success. The manual said we need to do it manually but there is no information/ we could not find information “how to do it manually”. Help is much appreciated.

Hi @rmosavi,

We follow the instruction when change to install mode and go for update,then the page remain blank. We did increase the time for script to be able to catch up but no success.

I’d suggest checking your PHP error log for details.

The manual said we need to do it manually but there is no information/ we could not find information “how to do it manually”.

What part of the manual are you referring to? (Please include a link.)

Regards,
Alec Smecher
Public Knowledge Project Team

During the upgrade when we reach the point to upgrade action and click on “Upgrade Open Journal System” that goes we receive this “ERR-EMPTY-RESPONSE” with message domain did not send any data. I have tried it with different browser to make sure.

  • what part of manual are you refereeing to?

I mean this text in the upgrade page and I mean the manual intervention. “If this or any other time limit (e.g. Apache’s “Timeout” directive) is reached and the upgrade process is interrupted, manual intervention will be required.”

How can I manually interviewer the problem?

Hi @rmosavi,

The best way to avoid hitting timeouts like this is to use the command-line upgrade tool, which is described in the docs/UPGRADE.md upgrade documentation. You’ll need shell access to your server to do this.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like