Re: unlink()

2013-06-21 Thread euromark
you know any one Please help me. > > > Warning: unlink() has been disabled for security reasons in > /home/zapojetc/public_html/kake/lib/Cake/Cache/Engine/FileEngine.php on > line 243 > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.

Re: unlink()

2013-06-21 Thread Eric Haskins
That looks like your host has disabled the unlink command Eric High Octane Brands On Friday, June 21, 2013 8:00:06 AM UTC-4, raj kumar Pustela wrote: > > Hi to all, > > how to resolve below this one.. If you know any one Please help me. > > > Warning: unlink() has been

Re: unlink()

2013-06-21 Thread kicaj
Try chmod for tmp/ dir W dniu piątek, 21 czerwca 2013 14:00:06 UTC+2 użytkownik raj kumar Pustela napisał: > > Hi to all, > > how to resolve below this one.. If you know any one Please help me. > > > Warning: unlink() has been disabled for security reasons in > /home/z

unlink()

2013-06-21 Thread raj kumar Pustela
Hi to all, how to resolve below this one.. If you know any one Please help me. Warning: unlink() has been disabled for security reasons in /home/zapojetc/public_html/kake/lib/Cake/Cache/Engine/FileEngine.php on line 243 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

unlink error from FileEngine when many requests happen frequently

2012-10-30 Thread Jeff
I get an error like: warning: unlink(/.../tmp/cache/models/myapp_cake_model_default_something): No such file or directory in /.../lib/Cake/Cache/Engine/FileEngine.php on line 247 This happen when I have 3 JSON requests happen at close to the same time. My guess is that the cache has removed

Re: unlink error from FileEngine.php

2012-03-09 Thread heohni
I will try, thanks again! Am Freitag, 9. März 2012 16:21:16 UTC+1 schrieb heohni: > > Hi, > > from time to time I get this error message: > > *Warning*: > unlink(D:\SVN-Homes\...\cache_sql_properties_of_the_week_premium_5) [ > function.unlink <http://localhost/obj

Re: unlink error from FileEngine.php

2012-03-09 Thread Rodrigo Rodrigues Moyle
Try adding a mask with correct permission to you cache config: 'mask' => 0664 Em sexta-feira, 9 de março de 2012 12h21min16s UTC-3, heohni escreveu: > > Hi, > > from time to time I get this error message: > > *Warning*: > unlink(D:\SVN-Homes\...\cache_sq

unlink error from FileEngine.php

2012-03-09 Thread heohni
Hi, from time to time I get this error message: *Warning*: unlink(D:\SVN-Homes\...\cache_sql_properties_of_the_week_premium_5) [ function.unlink <http://localhost/objekts/search/function.unlink>]: Permission denied in * D:\SVN-Homes\PHP\trunk\cake2.1\lib\Cake\Cache\Engine\FileEngine.p

Re: unlink function throws "permission denied" error

2010-09-07 Thread Tomfox Wiranata
ddir)) mkdir($biguploaddir,true); > > > > >                 $bigsource = "link/tmp/".$folderName."/".$filename_big; > > > >                 $bigdestination = "link/".$folderName."/".$filename_big; > > > > >        

Re: unlink function throws "permission denied" error

2010-09-05 Thread O.J. Tibi
Guys, I'm also thinking that this is an operating system issue, probably one or more of the following: 1.) You tried to deploy your CakePHP application from Windows to a *Nix platform (or vice-versa, but I'm not sure how this is done on Windows) 2.) Your system administrator might have set differe

Re: unlink function throws "permission denied" error

2010-09-05 Thread j.blotus
copy image from temp to real location then delete > > > all > > > directories and files in temp > > >                 if (!copy($bigsource, $bigdestination)){ > > >                         print "Dein Flyer konnte nicht gespeich

Re: unlink function throws "permission denied" error

2010-09-05 Thread Tomfox Wiranata
st copy image from temp to real location then delete > > all > > directories and files in temp > >                 if (!copy($bigsource, $bigdestination)){ > >                         print "Dein Flyer konnte nicht gespeichert werden"; > >                 }else{ > >            

Re: unlink function throws "permission denied" error

2010-09-05 Thread j.blotus
      //first copy image from temp to real location then delete all > directories and files in temp >                 if (!copy($bigsource, $bigdestination)){ >                         print "Dein Flyer konnte nicht gespeichert werden"; >                 }else{ >    

unlink function throws "permission denied" error

2010-09-05 Thread Tomfox Wiranata
tories and files in temp if (!copy($bigsource, $bigdestination)){ print "Dein Flyer konnte nicht gespeichert werden"; }else{ unlink($bigsource); } now i need to copy whole directories and i had to u

Re: delete post AND unlink image

2009-07-29 Thread bberg
how silly of me. thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubsc

Re: delete post AND unlink image

2009-07-29 Thread Carlos Lavin
k: > > [code] > if ($this->Model->del($id)) { >$image = $this->Model->read('image', $id); >if(unlink($image)) >{ > //success >} > } > [/code] > > > > --~--~-~--~~~

Re: delete post AND unlink image

2009-07-29 Thread bberg
thanks for the reply. thought of that. but i'm having a hard time retrieving the $image var. here's what i'm trying to figure out, but it doesn't work: [code] if ($this->Model->del($id)) { $image = $this->Model->read('i

Re: delete post AND unlink image

2009-07-28 Thread JamesF
well you won't be adapting $this->Model->del() i hope but what you could do is this: ..in your controller action: //if record was deleted succesfully if($this->Model->delete($this->Model->id)) { //if image unlinks succesfully

delete post AND unlink image

2009-07-28 Thread bberg
hi i have a "posts" table with an image field. it stores just the filename as a varchar of course. how can i adapt the "delete" action so it also unlinks the image? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Warning (2): unlink() !? What is this error?

2009-06-06 Thread Dr. Loboto
arning (2): unlink(/app/tmp/cache/models/ > cake_model_default_restaurants_states) > [function.unlink]: No such file or directory [CORE/cake/libs/file.php, > line 292] > > I notice that if I simply reload the page, the error goes away. It > seems to always mention a "cake

Re: Warning (2): unlink() !? What is this error?

2009-06-05 Thread Miles J
It means your cached file is no longer there to delete. On Jun 5, 6:00 am, foldiman wrote: > I get this error intermittently and do not understand why. > > Warning (2): unlink(/app/tmp/cache/models/ > cake_model_default_restaurants_states) > [function.unlink]: No such file or

Warning (2): unlink() !? What is this error?

2009-06-05 Thread foldiman
I get this error intermittently and do not understand why. Warning (2): unlink(/app/tmp/cache/models/ cake_model_default_restaurants_states) [function.unlink]: No such file or directory [CORE/cake/libs/file.php, line 292] I notice that if I simply reload the page, the error goes away. It seems

Re: Cake core is throwing unlink warnings

2009-02-28 Thread jitka (poLK)
On Feb 28, 6:05 pm, RyOnLife wrote: > Lovely... I went to try this out and the warnings have vanished as > mysteriously as they first appeared. I've got this thread bookmarked and > will update again as they come back. Ok. If anyone will see this issue again, join us in #cake...@freenode please

Re: Cake core is throwing unlink warnings

2009-02-28 Thread RyOnLife
n > test case if it misbehaves randomly... > Try one thing, please: in cake/libs/file.php in File::delete() replace > clearstatcache(); > with > clearstatcache(true); > and let us know if that helps. > > > > -- View this message in context: http://n2

Re: Cake core is throwing unlink warnings

2009-02-27 Thread jitka (poLK)
I've never seen this issue before, and it is hard to reproduce it in test case if it misbehaves randomly... Try one thing, please: in cake/libs/file.php in File::delete() replace clearstatcache(); with clearstatcache(true); and let us know if that helps. --~--~-~--~~---

Re: Cake core is throwing unlink warnings

2009-02-27 Thread RyOnLife
g 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

Re: Cake core is throwing unlink warnings

2009-02-27 Thread ian . hill
p.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 th

Re: Cake core is throwing unlink warnings

2009-02-27 Thread RyOnLife
> 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 wrote: >> I am getting this (and other similar) warnings: >> >> Warning (2): >> unlink(/web/php/app/tmp/cache/persistent/cake_core_core_paths) &g

Re: Cake core is throwing unlink warnings

2009-02-27 Thread Pyrite
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 &g

Re: Cake core is throwing unlink warnings

2009-02-24 Thread RyOnLife
23 Feb 2009 12:51:07 -0800 (PST), RyOnLife > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2374507&i=1>> > > wrote: > > I am getting this (and other similar) warnings: > > > > Warning (2): > unlink(/web/php/app/tmp/cache/persistent/cake_co

Re: Cake core is throwing unlink warnings

2009-02-23 Thread Graham Weldon
arning (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(

Cake core is throwing unlink warnings

2009-02-23 Thread RyOnLife
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

Re: @unlink fails to clear the cache

2007-06-26 Thread bingo
he returns true indicating > that the cache was deleted but when I reload the browser, it retrieves > the content from the same cache. I think it might be because of the > way unlink works. As I understand, unlink only removes links to the > file rather than physically deleting the file. But

Re: @unlink fails to clear the cache

2007-06-25 Thread bingo
hi Chris, yes I did that with debug level 2. ClearCache returns true indicating that the cache was deleted but when I reload the browser, it retrieves the content from the same cache. I think it might be because of the way unlink works. As I understand, unlink only removes links to the file

Re: @unlink fails to clear the cache

2007-06-25 Thread Chris Hartjes
On 6/25/07, bingo <[EMAIL PROTECTED]> wrote: > > hi > > I tried both > unlink and clearCache but none of the them worked. View.php always > returns the cached element. > > Regards, > Ritesh > Have you tried doing any of this with debug set to 1 or greater in

Re: @unlink fails to clear the cache

2007-06-25 Thread bingo
hi I tried both unlink and clearCache but none of the them worked. View.php always returns the cached element. Regards, Ritesh On Jun 25, 8:51 am, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote: > get rid of the @ in front of unlink, see if any errors are thrown. > >

Re: @unlink fails to clear the cache

2007-06-25 Thread Jonathan Langevin
get rid of the @ in front of unlink, see if any errors are thrown. On 6/25/07, bingo <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am caching element and if update is made to the database record, I > clear the cache for that element. However, it seems the cache never > get

@unlink fails to clear the cache

2007-06-25 Thread bingo
Hi, I am caching element and if update is made to the database record, I clear the cache for that element. However, it seems the cache never gets cleared as my view do not show updated content. I am using @unlink to clear the cache and here is how things are setup in my controller if($this