Problems when updating from ojs3.0.2 to 3.1

356/5000
When I update ojs3.0.2 to 3.1 from the terminal I get the following error

PHP Parse error: syntax error, unexpected ‘[’ in /home/cimsur/ojs31/lib/pkp/lib/vendor/nikic/fast-route/src/functions.php on line 12

Nor can I do it from the web page, because it does not show any page
Can someone help me with this problem please

Regards!!!

That sounds like your version of PHP might be too low.

To run OJS 3.1 you’ll need PHP version 5.6 or greater.

Are you able to check what version of PHP is on your server?

Effectively I have version 5.3 installed, so I can update to 7 or better only 5.6?

I’ve updated it to 5.6, but when I give it the next command

php tools / upgrade.php upgrade

It shows me this error

PHP Fatal error: Call to undefined function xml_parser_create() in /home/cimsur/ojs/lib/pkp/classes/xml/XMLParser.inc.php on line 271

Any idea how to solve it? please

Good to see you’re making progress!

5.6 should be right, as that’s the minimum specified by the OJS documentation.

A fatal error from xml_parser_create indicates that PHP does not have the xml extensions enabled.

Take a look at your php installation and see if you can add the extension called libxml. Do a phpinfo() and see if libxml is supported, and active.

Thank you very much for the support, it was difficult but I have already managed to update it.

Regards!!!