Pregunta

I created my first Laravel (3.2) app awhile back on a VPS that I had. Now, the time has come for me to move to a dedicated server, and I need to move that app to the new server.

I used RSYNC via SSH and transferred everything over to the new server, but when I pull up the webpage in my browswer (public folder), I see a blank page.

I can pull up a file in my public folder, but not the app.

What could I be missing?

¿Fue útil?

Solución

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!

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top