Post by Margaretha » Mon Feb 03, 2014 6:17 am

Hi all, I've looked for a solution in this Forum, but I didn't find anything (or I'm blind :-\ )
My shop is opencart 1.5.4 MultiLanguage (en/it) . PHP 5.4.23.
Since 2-3 weeks, when I surf in the shop (from home to product page and back again, for example) I get a very fastidious warning:

Warning: file_get_contents(/web/htdocs/www.mysite.com/home/shop/system/cache/c ... 1391289226): failed to open stream: No such file or directory in /web/htdocs/www.mysite.com/home/shop/system/library/cache.php on line 9

F5 let's disappear the warning but it's very very fastidious.
Admin Panel->System->error logs is empty.
System->logs->error.txt:
2014-02-02 23:06:40 - PHP Warning: file_get_contents(/web/htdocs/www.mysite.com/home/shop/system/cache/c ... 1391382389): failed to open stream: No such file or directory in /web/htdocs/www.mysite.com/home/shop/system/library/cache.php on line 9
2014-02-02 23:06:41 - PHP Warning: file_get_contents(/web/htdocs/www.mysite.com/home/shop/system/cache/c ... 1391382399): failed to open stream: Stale file handle in /web/htdocs/www.mysite.com/home/shop/system/library/cache.php on line 9

What can I do to solve it? ???
Thank you in advance
Last edited by Margaretha on Tue Feb 04, 2014 3:14 am, edited 1 time in total.

New member

Posts

Joined
Sat Mar 26, 2011 6:23 pm

Post by nvedia » Mon Feb 03, 2014 6:38 am

Its trying to find a cached file which is deleted
Its a known issue if i am not wrong but doesn't impact any functionality
Are you seeing any issue with functionality?

Donate here to show support if you think I have helped you today!

Opencart Documentation


User avatar
Active Member

Posts

Joined
Sun May 22, 2011 12:54 pm

Post by tarheit » Mon Feb 03, 2014 7:20 am

For any production shop it's best to configure php to hide warnings and errors.

New member

Posts

Joined
Wed Jan 22, 2014 5:16 am

Post by nvedia » Mon Feb 03, 2014 10:54 am

Sorry I didnt realize that you are seeing these errors in your site
I thought its just in the error file
To suppress warnings, do this

In the file system/startup.php, change the following line
error_reporting(E_ALL);
to
error_reporting(E_ALL ^ E_NOTICE);

Also,
Admin->System->Settings->[edit your configured store]->Server->Display Errors

Donate here to show support if you think I have helped you today!

Opencart Documentation


User avatar
Active Member

Posts

Joined
Sun May 22, 2011 12:54 pm

Post by butte » Mon Feb 03, 2014 10:56 am

You want to turn error display (to screen) off and error logging (to file) on. [These two posts went up at the same time -- we're telling you the same thing, but the admin System / [Store] / Edit / Server setting for that should suffice without touching the startup.php file.]

You say "Admin Panel->System->error logs is empty" but quoted "System->logs->error.txt:". The two are ordinarily equivalent. What did you name the error log in admin System / [Store] / Edit? If you named it error.txt (the default), then it should fill the admin System / Errors box. If you named it something else, then where you found error.txt you should find the other name. If you prepended a path to error.txt, then it would probably extend the actual path by that much, such as by looking specifically for /system/logs/system/logs/error.txt, in which case it would not be there and would not show in the admin System / Errors box. It is a machine, you can confuse it.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Margaretha » Tue Feb 04, 2014 3:14 am

I love you all...nvedia help has solved my problem..smuack!!!

New member

Posts

Joined
Sat Mar 26, 2011 6:23 pm
Who is online

Users browsing this forum: No registered users and 40 guests