Error Log (probably related to themeburn experimenatl cache extension)

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeError Log (probably related to themeburn experimenatl cache extension)

This topic has been marked as not a support question.

Hi,

We’ve just recently updated OC/Shoppica from 1.5.4.1/2.2.2 to 1.5.5.1/2.2.3 and we are getting the following errors in our error log:

2013-07-11 22:33:46 – PHP Warning: unlink(/var/www/vhosts/my_site/httpdocs/system/cache/cache.tb_smartcache.category_tree.0.2.1373585626): No such file or directory in /var/www/vhosts/my_site/httpdocs/vqmod/vqcache/vq2-system_library_cache.php on line 51
2013-07-11 22:33:46 – PHP Warning: unlink(/var/www/vhosts/my_site/httpdocs/system/cache/cache.tb_smartcache.menu_categories_html.0.2.1373585626): No such file or directory in /var/www/vhosts/my_site/httpdocs/vqmod/vqcache/vq2-system_library_cache.php on line 51

It seems to be related to the tb experimental cache extension we are using.
Can you please have a look? Is there any new version of the plugin so we can update it (we’ve sent you a few emails about sending us a newer version if available, but you haven’t replied yet)?

Thank you in advance!

July 15, 2013 at 11:58 am #25543

This error is related to the experimental cache extension, but it is not directly caused by it. It seems your are using a modified version of the Opencart”s default cache class, which does not correctly check for the existence of a file before trying to remove it. The default opencart Cache class does not suffer from this bug, so you better check what’s wrong with your modification.

Regards,
ThemeBurn team

July 18, 2013 at 10:50 am #25693

Hi,

Thanx for the reply.
No, we are not using a modified version of Opencart’s default cache class and there is no vqmod that changes it.
I am attaching the original cache class (system->library->cache.php) as well as the vqmod one.

Moreover, what about the experimental cache extension? Is there any newer version available for OC 1.5.5.1/ Shoppica 2.2.3?

Thank you in advance

  • This reply was modified 3936 days ago by  devplus.
  • This reply was modified 3936 days ago by  devplus.
July 18, 2013 at 2:18 pm #25718

Hi,

Please, use a zip archive, when you want to attach any files different from jpg or png.

Best,
ThemeBurn team

July 22, 2013 at 4:36 pm #25807

Thank you. Please see attached file.

July 22, 2013 at 4:39 pm #25808

Yes, it seems you didn’t do any custom modifications to the cache class. Our bad, sorry. Your issue is very strange though. The system checks if the cache exists, the server confirms it exists, then the system tries to remove it and the server responds that it does not exist :~/

Can you try to clean the cache from the Shoppica admin panel ? There is a ‘delete cache’ button for Smart Cache extension. Do you receive this error immediately after cleaning the cache ? Also, when you delete the opencart error log, does it get full with the error immediately (try to refresh the front end several times, before checking the error log again) ?

We don’t have a more recent version of Smart Cache because it seems to work quite stable and error free with the latest opencart versions.

Regards,
ThemeBurn team

July 22, 2013 at 5:49 pm #25827

Hi,

Thanx for the reply.
No, i get the error about once or twice every couple of days.
I’ve cleaned the Cache of Smart Cache extension (and OC error log of course).
I’ll watch it for a few days and let you know if the error persists.

Thanx!

July 22, 2013 at 5:56 pm #25828

Hi,

The only error we got the last 6-7 days (after cleaning the cache of smart cache extension) is the following:

2013-07-25 18:42:25 – PHP Warning: file_get_contents(/var/www/vhosts/my_site/httpdocs/system/cache/cache.tb_smartcache.category_flat_tree.0.2.1374777692): failed to open stream: No such file or directory in /var/www/vhosts/my_site/httpdocs/vqmod/vqcache/vq2-system_library_cache.php on line 9

Anything else we can do?

Thank you

July 30, 2013 at 12:40 pm #26056

I think I know what happens. It seems that occurs something known as ‘race condition’. It’s hard to explain it with simple words. When you have may visitors to the site at once, there are concurrent server processes. This error happens when two processes try to delete the cache simultaneously – the first deletes the cache and the second tries to delete it but it does not exist anymore. This is due to the sloppy opencart cache implementation. It is unpredictable when this would happen – it may happen twice for a day or may not happen for a week at all.

The good news is that this error happens transparently to the user and does not affect the visual part of the site. We’ll think about a patch, but it is minor issue, so no need to stress.

Regards,
ThemeBurn team

July 31, 2013 at 9:40 am #26082

Thanx a lot for the detailed explanation, I’ll wait for the patch then!

Thank you!

July 31, 2013 at 10:42 am #26089
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.