Forums | Mahara Community
Support
/
Upgrading to 16.10 results in parse error
22 October 2016, 3:16
Hi,
My recent upgrade from 16.x to 16.10 results in parse error when pointing to admin/upgrade.php:
Parse error: syntax error, unexpected '$cfg' (T_VARIABLE) in /home/httpd/vhosts/mysite.ch/httpdocs/portfolio/lib/config-defaults.php on line 377
My shared hosting server runs PHP 5.5 and MySQL 10.0.27-MariaDB
Any idea where to start troubleshooting? Thanks.
24 October 2016, 17:45
Hi Luca,
Glad to see you're upgrading to 16.10!
The error 'T_VARIABLE' refers to a syntax error in PHP.
I've upgraded a couple of sites to 16.10 this morning and haven't had this problem.
So, it makes me think that you might have accidentally updated that file? Maybe you added some extra bit of code and forgot to add a ';' at the end of the line?
Because, in my copy of the code, line 377 is an empty line.
Can you please verify / post the contents of line 377 in file lib/config-defaults.php?
Thanks,
Ghada
25 October 2016, 21:50
Thanks for your reply. It seems there were files modifications due to the FTP transfer. Not clear though, whether it's a server or an FTP client issue.
All in all, uploading through the server admin didn't cause the issue, except for one thing: I replaced my language pack (fr_FR) for the most recent before upgrading, and that resulted in another parse error. I then removed the lang pack, upgraded to 16.10 in english successfully, then only added the language pack.
L.