I have installed Elgg 1.12 in my GoDaddy hosting. The site was working fine until yesterday. Now, whenever I try to access the site, it is showing server error 500.
After going to the error log file, I see the following error message.
[28-Dec-2015 16:44:57 UTC] PHP Parse error: syntax error, unexpected '[' in /public_html/elgg/engine/classes/Elgg/Di/ServiceProvider.php on line 207
However, line 207 in the ServiceProvider.php file is correct.
$params = $c->config->get('cookies')['session'];
I am not able to find out any solution for the same. Request you to please help me in resolving the same
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- ReaL@Real
ReaL - 0 likes
You must log in to post replies.Nothing wrong with that syntax, likely means you're using a lower than required version of PHP. Godaddy may have switched it on you, I've heard nothing but bad things about Godaddy hosting.
hmmm......ya it was switched to 5.3. I upgraded it to 5.4 and now it is working fine.