Warning Install OJS 3.1

Please help, I am installing OJS, on Centos 7, using php v. 7.2 and MariaDB

Warning: Declaration of LensGalleyPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/plugins/generic/lensGalley/LensGalleyPlugin.inc.php on line 323

Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

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

Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/lib/pkp/classes/xml/XMLParser.inc.php:271 Stack trace: #0 /var/www/html/lib/pkp/classes/xml/XMLParser.inc.php(220): XMLParser->createParser() #1 /var/www/html/lib/pkp/classes/xml/XMLParser.inc.php(262): XMLParser->parseTextStruct(’<?xml version="…’, Array) #2 /var/www/html/lib/pkp/classes/db/XMLDAO.inc.php(55): XMLParser->parseStruct(‘dbscripts/xml/v…’, Array) #3 /var/www/html/lib/pkp/classes/site/VersionCheck.inc.php(76): XMLDAO->parseStruct(‘dbscripts/xml/v…’, Array) #4 /var/www/html/lib/pkp/classes/site/VersionCheck.inc.php(62): VersionCheck::parseVersionXML(‘dbscripts/xml/v…’) #5 /var/www/html/lib/pkp/classes/install/form/MaintenanceForm.inc.php(37): VersionCheck::getCurrentCodeVersion() #6 /var/www/html/lib/pkp/classes/install/form/InstallForm.inc.php(124): MaintenanceForm->display(Object(Request), NULL) #7 /var/www/html/lib/pkp/pages/install/InstallHandler.inc.php(41): InstallForm->display(Object(Request)) #8 /var/ww in /var/www/html/lib/pkp/classes/xml/XMLParser.inc.php on line 271

Hi @freddy,

Your PHP doesn’t have XML support. Try enabling the XML module in yor php.ini configuration file.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec Smecher

I returned to the version of php 5.6, but now I have this error:

Warning: Cannot use a scalar value as an array in /var/www/html/lib/pkp/classes/core/DataObject.inc.php on line 133

Regard,

Freddy

Warning: Cannot use a scalar value as an array in /var/www/html/lib/pkp/classes/core/DataObject.inc.php on line 133

Which lines should I delete?

Hi @freddy,

I’ve already responded to your other post about this warning. (Please don’t post the same issue in two places – it clutters the forum.)

Regards,
Alec Smecher
Public Knowledge Project Team