Cake Error Fixes – Fun with Cache Folders

Making a note of this because it has been a pain in the bum to find a fix. If you move a Cakephp 2.0 website or it stops running for whatever reason try deleting everything inside /app/tmp/cache  then re-create the folders for /app/tmp/cache/models and /app/tmp/cache/persistent.

Also pay attention to what goes on inside /app/webroot/index.php if you need to debug the big 3 constants of the app:

  1. WEBROOT_DIR
  2. WWW_ROOT
  3. CAKE_CORE_INCLUDE_PATH
Advertisements
Posted in Cakephp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: