Decided to set up another site on one of the elgg recommended hosting sites and before I can even do anything to the site this error keeps coming up.
Parse error: syntax error, unexpected '[' in /home/jedsitei/public_html/engine/classes/Elgg/Di/ServiceProvider.php on line 194
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.
- Vextah@Vextah_3598
Vextah - 0 likes
- iionly@iionly
iionly - 0 likes
- jededitor@jededitor
jededitor - 0 likes
- jededitor@jededitor
jededitor - 0 likes
- jededitor@jededitor
jededitor - 0 likes
- twentyfiveautumn@socialphp
twentyfiveautumn - 0 likes
You must log in to post replies.Open the file it mentions and paste the line 194 here
Possibly a too old version of php. If you are trying to install Elgg 1.10 and the php version on the server is 5.3 or older, the installation will not work because Elgg 1.10 requires php 5.4 at minimum.
Not my install as its on an ELGG hosting site - must be their fault.
thx iionly - at least it wasn't my fault this time :D
php version upgraded and I can now get on the site though this error message appears across the top and screws up the display.
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/jedsitei/public_html/engine/lib/elgglib.php on line 918
Seem to have fixed it by flushing the caches (again)
try adding
ini_set('date.timezone', 'America/Los_Angeles');
after the opening <?php tag in your theme.
Here's a list of supported timezones: http://php.net/manual/en/timezones.php