Forums | Mahara Community

Support /
Upgrading to 16.10 results in parse error


Luca Oppizzi's profile picture
Posts: 14

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.

Ghada El-Zoghbi's profile picture
Posts: 122

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

 

 

 

Luca Oppizzi's profile picture
Posts: 14

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.

Ghada El-Zoghbi's profile picture
Posts: 122

26 October 2016, 8:48

Glad to hear all is well. 

Enjoy your Mahara!

 

Cheers, 

Ghada 

4 results