Page 1 of 1

how to remove warning.

Posted: Thu Nov 25, 2010 8:24 pm
by vinay
Hi, we are using OC v1.4.9.1 and some time display following warnings on top of pages and after refreshing page warning not display, So please advice how can off / remove this warning.

Warning: unlink(/hermes/bosweb/web125/b1253/whl.vinaykhatri/adityapromoters/system/cache/cache.category.60.1.0.1289546636) [function.unlink]: No such file or directory in /hermes/bosweb/web125/b1253/whl.vinaykhatri/adityapromoters/system/library/cache.php on line 54Warning: unlink(/hermes/bosweb/web125/b1253/whl.vinaykhatri/adityapromoters/system/cache/cache.category.36.1.0.1289546636) [function.unlink]: No such file or directory in /hermes/bosweb/web125/b1253/whl.vinaykhatri/adityapromoters/system/library/cache.php on line 54Warning: unlink(/hermes/bosweb/web125/b1253/whl.vinaykhatri/adityapromoters/system/cache/cache.category.49.1.0.1289546636) [function.unlink]: No such file or directory in /hermes/bosweb/web125/b1253/whl.vinaykhatri/adityapromoters/system/library/cache.php on line 54

Thanks in advance.
Vinay

Re: how to remove warning.

Posted: Wed Dec 01, 2010 12:09 am
by SapporoGuy
Also, check your permissions on the cache directory.

Re: how to remove warning.

Posted: Tue Dec 07, 2010 1:38 pm
by ivanssss
i have same error like that ... i think this not the permission on the cache directory folder because i have make the permission on 777 still have same error. is that any solution for that ???

Re: how to remove warning.

Posted: Tue Dec 07, 2010 3:31 pm
by i2Paq
ivanssss wrote:i have same error like that ... i think this not the permission on the cache directory folder because i have make the permission on 777 still have same error. is that any solution for that ???
Please post your error.

Re: how to remove warning.

Posted: Tue Dec 07, 2010 9:25 pm
by Xsecrets
It's going to be the same error. It is a known issue. well at least known by me and Q not sure if Daniel admits it. Q said he thinks it's some sort of race condition in the cache, but I don't think anyone's taken the time to dig into it very much. It only appears to happen once every couple of weeks, so if you just turn display errors off it's not a huge deal, but it probably should be tracked down and eliminated before long.

of course if it's happening every page load then it actually is a permissions issue.

Re: how to remove warning.

Posted: Wed Dec 08, 2010 1:22 pm
by ivanssss
i2Paq wrote:
ivanssss wrote:i have same error like that ... i think this not the permission on the cache directory folder because i have make the permission on 777 still have same error. is that any solution for that ???
Please post your error.
here's the error :

Warning: fopen(/home/komputer/public_html/system/cache/cache.category.625.2.0.1290490312) [function.fopen]: failed to open stream: No such file or directory in /home/komputer/public_html/system/library/cache.php on line 26Warning: filesize() [function.filesize]: stat failed for /home/komputer/public_html/system/cache/cache.category.625.2.0.1290490312 in /home/komputer/public_html/system/library/cache.php on line 27Warning: fread(): supplied argument is not a valid stream resource in /home/komputer/public_html/system/library/cache.php on line 27Warning: fclose(): supplied argument is not a valid stream resource in /home/komputer/public_html/system/library/cache.php on line 29Warning: fopen(/home/komputer/public_html/system/cache/cache.category.573.2.0.1290490312) [function.fopen]: failed to open stream: No such file or directory in /home/komputer/public_html/system/library/cache.php on line 26Warning: filesize() [function.filesize]: stat failed for /home/komputer/public_html/system/cache/cache.category.573.2.0.1290490312 in /home/komputer/public_html/system/library/cache.php on line 27Warning: fread(): supplied argument is not a valid stream resource in /home/komputer/public_html/system/library/cache.php on line 27Warning: fclose(): supplied argument is not a valid stream resource in /home/komputer/public_html/system/library/cache.php on line 29

Re: how to remove warning.

Posted: Thu Dec 16, 2010 6:45 pm
by ivanssss
please be advice how can off / remove this warning???

Re: how to remove warning.

Posted: Thu Dec 16, 2010 9:15 pm
by fido-x
Not sure what the cause is, could be related to the cache having expired, but your cookie hasn't? To get rid of this error message, just refresh your page. Simple, cache recreated, error gone!

Alternatively, to prevent display of this error altogether, log in to your admin, select "System->Settings" and click the "Server" tab. Under here you will find an option labelled "Display Errors:", set this to "No".

Re: how to remove warning.

Posted: Fri Dec 17, 2010 6:40 pm
by ivanssss
yes ...problemo solve .. thanks fido-x

Re: how to remove warning.

Posted: Fri Dec 17, 2010 8:13 pm
by fido-x
No worries.

Re: how to remove warning.

Posted: Mon Dec 20, 2010 1:15 pm
by Qphoria
I've attempted more efforts at avoiding these messages in v1.4.9.3 .. still no full understanding of why.. some race condition I assume so trying to check it better

Re: how to remove warning.

Posted: Tue Dec 21, 2010 2:01 am
by SapporoGuy
When you say race condition, do you mean a timing issue between when the cache is issued, checked and the server tries to access it?

I still haven't looked into oc cache system beyond seeing a few calls here and there.
What and when is going into the cache?
There's a bunch of files in my folder so, could it be:
1 per product
1 per information item
1 for the category
1 for the manufacturers
????

Maybe, it's time to go with an outside library?
http://2bits.com/articles/benchmarking- ... pared.html