Warning (2): Declaration of Cake\Chronos\Traits\FrozenTimeTrait::setTime($hours, $minutes, $seconds = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in [/home/wmcmiinz/www/librdesthes21/www/vendor/cakephp/chronos/src/MutableDate.php, line 24]
V 3.3
When in dev mode (only a subfolder of the main site), everything work well.
When moving the cake directory at the root level, I have this error message and thousands of errors in the debug error file.
But it is really incomprehensible.
My client server runs php 5.8.
Cake version is 3.3
Current site is in : server/current/site (url = http://www.domain_name)
Dev site is in : server/dev/
When going to domain_name/dev everything works fine.
So after making changes I renamed server/current to server/old
and I renamed server/dev to server/current
And then I have thousands Chronos errors.
Nothing has changed except directory name.
Everything else is ok → all links, css files, js files, images …
So your DEV environment works with the same database aka same data as the LIVE environment?
And you have Debugging enabled on your LIVE environment as well?
Or installed dev dependencies on your LIVE environment?
When doing an update, I duplicate the app AND the database.
I would not work on the production db.
The live directory is left unchanged.
When update is done, original directory is renamed “archive_xx” and dev directory is renamed “current”.
I also keep a local copy of the latest version to work with if necessary.
Do as you like. The only thing I would do if I have problems with vendor/composer modules I would remove the vendor folder and re-install all modules with composer install