Re: Update gone wrong.

2008-01-29 Thread benstof

Hey man, could you solve this? I'm currently having a very similar
problem.




On Nov 30 2007, 7:33 pm, Mech7 <[EMAIL PROTECTED]> wrote:
> I have in webroot index.php
>
> define ('CAKE_CORE_INCLUDE_PATH', 'C:' . DS .'wamp'. DS .'www'.
> DS .'cake_1.2');
>
> When i look at the framework even if cache is not configured it should
> fall back to th default file caching..
>
> But still i have in core.php
>
> Cache::config('default', array('engine' => 'File'));
>
> Even with:
>
> Configure::write('Cache.disable', true);
>
> It still does not work.. it can't read the cache configuration.. even
> though all it is supposed to do is throw up an error and revert to
> default file caching..
> cause if you look in bootstrap.php in the framework.. on line 51:
>
> if(Configure::read('Cache.disable') !== true) {
> $cache = Cache::settings();
> if(empty($cache)) {
> trigger_error('Cache not configured properly. Please 
> check
> Cache::config(); in APP/config/core.php', E_USER_WARNING);
> Cache::config('default', array('engine' => 'File'));
> }
> }
>
> On Nov 29, 6:21 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On Nov 29, 2007 11:55 AM, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > > Does anybody allready solve this? even with a total new setup this
> > > problems still occurs.. i opened a ticket but it was closed because
> > > not enough info? But really how can i provide more if i don't know
> > > what is the problem :|
>
> > I have no problem running my app in one directory and having cake in
> > another, so I have no idea what may bewronghere.
>
> > Cache::config('default', array('engine' => 'File'));
>
> > I did this and have no problems.
>
> > Cake core is in Sites/cake
> > Applications are in Sites/
>
> > I changed Sites//config/core.php and added a line at the very end 
> > of it
>
> > Cache::config();
>
> > I changed Sites//webroot/index.php to have this
> > define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'cake');
>
> > Everything works just fine.  No warnings, etc.
>
> > --
> > Chris Hartjes
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2008-01-28 Thread tiadev

Hello, i do an update today, I have the same problem when i eparate
cake lib and apps

2 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 630]

Your cache is NOT working. Please check the settings in APP/config/
core.php

anybody knows how to solve it ??

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-12-01 Thread Mech7

Hey i updated today to the latest nightly now.. and now indeed this
code is not in bootstrap anymore, and now it finally works again :D

Thanks for the help :)



On Dec 1, 3:12 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Nov 30, 2007 9:10 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> > On Nov 30, 2007 7:33 PM, Mech7 <[EMAIL PROTECTED]> wrote:
> > > It still does not work.. it can't read the cache configuration.. even
> > > though all it is supposed to do is throw up an error and revert to
> > > default file caching..
>
> > Hrm, you have provided me with a clue here.
>
> > I do not have the Configure::write('Cache.disable', true) command in
> > *my* config.php.  So that trigger_error() statement in bootstrap will
> > never show up.
>
> I just checked and it is in cake/app/config/core.php, but I don't use
> that file at all.  My own config/core.php file that is the app
> directory for my project doesn't have that line in it at all.
>
> Interesting...
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-30 Thread Chris Hartjes

On Nov 30, 2007 9:10 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
> On Nov 30, 2007 7:33 PM, Mech7 <[EMAIL PROTECTED]> wrote:
> > It still does not work.. it can't read the cache configuration.. even
> > though all it is supposed to do is throw up an error and revert to
> > default file caching..
>
> Hrm, you have provided me with a clue here.
>
> I do not have the Configure::write('Cache.disable', true) command in
> *my* config.php.  So that trigger_error() statement in bootstrap will
> never show up.

I just checked and it is in cake/app/config/core.php, but I don't use
that file at all.  My own config/core.php file that is the app
directory for my project doesn't have that line in it at all.

Interesting...

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-30 Thread Chris Hartjes

On Nov 30, 2007 7:33 PM, Mech7 <[EMAIL PROTECTED]> wrote:
> It still does not work.. it can't read the cache configuration.. even
> though all it is supposed to do is throw up an error and revert to
> default file caching..

Hrm, you have provided me with a clue here.

I do not have the Configure::write('Cache.disable', true) command in
*my* config.php.  So that trigger_error() statement in bootstrap will
never show up.

Why do you have that in there?  As far as I can tell the only
cache-related stuff in core/config.php is

define(CACHE_CHECK, true|false)

Is there documentation out there that says to put
Configure::write('Cache.disable', true) in your core.php file?

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-30 Thread Mech7

I have in webroot index.php

define ('CAKE_CORE_INCLUDE_PATH', 'C:' . DS .'wamp'. DS .'www'.
DS .'cake_1.2');

When i look at the framework even if cache is not configured it should
fall back to th default file caching..

But still i have in core.php

Cache::config('default', array('engine' => 'File'));

Even with:

Configure::write('Cache.disable', true);

It still does not work.. it can't read the cache configuration.. even
though all it is supposed to do is throw up an error and revert to
default file caching..
cause if you look in bootstrap.php in the framework.. on line 51:

if(Configure::read('Cache.disable') !== true) {
$cache = Cache::settings();
if(empty($cache)) {
trigger_error('Cache not configured properly. Please 
check
Cache::config(); in APP/config/core.php', E_USER_WARNING);
Cache::config('default', array('engine' => 'File'));
}
}



On Nov 29, 6:21 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Nov 29, 2007 11:55 AM, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Does anybody allready solve this? even with a total new setup this
> > problems still occurs.. i opened a ticket but it was closed because
> > not enough info? But really how can i provide more if i don't know
> > what is the problem :|
>
> I have no problem running my app in one directory and having cake in
> another, so I have no idea what may bewronghere.
>
> Cache::config('default', array('engine' => 'File'));
>
> I did this and have no problems.
>
> Cake core is in Sites/cake
> Applications are in Sites/
>
> I changed Sites//config/core.php and added a line at the very end of 
> it
>
> Cache::config();
>
> I changed Sites//webroot/index.php to have this
> define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'cake');
>
> Everything works just fine.  No warnings, etc.
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-29 Thread Chris Hartjes

On Nov 29, 2007 11:55 AM, Mech7 <[EMAIL PROTECTED]> wrote:
>
> Does anybody allready solve this? even with a total new setup this
> problems still occurs.. i opened a ticket but it was closed because
> not enough info? But really how can i provide more if i don't know
> what is the problem :|

I have no problem running my app in one directory and having cake in
another, so I have no idea what may be wrong here.

Cache::config('default', array('engine' => 'File'));

I did this and have no problems.

Cake core is in Sites/cake
Applications are in Sites/

I changed Sites//config/core.php and added a line at the very end of it

Cache::config();

I changed Sites//webroot/index.php to have this
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'cake');

Everything works just fine.  No warnings, etc.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-29 Thread Mech7

Does anybody allready solve this? even with a total new setup this
problems still occurs.. i opened a ticket but it was closed because
not enough info? But really how can i provide more if i don't know
what is the problem :|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-16 Thread Mech7

Thanks but i have tried all of them..

I use nightly build, i have set the core.php config for cache, the
dirs are there and writable.. i just don't know what to do anymore :|
it does run ok when it is in the same dir.. only not when i place cake
in a outside dir.. then it can't read the cache config anymore :(

Even with the exact smae config you posted still the problem:

Warning: Cache not configured properly. Please check Cache::config();
in APP/config/core.php in C:\wamp\www\cake_1.2\cake\bootstrap.php on
line 53

Fatal error: Call to undefined method Cache::config() in C:\wamp\www
\cake_1.2\cake\bootstrap.php on line 54

On Nov 16, 1:44 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Nov 15, 2007 6:25 PM, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > Did anybody allready found a fix for this? 1.2 still does not want to
> > run with me outside the app dir :|
>
> Perhaps I'm just lucky and Murphy is smiling down on me from above,
> but I am using the latest version of CakePHP via SVN *and* have my
> cake directory outside of app and I have NO problems getting my stuff
> to work.
>
> I followed all the notices that Cake threw when I updated the Cake
> core, changed the code that it mentioned and that was it.  Really.  In
> fact, here's my config file for everyone to see:
>
> http://bin.cakephp.org/view/1205137498
>
> I continue to be baffled by the problems people seem to be
> experiencing when my own configuration has been just fine.  I've found
> three things that help
>
> 1) pay attention to the warning messages that CakePHP spits out as
> they usually point at the problem
>
> When I upgraded, I saw lots of warnings about deprecated functionality
> and suggestions on how to get rid of those problems.  Those error
> messages are there for a reason, ignore them at your own peril.  They
> tell you EXACTLY what to do.
>
> 2) permissions for the tmp directory really do matter
>
> Use the firehose permission level if you're on some sort of UNIXy
> system:  chmod -R 777 $APP/tmp
>
> 3) make sure you do your dev work with the debug level to 1 and save
> debug level 0 for your production apps.
>
> That little tip will mean you will never have to mess around with
> deleting and recreating your $APP/tmp directory.
>
> I hope this helps those who seem to be struggling to get their CakePHP
> configurations to work properly.  I did all the things above I
> mentioned and continue to have smooth sailing whenever I upgrade from
> SVN (which is usually every morning).
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-15 Thread Chris Hartjes

On Nov 15, 2007 6:25 PM, Mech7 <[EMAIL PROTECTED]> wrote:
>
> Did anybody allready found a fix for this? 1.2 still does not want to
> run with me outside the app dir :|
>
> 
Perhaps I'm just lucky and Murphy is smiling down on me from above,
but I am using the latest version of CakePHP via SVN *and* have my
cake directory outside of app and I have NO problems getting my stuff
to work.

I followed all the notices that Cake threw when I updated the Cake
core, changed the code that it mentioned and that was it.  Really.  In
fact, here's my config file for everyone to see:

http://bin.cakephp.org/view/1205137498

I continue to be baffled by the problems people seem to be
experiencing when my own configuration has been just fine.  I've found
three things that help

1) pay attention to the warning messages that CakePHP spits out as
they usually point at the problem

When I upgraded, I saw lots of warnings about deprecated functionality
and suggestions on how to get rid of those problems.  Those error
messages are there for a reason, ignore them at your own peril.  They
tell you EXACTLY what to do.

2) permissions for the tmp directory really do matter

Use the firehose permission level if you're on some sort of UNIXy
system:  chmod -R 777 $APP/tmp

3) make sure you do your dev work with the debug level to 1 and save
debug level 0 for your production apps.

That little tip will mean you will never have to mess around with
deleting and recreating your $APP/tmp directory.

I hope this helps those who seem to be struggling to get their CakePHP
configurations to work properly.  I did all the things above I
mentioned and continue to have smooth sailing whenever I upgrade from
SVN (which is usually every morning).

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-15 Thread Mech7

I think it is also because :

$cache = Cache::settings();

This never gets filled i think because there is no settings function
in cache.php?

Cache::config('default', array('engine' => 'File'));

after the trigger error its sets it to default, but it does not work:
Fatal error: Call to undefined method Cache::config() in C:\wamp\www
\cake_1.2\cake\bootstrap.php on line 54

I don't see a config function in cache.php?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-15 Thread Mech7

Did anybody allready found a fix for this? 1.2 still does not want to
run with me outside the app dir :|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-02 Thread [EMAIL PROTECTED]

I'm not sure if I'm having this problem or not (I'll explain why in a
second..) - I've updated to the latest Cake 1.2 pre-beta, (not tried
any of the nightlies yet though - at the moment the nightlies page
only seems to link to empty files)

I seem to be able to get the cache to write files to my tmp directory,
but I'm having a couple of problems

1) The cached copies of my pages don't seem to be getting used.

In my controller, I have 'Cache' in my helpers array, and also
var $cacheAction = array(
'controller/action' => 5
); in the same controller
which seems to create the cached copies ok - but these files don't get
read when reloading the page - is there anything else I should be
doing to ensure that cached copies of pages are used, rather than
regenerating the pages every time?

- I've checked this by putting a timestamp in my page code, and this
timestamp updates every time I hit refresh (I'm assuming, if the cache
was working, this wouldn't be happening)

2) The cache doesn't seem to work with named parameters, especially
with pagination - e.g. if I use controller/action/page:2 then it
reports a file error writing to the cache (I'm assuming because of the
semicolon). Is this usual? Should caching work with pagination or is
it not used for a reason?


Any help would be hugely appreciated. I'm only just celebrating my 3rd
month with the lovely Cake, and still learning :)

Cheers

On Nov 1, 6:48 pm, Mech7 <[EMAIL PROTECTED]> wrote:
> DId anybody allready found a solution for thi :( ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-11-01 Thread Mech7

DId anybody allready found a solution for thi :( ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-30 Thread junal

im kinda facing similar problem once i uploaded cake 1.2 pre-beta in
the server,. this bellow msg im getting which is really weird...

Warning (2): loadcomponent(D:\apache\htdocs\sample\cake\libs\controller
\components\session.php) [function.loadcomponent]: failed to open
stream: No such file or directory [CORE/cake/basics.php, line 577]

i have deleted tmp files .

given local directory is ok but why its showing in the server !!?? and
i didnt use this absolute path anywhere in cake !!

any idea ?

thx


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-30 Thread Mech7

mmm strange i tried it and the problem only occurs when the cake dir
is outside the app dir.. when the app dir is togheter with the new
version of 1.2 it does work?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-27 Thread Mech7

Me too.. the cache dir is still there.. and the config is set and
still this error :(

On Oct 22, 1:38 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> Still have this problem.
> Warning (512):Cachenotconfigured. Please useCache::config(); in
> APP/config/core.php [CORE/cake/bootstrap.php, line 52]
> But the other one is dissapeared when removing thecachefiles.
> My directory in tmp is still intact
>
> Maybe because I disable mycachebut Cake still needs some sort ofcacheconfig?
>
> - Charlie
>
> On Oct 22, 1:29 pm, LS <[EMAIL PROTECTED]> wrote:
>
> > I got this problem once...
> > The cause is that i deleted everything under tmp... Including the
> >cachedir. If thecachedir isnotthere. Cake will give out an error,
> > and doesnotcreate the directory. Try creating it, then you problem
> > SHOULD be fixed. =)
>
> > Regards,
> > - Sergio
>
> > On Oct 22, 8:22 am, Charlie van de Kerkhof <[EMAIL PROTECTED]>
> > wrote:
>
> > > I have the same problem and the solution of nate didn't help.
> > > I think this is a bug but I don't know for sure:
> > > (latest svn version of 1.2.x.x. branches)
>
> > > In APP/config/core.php:
> > > - Configure::write('Cache.disable', true);
> > > -Cache::config('default', array('engine' => 'File'));
>
> > > Gives the warning 512 where [EMAIL PROTECTED] talked about.
> > > Warning (512):Cachenotconfigured. Please useCache::config(); in
> > > APP/config/core.php [CORE/cake/bootstrap.php, line 52]
> > > and
> > > Warning (2): Cannot modify header information - headers already sent
> > > by (output started at /.../APP/cake/basics.php:773)
>
> > > But if I configure the lines below my app does work:
> > > - Configure::write('Cache.disable', false);
> > > -Cache::config('default', array('engine' => 'File'));
>
> > > Is this ok? Or is it a bug?
> > > thnx!
> > > - Charlie
>
> > > On Oct 16, 11:54 pm, nate <[EMAIL PROTECTED]> wrote:
>
> > > > You don't need to modify any core CakePHP files.  Just remove the
> > > > $cakeCache var from core.php, and add the following:
>
> > > >Cache::config('default', array('engine' => 'File'));
>
> > > > You might want to just replace your core.php with a fresh copy from
> > > > the latest nightly and re-input your settings.
>
> > > > On Oct 16, 5:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > > > good thinking, i'll wait until tomorrow...
>
> > > > > On Oct 16, 2:06 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > > > > > could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-22 Thread Charlie van de Kerkhof

Still have this problem.
Warning (512): Cache not configured. Please use Cache::config(); in
APP/config/core.php [CORE/cake/bootstrap.php, line 52]
But the other one is dissapeared when removing the cache files.
My directory in tmp is still intact

Maybe because I disable my cache but Cake still needs some sort of
cache config?

- Charlie

On Oct 22, 1:29 pm, LS <[EMAIL PROTECTED]> wrote:
> I got this problem once...
> The cause is that i deleted everything under tmp... Including the
> cache dir. If the cache dir is not there. Cake will give out an error,
> and does not create the directory. Try creating it, then you problem
> SHOULD be fixed. =)
>
> Regards,
> - Sergio
>
> On Oct 22, 8:22 am, Charlie van de Kerkhof <[EMAIL PROTECTED]>
> wrote:
>
> > I have the same problem and the solution of nate didn't help.
> > I think this is a bug but I don't know for sure:
> > (latest svn version of 1.2.x.x. branches)
>
> > In APP/config/core.php:
> > - Configure::write('Cache.disable', true);
> > - Cache::config('default', array('engine' => 'File'));
>
> > Gives the warning 512 where [EMAIL PROTECTED] talked about.
> > Warning (512): Cache not configured. Please use Cache::config(); in
> > APP/config/core.php [CORE/cake/bootstrap.php, line 52]
> > and
> > Warning (2): Cannot modify header information - headers already sent
> > by (output started at /.../APP/cake/basics.php:773)
>
> > But if I configure the lines below my app does work:
> > - Configure::write('Cache.disable', false);
> > - Cache::config('default', array('engine' => 'File'));
>
> > Is this ok? Or is it a bug?
> > thnx!
> > - Charlie
>
> > On Oct 16, 11:54 pm, nate <[EMAIL PROTECTED]> wrote:
>
> > > You don't need to modify any core CakePHP files.  Just remove the
> > > $cakeCache var from core.php, and add the following:
>
> > > Cache::config('default', array('engine' => 'File'));
>
> > > You might want to just replace your core.php with a fresh copy from
> > > the latest nightly and re-input your settings.
>
> > > On Oct 16, 5:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > > good thinking, i'll wait until tomorrow...
>
> > > > On Oct 16, 2:06 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > > > > could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-22 Thread LS

I got this problem once...
The cause is that i deleted everything under tmp... Including the
cache dir. If the cache dir is not there. Cake will give out an error,
and does not create the directory. Try creating it, then you problem
SHOULD be fixed. =)

Regards,
- Sergio

On Oct 22, 8:22 am, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> I have the same problem and the solution of nate didn't help.
> I think this is a bug but I don't know for sure:
> (latest svn version of 1.2.x.x. branches)
>
> In APP/config/core.php:
> - Configure::write('Cache.disable', true);
> - Cache::config('default', array('engine' => 'File'));
>
> Gives the warning 512 where [EMAIL PROTECTED] talked about.
> Warning (512): Cache not configured. Please use Cache::config(); in
> APP/config/core.php [CORE/cake/bootstrap.php, line 52]
> and
> Warning (2): Cannot modify header information - headers already sent
> by (output started at /.../APP/cake/basics.php:773)
>
> But if I configure the lines below my app does work:
> - Configure::write('Cache.disable', false);
> - Cache::config('default', array('engine' => 'File'));
>
> Is this ok? Or is it a bug?
> thnx!
> - Charlie
>
> On Oct 16, 11:54 pm, nate <[EMAIL PROTECTED]> wrote:
>
> > You don't need to modify any core CakePHP files.  Just remove the
> > $cakeCache var from core.php, and add the following:
>
> > Cache::config('default', array('engine' => 'File'));
>
> > You might want to just replace your core.php with a fresh copy from
> > the latest nightly and re-input your settings.
>
> > On Oct 16, 5:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > good thinking, i'll wait until tomorrow...
>
> > > On Oct 16, 2:06 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > > > could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-22 Thread Charlie van de Kerkhof

I have the same problem and the solution of nate didn't help.
I think this is a bug but I don't know for sure:
(latest svn version of 1.2.x.x. branches)

In APP/config/core.php:
- Configure::write('Cache.disable', true);
- Cache::config('default', array('engine' => 'File'));

Gives the warning 512 where [EMAIL PROTECTED] talked about.
Warning (512): Cache not configured. Please use Cache::config(); in
APP/config/core.php [CORE/cake/bootstrap.php, line 52]
and
Warning (2): Cannot modify header information - headers already sent
by (output started at /.../APP/cake/basics.php:773)

But if I configure the lines below my app does work:
- Configure::write('Cache.disable', false);
- Cache::config('default', array('engine' => 'File'));

Is this ok? Or is it a bug?
thnx!
- Charlie

On Oct 16, 11:54 pm, nate <[EMAIL PROTECTED]> wrote:
> You don't need to modify any core CakePHP files.  Just remove the
> $cakeCache var from core.php, and add the following:
>
> Cache::config('default', array('engine' => 'File'));
>
> You might want to just replace your core.php with a fresh copy from
> the latest nightly and re-input your settings.
>
> On Oct 16, 5:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > good thinking, i'll wait until tomorrow...
>
> > On Oct 16, 2:06 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > > could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-16 Thread nate

You don't need to modify any core CakePHP files.  Just remove the
$cakeCache var from core.php, and add the following:

Cache::config('default', array('engine' => 'File'));

You might want to just replace your core.php with a fresh copy from
the latest nightly and re-input your settings.

On Oct 16, 5:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> good thinking, i'll wait until tomorrow...
>
> On Oct 16, 2:06 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-16 Thread [EMAIL PROTECTED]

good thinking, i'll wait until tomorrow...

On Oct 16, 2:06 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-16 Thread [EMAIL PROTECTED]

I did,

in cake/bootstrap.php
line 48: Configure::getInstance();
line 49://Cache::config();

line 51: $cache = Cache::settings();
line 52: if(empty($cache)) {
line 53:trigger_error('Cache not configured. Please use
Cache::config(); in APP/config/core.php', E_USER_WARNING);
line 54:Cache::config('default', array('engine' => 'File'));
line 55: }

and this is what cake/config/core.php looks like.
this block starts on line 44

/**
 * To configure CakePHP *not* to use mod_rewrite and to
 * use CakePHP pretty URLs, remove these .htaccess
 * files:
 *
 * /.htaccess
 * /app/.htaccess
 * /app/webroot/.htaccess
 *
 * And uncomment the App.baseUrl below:
 */

and ends on line 54

Does this help?





On Oct 16, 1:23 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> did you try looking at the /app/config/core.php in the latest nightly?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-16 Thread Gwoo

could be a problem with the nightly


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Update gone wrong.

2007-10-16 Thread Gwoo

did you try looking at the /app/config/core.php in the latest nightly?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Update gone wrong.

2007-10-16 Thread [EMAIL PROTECTED]

I'm using 1.2.x.x_11.10.2007 and the I did update it with
1.2.x.x_16.10.2007 the nightly build.
On the top I get this yellow stripe indicating warnings and errors.

Warning (512): Cache not configured. Please use Cache::config(); in
APP/config/core.php [CORE/cake/bootstrap.php, line 52]

But further down I get:

Your tmp directory is writable.

Your cache is set up and initialized properly.

FileEngine is being used to cache, to change this edit config/core.php
Settings:

* path: /app/web/dev/cake/app/tmp/cache/
* prefix: cake_
* lock:
* serialize: 1
* duration: 3600
* probability: 100
* engine: File

Your database configuration file is present.

Cake is able to connect to the database.

So I get one warning about my cache and then I get a confirmation that
"Your cache is set up and initialized properly.".

I have tried various combinations in APP/config/core.php [CORE/cake/
bootstrap.php, line 52]
but everything fails.
Has anyone seen this before and what is the solution?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---