|
hello, i updated the nightly last release cakephp 1.2 bêta but i have a problem with cache when i separate the cake lib and the apps : wamp / cakephp / / cake / apps / app_my_test_app/ / config / controllers ... / docs / vendors ... wamp / webroot_of_test / / css / files i configure the paths variables in index.php of webroot. But when i launch the test application i have this messages : Warning (512): Cache not configured properly. Please check Cache::config(); in APP/config/core.php [C:\wamp\www\cakephp\cake\libs \configure.php, line 631] Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [C:\wamp\www\cakephp\cake\libs\configure.php, line 638] Your tmp directory is writable. Your cache is NOT working. Please check the settings in APP/config/ core.php Your database configuration file is present. Cake is able to connect to the database. I don't understand the cache problem, i have see the others discussions about this but i don't found the solution, anyone can help me ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Did you have Configure::write('Cache.check', true); and uncomment in core.php file? On 29 ene, 01:46, tiadev <[hidden email]> wrote: > hello, i updated the nightly last release cakephp 1.2 bêta but i have > a problem withcachewhen i separate the cake lib and the apps : > > wamp / cakephp / > / cake > / apps / > app_my_test_app/ > / config > / > controllers > ... > / docs > / vendors > ... > > wamp / webroot_of_test / > / css > / files > > i configure the paths variables in index.php of webroot. > But when i launch the test application i have this messages : > > Warning (512):Cachenot configured properly. Please checkCache::config(); in APP/config/core.php [C:\wamp\www\cakephp\cake\libs > \configure.php, line 631] > > Warning (2): array_merge() [function.array-merge]: Argument #1 is not > an array [C:\wamp\www\cakephp\cake\libs\configure.php, line 638] > > Your tmp directory is writable. > > Yourcacheis NOT working. Please check the settings in APP/config/ > core.php > > Your database configuration file is present. > > Cake is able to connect to the database. > > I don't understand thecacheproblem, i have see the others > discussions about this but i don't found the solution, anyone can help > me ? You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by tiadev
Hi, i Have the same problem but i have fixed the error Warning (512): Cache not configured properly. Please check Cache::config(); in APP/config/core.php [C:\wamp\www\cakephp\cake\libs \configure.php, line 631] to fix this problem... make sure that you configure your website on your web server the document root pointing to the webroot of cake's web directory <VirtualHost *> ServerName www.xxx.com ServerAlias xxx.com ServerAdmin [hidden email] DocumentRoot [path of the wamp]/wamp/webroot <Directory "[path of the wamp]/wamp/webroot"> AllowOverride All </Directory> </VirtualHost> i hope this will help you troubleshoot the problem On Jan 28, 8:46 pm, tiadev <[hidden email]> wrote: > hello, i updated the nightly last release cakephp 1.2 bêta but i have > a problem with cache when i separate the cake lib and the apps : > > wamp / cakephp / > / cake > / apps / > app_my_test_app/ > / config > / > controllers > ... > / docs > / vendors > ... > > wamp / webroot_of_test / > / css > / files > > i configure the paths variables in index.php of webroot. > But when i launch the test application i have this messages : > > Warning (512): Cache not configured properly. Please check > Cache::config(); in APP/config/core.php [C:\wamp\www\cakephp\cake\libs > \configure.php, line 631] > > Warning (2): array_merge() [function.array-merge]: Argument #1 is not > an array [C:\wamp\www\cakephp\cake\libs\configure.php, line 638] > > Your tmp directory is writable. > > Your cache is NOT working. Please check the settings in APP/config/ > core.php > > Your database configuration file is present. > > Cake is able to connect to the database. > > I don't understand the cache problem, i have see the others > discussions about this but i don't found the solution, anyone can help > me ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by tiadev
I've got a fix for you. Clearly your working in windows. Open your wamp/webroot_of_test/index.php comment out line 43 and add a line 44, like this: //define('ROOT', dirname(dirname(dirname(__FILE__)))); define('ROOT', 'C:'. DS . 'wamp' . DS . 'cakephp'); // for cake installation at c:\wamp\cakephp\ Adding the 'C:' in the root definition makes all the difference. --Mark On Jan 28, 5:46 pm, tiadev <[hidden email]> wrote: > hello, i updated the nightly last release cakephp 1.2 bêta but i have > a problem with cache when i separate the cake lib and the apps : > > wamp / cakephp / > / cake > / apps / > app_my_test_app/ > / config > / > controllers > ... > / docs > / vendors > ... > > wamp / webroot_of_test / > / css > / files > > i configure the paths variables in index.php of webroot. > But when i launch the test application i have this messages : > > Warning (512): Cache not configured properly. Please check > Cache::config(); in APP/config/core.php [C:\wamp\www\cakephp\cake\libs > \configure.php, line 631] > > Warning (2): array_merge() [function.array-merge]: Argument #1 is not > an array [C:\wamp\www\cakephp\cake\libs\configure.php, line 638] > > Your tmp directory is writable. > > Your cache is NOT working. Please check the settings in APP/config/ > core.php > > Your database configuration file is present. > > Cake is able to connect to the database. > > I don't understand the cache problem, i have see the others > discussions about this but i don't found the solution, anyone can help > me ? You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
indeed it did! was having similar problem to tiadev. moved cake core and app director/ies out of single parent directory structure (secure app files and support multiple apps on one cake core instance). only webapp directory under htdocs. couldn't figure out why I was getting the "cache not setup properly" message in my 'default' home page. sure enough, windows needed the drive letter. your posting did the trick. thanks much!!! On Mar 20, 1:14 am, markfm <[hidden email]> wrote: > Adding the 'C:' in the root definition makes all the difference. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by markfm
I've got a fix for your fix, which worked great. I develop on XP laptop, but servers are Linux. Your suggestion below worked great on my laptop, but when I committed and updated dev server, it wasn't pretty.
If document root doesn't already point to 2nd app directory, my tweak is to replace the default define('ROOT',...) with: define('ROOT', $_SERVER['DOCUMENT_ROOT'].DS.'cake'); In my case, DOCUMENT_ROOT is old version of site. In development, if I go to www.mysite.com/cake I go to 'app' directory, but if i go to mysite.com/cake/new_app, I go to new app. Didn't need to set routes in 'app', BTW. oh4real
|
|
In reply to this post by tiadev
None of these solutions worked for me, but you can disable caching all together by adding the line
Configure::write('Cache.disable', true); to your core.php file.
|
| Powered by Nabble | Edit this page |
