I'm having trouble starting CakePHP.
The error log contains the following:
[22-Oct-2019 07:39:11 Asia/Tokyo] PHP Fatal error: Uncaught Error: Class'Cake\Http\Server'not found in/Applications/MAMP/htdocs/mycakeapp/webroot/index.php:37
Stack trace:
#0 {main}<br>thrown in/Applications/MAMP/htdocs/mycakeapp/webroot/index.php on line 37
The 37th line of webroot/index.php
reads as follows:
//Bind your application to the server.
$server=newServer(newApplication(dirname(__DIR__).'/config'));
I'm at a loss because I can't find out no matter how many times.
Could someone please teach me?
Uncaught Error: Class'Cake\Http\Server'not found
error indicates that the file defined in \Cake\Http\Server
could not be found.
Possible causes and actions at this stage are
composer install
on the terminalcomposer dumpautoload
on the terminaluse Cake\Http\Server;
declaration
composer install
on the terminalcomposer dumpautoload
on the terminalThat's about it.
© 2024 OneMinuteCode. All rights reserved.