I've recently been given the job to move a website from one server to another. This site uses the Cake PHP framework (disclaimer: I've never used Cake before). After I copied all databases and files I am having trouble getting the site to load. It is giving the following error:
Fatal error: Class 'Router' not found in /sitepath/cake/dispatcher.php on line 283
The following code is on line 283: $namedExpressions = Router::getNamedExpressions();
From what I read this error is occurring because App::import('Core', array('Router', 'Controller'));
, which is in the same file, is not working correctly. In fact if I var_dump()
the App::import
line I can see that it returns false. So I can only assume App::import
should not be returning false, right? I'm guessing my problem is that something is configured wrong in the Cake config settings, maybe a default path? The only thing I've really changed in the config settings is the database credentials, I've updated them for the new database on the new server. So if someone could point me in the right direction and let me know if I have something configured wrong that would be great. Thanks.
Also, I should note this is using Cake 1.3.