Is OMP 1.2.0 compatible w/ PHP 7

In attempting to install OMP1.2.0 with PHP7.0, I’m getting the following warnings & Error. Is it compatible with PHP7 ?
Notice: Only variables should be passed by reference in /var/www/html/omp/lib/pkp/classes/core/ on line 210

Warning: Declaration of ValidatorUrl::getRegexp() should be compatible with ValidatorUri::getRegexp($allowedSchemes = NULL) in /var/www/html/omp/lib/pkp/classes/validation/ on line19

Warning: Declaration of MaintenanceForm::display() should be compatible with Form::display($request = NULL, $template = NULL) in/var/www/html/omp/lib/pkp/classes/install/form/ on line 19

Warning: Declaration of InstallForm::execute() should be compatible with Form::execute($object = NULL) in /var/www/html/omp/lib/pkp/classes/install/form/ on line 20

Warning: Declaration of UpgradeForm::execute() should be compatible with Form::execute($object = NULL) in /var/www/html/omp/lib/pkp/classes/install/form/ on line 0

Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in/var/www/html/omp/lib/pkp/pages/install/ on line 20

Warning: Declaration of PKPOAIMetadataFormat_DC::toXml(&$dataObject, $format = NULL) should be compatible with OAIMetadataFormat::toXml($record, $format = NULL) in/var/www/html/omp/lib/pkp/plugins/oaiMetadataFormats/dc/ on line 0

Warning: Declaration of PayPalPlugin::displayPaymentSettingsForm(&$params, &$smarty) should be compatible with PKPPaymethodPlugin::displayPaymentSettingsForm(&$params, $smarty) in/var/www/html/omp/plugins/paymethod/paypal/ on line 18

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/omp/lib/pkp/lib/adodb/drivers/ Stack trace: #0 /var/www/html/omp/lib/pkp/lib/adodb/ ADODB_mysql->_connect(‘localhost’, ‘ompuser’, ‘mypassword’, ‘OMP’) #1 /var/www/html/omp/lib/pkp/classes/db/ ADOConnection->Connect(‘localhost’, ‘ompuser’, ‘mypassword’, ‘OMP’, false) #2 /var/www/html/omp/lib/pkp/classes/db/ DBConnection->connect() #3 /var/www/html/omp/lib/pkp/classes/db/ DBConnection->initConn() #4 /var/www/html/omp/lib/pkp/classes/db/ DBConnection->initCustomDBConnection(‘mysql’, ‘localhost’, ‘ompuser’, ‘mypassword’, ‘OMP’, false, false) #5 /var/www/html/omp/lib/pkp/classes/install/ DBConnection->DBConnection(‘mysql’, ‘localhost’, ‘ompuser’, ‘mypassword’, ‘OMP’, false, false) #6 /var/www/html/omp/lib/pkp/classes/install/ in /var/www/html/omp/lib/pkp/lib/adodb/drivers/ on line 456

many thanks!

Hi @jules,

Yes, it should be compatible, but you’ll have to change your driver in from mysql to mysqli.

Alec Smecher
Public Knowledge Project Team

1 Like