Error on moodle after upgrade

Jose Bredariol
Jose Bredariol used Ask the Experts™
I updated my moodle from 2.4 to 3.0, and now I got this :
Parse error: syntax error, unexpected '[' in /var/www/moodle/lib/outputrenderers.php on line 110

How can I fix it ?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
perhaps you should uninstall both versions, remove all references to 'moodle' from your system and then download and install the newest version.

of course that doesn't help from porting any existing projects and source file to the newer version but should help from errors like the one you reported.

Software Engineer
Distinguished Expert 2018
be carefull to keep original config files for reference, and keep file content that my be stored below the moodle root.


thanks all

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial