I am running MAMP, and had the same exact issue. For me, it seems the
problem was using relative paths in the [app]/webroot/index.php file, which
I moved to public_html/. If using define('ROOT', '..' ); , the FileEngine
tries to look in the directory above it, which lies in
cake/config/cache/file.php. Changing this to use the full path worked
perfectly for me. If your cache isn't empty, you should clear it after
doing this.
benstof wrote:
>
>
> I'm getting the following error for cache in 1.2.
>
> Warning (512): Cache not configured properly.
> Please check Cache::config(); in APP/config/core.php
> [C:\web\xampp\koek\cake\libs\configure.php, line 630]
>
> My setup is as follows.
>
> /koekApps/
> /koekApp1/
> /config
> /controllers
> /models
> /plugins
> /tmp
> /vendors
> /views
> .htaccess
> index.php
> /koek/
> /cake
> /vendors
> .htaccess
> index.php
>
> /htdocs/ (webroot)
> /koekApp1
>
> index.php inside webroot
> define('ROOT', DS.'web'.DS.'xampp'.DS.'koekAPPS'.DS.'koekApp1');
> define('APP_DIR',dirname('koekApp1'));
> define('CAKE_CORE_INCLUDE_PATH', DS.'web'.DS.'xampp'.DS.'koek');
>
> This setup has worked for me before, numerous times. Its only now in
> 1.2 that the cache throws that error.
>
> When I do pr(Cache::config) from C:\web\xampp\koekApps\koekApp1\views
> \pages\home.ctp
> I get and empty string.
> When I do pr(Cache::settings) from C:\web\xampp\koekApps\koekApp1\views
> \pages\home.ctp
> I get an empty array.
>
> So it seems to me, the config method in core.php never gets called for
> Cache.
> If anyone know the solution to this, please let me know.
>
> Let me know if you need more info from my side.
>
> Ben
>
> >
>
>
--
View this message in context:
http://www.nabble.com/Cache-in-1.2-%28Cake-and-App-dirs-outside-of-webroot%29-tp15155136p20646439.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---