Issue after moving from XAMPP to Server

Hey!

We created OJS on local computer using XAMPP. Later we moved it to a Shared Linux hosting and connected DB with config.php.inc file.

In the config file, database connectivity was done and dir_url was changed as per the new server.

The website works fine - http://ijhsir.ahsas-pgichd.org

But when we login to admin it gives a blank page and we need to refresh page to see admin. Similarly, at various instances related to the dashboard, a blank page comes up.

The error_log shows this error which I’m unable to resolve

[19-Jan-2019 16:18:24 Etc/GMT] PHP Fatal error: Can’t use function return value in write context in /home/ijhsir/public_html/lib/pkp/pages/dashboard/DashboardHandler.inc.php on line 65

Can anyone help with this please

Regards

Akshay

Hi @Akshaydeep_Punj,

What version of PHP are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

Hey!

We are running PHP 5.4 but can upgrade up to version 7.1 if that is required

TIA

Hi @Akshaydeep_Punj,

Yes, that should solve the problem. You’ll probably have to change your database driver to mysqli in your config file when you do.

Regards,
Alec Smecher
Public Knowledge Project Team

Alright, so I should change PHP version to 7.1 and in config change driver to mysqli, correct?

Hi @Akshaydeep_Punj,

Yes, that should resolve the problem.

Regards,
Alec Smecher
Public Knowledge Project Team