Laravel Cartalyst Platform displays problems with /bootstrap/cache/config.php

530 views Asked by At

Developing with Laravel Cartalyst Platform Im facing problems with /bootstrap/cache/config.php

If I run php artisan config:cache the following problem appears:

[Symfony\Component\Debug\Exception\FatalThrowableError]  
  Call to undefined method Closure::__set_state() 

If I delete /bootstrap/cache/config.php the application runs ok, but as soon I run php artisan config:cache

=> php artisan config:cache 
Configuration cache cleared!
Configuration cached successfully!

and a new config.php is created inside bootstrap/cache, but as soon the file is created the app crash again and white page appears.

Debugging php_error.log displays the following information:

PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:719 Stack trace:

0 /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(719):

ReflectionClass->__construct('config')

1 /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(598):

Illuminate\Container\Container->build('config')

2 /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(567):

Illuminate\Container\Container->resolve('config')

3 /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708):

Illuminate\Container\Container->make('config')

4 /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(107):

Illuminate\Foundation\Application->make('config')

5 /Applications/MAMP/htdocs/ in /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php

on line 719

I cannot find which config file is missing or what can I do in order to solve the error.

brgds.

1

There are 1 answers

0
s_h On BEST ANSWER

It was a platform problem. Cartalyst already solved the situation with an upgrade in github repository.