Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

Never had this happen before, but here we go:

enter image description here

Any Ideas ?

  • Running php-fpm 5.3
  • ubuntu 12.04

Looks as if the comment is NOT working ...

share|improve this question
2  
Short array syntax was introduced in PHP 5.4... use array('as' => 'default.index', ...) – Mark Baker Oct 6 '13 at 8:34
    
Are you sure you opened your comments properly looking at the syntax highlight it looks like you are missing the opening /* – kaning Oct 6 '13 at 8:43
    
@kaning that's a screenshot of Laravel's error page (using Symfony component), not a code editor. – abstr Oct 6 '13 at 8:59
1  
You can avoid sudden errors like this by making sure your test-environment has the same installation and configuration as the production-environment! Same error confronted me when I was deploying my application on the server: local php version was 5.5 and on prod-server 5.3. – matthaeus Dec 12 '13 at 11:51
up vote 7 down vote accepted

Using [] as arrays like that only works with PHP 5.4 and up.

See PHP: Arrays

You'll have to use old array syntax for PHP 5.3.

This will work:

Route::get('/', array('as' => 'default.index', 'uses' => 'DefaultController@index'));
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.