0

I didn't touched my personal website since 2 years and suddenly I have only a white screen with a Internal Server Error message in the console. That's it!

The website is build on top of Laravel 4.

I've wrote to my hosting service but apparently: hosting side is completely normal.

Any idea is appreciated, thanks!

Last error log

require(paths.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /public/index.php on line 24

UPDATE

Ok I google it a lot and then I found out that there is a Laravel function called yield() that collides with a reserved name in PHP 5.5 that was not in PHP 5.4.

Any ideas?

6
  • 1
    Is it possible that PHP was updated? Commented Sep 14, 2015 at 11:56
  • yes I ask about that too, they told me from 5.4 to 5.5 but Laravel 4 should be ok as well with that, isn't it? Commented Sep 14, 2015 at 11:56
  • Did you check error log? Commented Sep 14, 2015 at 12:00
  • Actually I've no errors during these days, only this one "require(paths.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /public/index.php on line 24" but it's from long time ago so.. if it is, why now? Commented Sep 14, 2015 at 12:04
  • That is the first file what laravel try to require from your root directory. It could permission problems, or the file is damaged/missing?
    – Iamzozo
    Commented Sep 14, 2015 at 12:15

1 Answer 1

3

Ok, got it!

The problem so is the conflict between the yield in php5.4 and php5.5 so in this link you know where you need to change yield to _yield to fix that without rebuild your entire site with another version of Laravel.

https://github.com/laravel/laravel/commit/3298407238fd3e212cdf8d829adc6f519b941052

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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