1

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.

7
  • Try composer install and after that composer dump-autoload -o Commented May 13, 2017 at 8:01
  • @VaheGalstyan same error for composer install, nothing with composer dump Commented May 13, 2017 at 11:11
  • @VaheGalstyan error -> > php artisan platform:check-env-file [Symfony\Component\Debug\Exception\FatalThrowableError] Call to undefined method Closure::__set_state() Script php artisan platform:check-env-file handling the post-install-cmd event returned with error code 1 Commented May 13, 2017 at 11:11
  • github.com/laravel/laravel/commit/…, try this one. And check your env file please. Commented May 13, 2017 at 11:24
  • 1
    try remove vendor and reinstall composer Commented May 13, 2017 at 11:30

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.