phplaravellaravel-4wsod

Laravel WSOD on fresh install w/o log error message


Just another Laravel 4 white screen with no clues.

My context:

I've tried to do a "manual debug" and the app stops at start.php:

$app = new Illuminate\Foundation\Application;

Going deeper compiled.php I've lost track on the share method call:

use Illuminate\Support\ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
    public function register()
    {
        $this->app['events'] = $this->app->share(function ($app) {
            return new Dispatcher($app);
        });
    }
}

EDIT

Checked same "500 Server Internal Error" using Laravel's server ($ php artisan serve).


Solution

  • If there is no error log message it's probably an error log configuration problem.

    Check out all php log related params at php.ini:

    log_errors = On
    error_reporting = E_ALL   // or 32767
    error_log = syslog        // log file, 'syslog' value usually means /var/log/messages
                              //   or /var/log/syslog
    
    display_errors = On          // print errors on screen if you're not
    display_startup_errors = On  //   in a production environment
    

    In case you're running Apache/VirtualHost, check it out httpd.conf for an alternative log file

    <VirtualHost>
        ErrorLog /var/www/example.com/error_log
    </VirtualHost>