Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

check if webroot points to the public directory... this is probably it if you're seeing composer.json and other files in the listing

Last updated 2 years ago.
0

I guess that it could have been a number of things, but I looked into my error logs (Ubuntu)

/var/log/apache2/error.log

and saw this error:

PHP Parse error:  syntax error, unexpected 'yield' (T_YIELD), expecting '(' in /var/www/path/to/laravel/helpers.php on line 563

so I did a Google search.

There is a Laravel function called yield() that collides with a reserved name in PHP 5.5 that was not in PHP 5.4. It so happens that my old server had PHP 5.4.

Found this which helped me to find all instances of 'yield()' in Laravel and change to '_yield()'. Problem solved!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.