OJS 3.1.2 Installation Problem on PHP 7.3.0

I have been trying to install OJS 3 for a few days now. there was no error on the log. it just displays about 60 lines of PHP warnings and PHP deprecated.

  1. I did change the database driver to mysqli on my config.inc.php.

  2. The system requirements is also OK
    1

  3. Files and folders that should be writable is OK
    2

  4. I did try disabling ERROR_REPORTING
    3

I’m installing this on Hostinger web server environment

I had no problems installing OJS 2.

What am i doing wrong? would really appreciate any response. thank you very much.

Below are the PHP Warnings and PHP Deprecated on my error_log inside the ojs folder:

[12-Mar-2019 03:01:17 UTC] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/pages/install/InstallHandler.inc.php on line 118

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb.inc.php on line 263

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb.inc.php on line 359

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb.inc.php on line 2921

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/lib/adodb/adodb.inc.php on line 3939

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/Form.inc.php on line 377

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 594

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::isPost() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/form/validation/FormValidatorPost.inc.php on line 38

[12-Mar-2019 03:01:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/lib/pkp/classes/core/PKPRequest.inc.php on line 396

[12-Mar-2019 03:01:17 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/u853330873/domains/clsu-ijeds.esy.es/public_html/ojs-3.1.2/cache/t_compile/e8ea13aa559bf8604ca823015b397a28d8666486^28682bb3d6b6e750ebd3d458abc8f92b4da9ea9f_0.app.headerusernav.tpl.php on line 136

1 Like

Im having the same problem, cant get it to install. the installation page in the browser just loops back to itself.

1 Like

Hi all,

I’ve just run our test scripts (including the installation process) on PHP 7.3.3 without trouble. If 7.3.0 still isn’t working, you might try 7.3.3 instead – though it’s also possible that the problem you’re encountering isn’t related to your PHP version.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,

It’s obvious but, are you change the line “installed = Off” to “installed = On” in the config file??

Any solution for this problem, I am running this error for one day now, Please help

I have seen similar behavior, but when I scrolled to to bottom of the page, there was correct page, after all the warnings.

Dear Alec @asmecher
Is there any solution for install OJS 3.1.2 or OJS 3.1.1.4 with PHP 7.2 and PHP 5.6.40?
Because the installation page loops back after clicking on install button, without showing any error. When we enable error with display_errors = On, the installation page shows more Deprecated, Strict Standards and Warning error lines like @jawo

  • I tested with localhost, ., 127.0.0.1 but noting changed!
  • I changed MySQL to MySQLi but noting changed!
cPanel: 82.0 (build 16)
OJS: 3.1.2 / 3.1.1.4
PHP: 7.2 / 5.6.40
Apache: 2.4.41
MySQL: 5.6.45

Hi @webdesigniran,

Are you trying an administrator username that includes upper-case characters? Try using all lowercase. (This is a known issue that will be fixed in the next release.)

You’ll need to use PHP7.2; PHP5.x is no longer supported.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear Alec @asmecher
Thank you for your time and consideration.

1- The username was an email and that problem gone after change it.
2- There is another problem that I think it’s related to MySQL

**Fatal error** : Uncaught Error: Call to undefined function mysql_connect() in wdi/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456 Stack trace: #0 /home/wdi/public_html/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect('localhost', 'wdi_6FtG79pi', '5k_EIm+1OpN+', '') #1 /home/wdi/public_html/lib/pkp/classes/db/DBConnection.inc.php(151): ADOConnection->Connect('localhost', 'wdi_6FtG79pi', '5k_EIm+1OpN+', NULL, false) #2 /home/wdi/public_html/lib/pkp/classes/db/DBConnection.inc.php(126): DBConnection->connect() #3 /home/wdi/public_html/lib/pkp/classes/db/DBConnection.inc.php(113): DBConnection->initConn() #4 /home/wdi/public_html/lib/pkp/classes/db/DBConnection.inc.php(55): DBConnection->initCustomDBConnection('mysql', 'localhost', 'wdi_6FtG79pi', '5k_EIm+1OpN+', NULL, false, false) #5 /home/wdi/public_html/lib/pkp/classes/install/PKPInstall.inc.php(76): DBConnection->__construct('mysql', 'localhost', 'wdi_6FtG79pi', '5k_EIm+1OpN+', NULL, false, false) #6 /home/ijss in  **/home/wdi/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php**  on line  **456**
  • I changed Host from localhost to . , 127.0.0.1 but noting changed!
  • I changed driver MySQL to MySQLi but noting changed!
  • I changed Connection character set to Not Not applicable but noting changed!
  • I changed Database character set to Not Not applicable but noting changed!
cPanel: 82.0 (build 16)
OJS: 3.1.2 / 3.1.1.4
PHP: 7.2 / 5.6.40
Apache: 2.4.41
MySQL: 5.6.45

PS: Please don’t worry about exposing passwords. Those will be changed after success installation.

Hi @webdesigniran,

Double-check that you chose the MySQLi driver on the installation form. That should solve the message you quoted above.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear Alec @asmecher
Thank you for your kind consideration.

Unforgettably, I installed OJS 3.1.1.4 with PHP 5.6.40 because of MySQL / MySQLi drivers of PHP 7.x on my shared host.
I would like you to recommend using X or [x] instead of single bracket around of not founded database driver in drop-down list of database names in installation page because this is not user friendly.

Thank you for your kind help.

i have same problem, any solution?

same problem here! Any solution?

Ojs 3 works well with PHP7.0 and above. I could help in installation that is if you are installing through cpanel

This fixed the problem. Thank @asmecher