Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Odd error with index.php
  • So I left a production server on Friday evening working perfectly well, arrived back this morning and it's broken!
    [Mon Nov 21 11:17:29 2011] [error] [client 0.0.0.0] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/sites/domain/public_html/index.php on line 9

    Really odd hey? Any ideas?
  • Looks like the exact error you'll get when you're working with PHP 5.2:
    Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in [path]/fuel/public/index.php on line 9
  • Thanks Jelmer, the bloody host had reset the PHP version back a few days after I'd upgraded to 5.3.
  • I tried Googleing
    PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')'
    but obviously that didn't work, thought it was a PHP error rather than a problem with Fuel. Idiot.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion