Yes, I get this, generally when there are multiple calls going on to
the server (Ajax or when I click around too fast!).

No idea what the issue is I'm afraid but I found that changing cake/
libs/file.php in the following two places suppresses the errors
(rather than altering the entire php.ini which I think can get in the
way of debugging).

1. line 156 in function open() to $this->handle = @fopen($this->path,
$mode);
2. line 292 in function delete() to return @unlink($this->path);

That specifcally seems to suppress these errors. I dislike having to
modify the core, but there you go. PS, this is 1.2.1.8004 also.

ianh

On Feb 27, 4:56 pm, RyOnLife <[email protected]> wrote:
> I am also see these warnings only on AJAX pages. I am using version
> 1.2.1.8004.
>
> Anyone else having this problem?
>
>
>
> Pyrite wrote:
>
> > I am also getting these errors intermittently. My solution, well, on
> > my production server I don't show warnings/errors in php.ini
>
> > Seems to only see these on ajax pages with CakePHP 1.2 (latest as of
> > 2/27/2009).
>
> > On Feb 23, 2:51 pm, RyOnLife <[email protected]> wrote:
> >> I am getting this (and other similar) warnings:
>
> >> Warning (2):
> >> unlink(/web/php/app/tmp/cache/persistent/cake_core_core_paths)
> >> [function.unlink]: No such file or directory [CORE/cake/libs/file.php,
> >> line
> >> 292]
>
> >> Code
>
> >> unlink - [internal], line ??
> >> File::delete() - CORE/cake/libs/file.php, line 292
> >> FileEngine::read() - CORE/cake/libs/cache/file.php, line 171
> >> Cache::read() - CORE/cake/libs/cache.php, line 306
> >> Configure::corePaths() - CORE/cake/libs/configure.php, line 489
> >> Configure::buildPaths() - CORE/cake/libs/configure.php, line 591
> >> Configure::__loadBootstrap() - CORE/cake/libs/configure.php, line 695
> >> Configure::getInstance() - CORE/cake/libs/configure.php, line 137
> >> include - CORE/cake/bootstrap.php, line 43
> >> [main] - APP/webroot/index.php, line 81
>
> >> I checked, and the "cake_core_core_paths" file does exist at the
> >> specified
> >> path.
>
> >> Anyone know how to deal with this? Although "no such file or directory"
> >> indicates it's not the problem, I double checked my tmp folder
> >> permissions
> >> just to be safe.
> >> --
> >> View this message in
> >> context:http://n2.nabble.com/Cake-core-is-throwing-unlink-warnings-tp2374269p...
> >> Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> View this message in 
> context:http://n2.nabble.com/Cake-core-is-throwing-unlink-warnings-tp2374269p...
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to