Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cmarfil's avatar

Laravel 5 composer update error on fresh installation

It is a git clone of a clean installation made from another pc with Laravel new, on the other pc works fine.

When I do composer update:

☁  laravel [master] ⚡ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
PHP Notice:  date_default_timezone_set(): Timezone ID '' is invalid in /Applications/XAMPP/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 40

Notice: date_default_timezone_set(): Timezone ID '' is invalid in /Applications/XAMPP/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 40

Fatal error: Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler() in /Applications/XAMPP/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/ConfigureLogging.php on line 54
PHP Fatal error:  Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler() in /Applications/XAMPP/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/ConfigureLogging.php on line 54
Script php artisan clear-compiled handling the post-update-cmd event returned with an error



  [RuntimeException]
  Error Output: PHP Notice:  date_default_timezone_set(): Timezone ID '' is i
  nvalid in /Applications/XAMPP/www/laravel/vendor/laravel/framework/src/Illu
  minate/Foundation/Bootstrap/LoadConfiguration.php on line 40
  PHP Fatal error:  Call to undefined method Illuminate\Foundation\Bootstrap\
  ConfigureLogging::configureHandler() in /Applications/XAMPP/www/laravel/ven
  dor/laravel/framework/src/Illuminate/Foundation/Bootstrap/ConfigureLogging.
  php on line 54



update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]

On the same pc ( imac ) i have some projects with laravel 4 working fine. Any idea? Thanks.

0 likes
15 replies
graham's avatar

What happens if you set the timezone in config/app.php?

graham's avatar

You might need to set date.timezone in your php.ini

graham's avatar
graham
Best Answer
Level 12

What else have you got in your config folder? What's in your config/app.php?

1 like
cmarfil's avatar

What else have you got in your config folder? What's in your config/app.php?

I had a config folder with app.php with only the url parameter "laravel.dev", I deleted the folder and now everything works ok !!

Thanks !!

What was the problem?

graham's avatar

Congrats.

Did you have anything to resolve larval.dev (e.g. a hosts file entry)?

No syntax error in the url param?

LarryTX's avatar

I'm having the very same problem. Timezone in config/app.php is 'timezone' => 'UTC', and in php.ini, it is date.timezone = UTC. I have the url set to http://laravel.lcl in httpd-vhosts.conf correctly. (The url works if I put a phpinfo.php file in it and go directly to that file.) This is a brand new installation from a git clone on 02/26/2015 at 5:05 pm CST roughly.

The Apache server is running as part of an XAMPP installation on a PC that has about 15 other web applications all of which are running correctly. From the above comments and that experience, I would have to conclude that there is some serious problem with this release.

LarryTX's avatar

How do I get version 5.0.7? I couldn't find it on GitHub, and if I try composer create-project laravel/laravel:5.0.7, it responds with "Could not find package laravel/laravel with version 5.0.7".

Appkr's avatar

In some project, that always happened when I did composer update. The remedy was reinstalling dependencies from scratch.

$ rm composer.lock
$ rm -rf vendor
$ composer install

Please or to participate in this conversation.