0

Following all the migration steps from the CakePHP manual, I end up with a error 500 on all pages. The log tells me this:

> [Wed Jul 19 11:56:02.566953 2023] [proxy_fcgi:error] [pid 12776]
> [client 178.117.91.131:57762] AH01071: Got error 'PHP message: PHP
> Fatal error:  Uncaught TypeError: Argument 2 passed to
> Cake\\Utility\\Hash::insert() must be of the type string, int given,
> called in
> /var/www/clients/client0/web4/web/ID/vendor/cakephp/cakephp/src/Core/Configure.php
> on line 92 and defined in
> /var/www/clients/client0/web4/web/ID/vendor/cakephp/cakephp/src/Utility/Hash.php:316\nStack
> trace:\n#0
> /var/www/clients/client0/web4/web/ID/vendor/cakephp/cakephp/src/Core/Configure.php(92):
> Cake\\Utility\\Hash::insert()\n#1
> /var/www/clients/client0/web4/web/ID/vendor/cakephp/cakephp/src/Core/Configure.php(339):
> Cake\\Core\\Configure::write()\n#2
> /var/www/clients/client0/web4/web/ID/config/bootstrap.php(74):
> Cake\\Core\\Configure::load()\n#3
> /var/www/clients/client0/web4/web/ID/vendor/cakephp/cakephp/src/Http/BaseApplication.php(161):
> require_once('/var/www/client...')\n#4
> /var/www/clients/client0/web4/web/ID/src/Application.php(41):
> Cake\\Http\\BaseApplication->bootstrap()\n#5
> /var/www/clients/client0/web4/web/ID/vendor/cakephp/cakephp/src/Http/Server.php(10...'

Since I don't know - or cannot see - where the hash is called in Application.php or bootstrap.php, I'm not sure how to debug this.

Joost
  • 418
  • 5
  • 17
  • 1
    The line numbers tell you where the calls happen (note that it's a stack trace showing you the flow of execution through which the code went to get to the call. So the actual call that went wrong will only be in the top entry in the stack trace, I'd expect. But you can always do a Find to locate it too – ADyson Jul 19 '23 at 10:53
  • 1
    Also, please provide a link to the guide you followed, and tell us what version of PHP you're running this on. – ADyson Jul 19 '23 at 10:56

0 Answers0