I’m trying to migrate my app from cakephp 2.0 to 2.1. I’ve been using 2.1 for a couple of weeks on my local development server, and everything works fine. I’ve just tried uploading to the production server, and I’m getting the error message:
Fatal error: Class 'Cache' not found in app/Config/core.php on line 265
I’m probably missing something obvious, but I can’t work out what. If anyone has experienced something similar or can offer any suggestions I’d be very grateful!
(I’m using the CakePHP 2.1.0 stable release)
Are you very sure you uploaded all the “core” files (the
libdirectory)? It seems theCacheclass is missing, which is a core class of CakePHP. The error message is indicating an incomplete CakePHP install on your server.Verify if the file
lib/Cake/Cache/Cache.phpexists and is readable by the webserver you are using (e.g. ownership is set toapache.apacheorwww-data.www-dataand chmod is set properly. If using SELinux, also make sure the files havehttpd_sys_content_torpublic_content_rw_tcontext set).