Zen Cart Logo
Forums / General Questions / Something went wrong with the site caching! Please try refreshing this page

Something went wrong with the site caching! Please try refreshing this page

Views: 956

Results 1 to 7 of 7
5 May 2015, 5:17 PM
#1
timlo avatar

timlo

New Zenner

Join Date:
Jan 2008
Posts:
20
Plugin Contributions:
0

Something went wrong with the site caching! Please try refreshing this page

**today my site all went down by sudden, and I am not sure if there is any issue with the image handler I installed last month.
my site shows "Something went wrong with the site caching!Please try refreshing this page, that should fix the issue."

i ask my hosting service and get the following answer. I am hoping if anyone can suggest any possible solution for me to fixed this. **

I am not sure since my site running over a year without any issue

"Thank you for the update. I carefully investigated your case and as part of my investigation, I used the Linux strace utility. It allowed me to attach my console to the PHP process and see what system calls is using, so I can debug what is taking too long for the script to actually execute. The results can be found under a file called strace.txt in your public_html folder. While it might be a bit cryptic at first, what we can easily identify is the immense amount of queries your script is generating. Sorting just the SELECT queries, we can see there are 45,647 select queries ran by the script, where the normal amount would be no more than 100 or 150 at most.

The following is an example of a batch of queries ran by the script:

Code:
write(4, "\236\0\0\0\3select products_tax_class_id, products_price, products_priced_by_attribute, product_is_free, product_is_call from products where products_id = '5701' limit 1", 162) = 162
write(4, "]\0\0\0\3select products_price, products_priced_by_attribute from products where products_id = '5701'", 97) = 97
write(4, "%\1\0\0\3select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included from products_attributes where products_id = '5701' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, price_prefix, options_values_price", 297) = 297
write(4, "m\0\0\0\3select products_price, products_model, products_priced_by_attribute from products where products_id = '5701'", 113) = 113
write(4, "]\0\0\0\3select products_price, products_priced_by_attribute from products where products_id = '5701'", 97) = 97
write(4, "%\1\0\0\3select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included from products_attributes where products_id = '5701' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, price_prefix, options_values_price", 297) = 297
write(4, "[\0\0\0\3select specials_new_products_price from specials where products_id = '5701' and status='1'", 95) = 95
write(4, "m\0\0\0\3select products_price, products_model, products_priced_by_attribute from products where products_id = '5701'", 113) = 113
write(4, "]\0\0\0\3select products_price, products_priced_by_attribute from products where products_id = '5701'", 97) = 97
write(4, "%\1\0\0\3select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included from products_attributes where products_id = '5701' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, price_prefix, options_values_price", 297) = 297
write(4, "[\0\0\0\3select specials_new_products_price from specials where products_id = '5701' and status='1'", 95) = 95
write(4, "E\0\0\0\3select master_categories_id from products where products_id = '5701'", 73) = 73

Each of the lines above is a separate query for a product with id of 5701. The same set of queries is ran for each and every product on your website, for a reason unknown to me -- it is perhaps an extension of some sort, which is running them.

If you haven't changed anything recently, I can recommend you to get in touch with a professional web developer who would be able to check the case further and make the required adjustments. It is, however, not a server side issue as it simply takes a lot of time for all the 45k queries to be ran.

If you have any other questions or comments, please don't hesitate to contact us!"

6 May 2015, 12:54 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Something went wrong with the site caching! Please try refreshing this page

You are running Zen Cart 1.3.8A? What is the PHP and mySQL version on the server?
~Melanie

6 May 2015, 5:16 AM
#3
timlo avatar

timlo

New Zenner

Join Date:
Jan 2008
Posts:
20
Plugin Contributions:
0

Re: Something went wrong with the site caching! Please try refreshing this page

mprough:

You are running Zen Cart 1.3.8A? What is the PHP and mySQL version on the server?
~Melanie

I am using

MySQL version 5.1.66-cll
PHP PHP 5.2.17
Zen Cart 1.3.8a

Since I have heavy modified my site and having customer and order information, which I am not able to upgrade to newest zencart

and do know why today once I woke up the site is up and running as usual. but I would still like any possible solution that
can help to prevent this happen again.

I have see a
Simple Cache plugin , but it seems a a long time ago, so I am not sure if that still usefully

thank you for your help

6 May 2015, 11:04 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Something went wrong with the site caching! Please try refreshing this page

Regardless of the amount of customization performed, the same or similar modifications can be made to the new code. As for order information, if following the instructions provided below in the link, they will transfer to the new version.

Regarding your current versions, ZC 1.3.8 is known to have significant security issues that are corrected in newer versions. PHP 5.2.17 also has security issues and in general is no longer supported. In fact add to all of this if your host upgrades the php version on your site, your store will no longer function without additional modification as ZC 1.3.8 is not supported on PHP 5.3 and above...

So to prevent a similar issue, it would be my recommendation (as I think it is for mprough) to upgrade your site. Regarding the "old" plugin you were talking about, understand that the plugin is probably as old as the software you are currently running so I don't see why it couldn't be used as a temporary stopgap.

6 May 2015, 11:21 AM
#5
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Something went wrong with the site caching! Please try refreshing this page

Simple cache is going to create it's own set of problems. MC is right, you need to upgrade and soon.... In the interim, does your host have memcache installed? and do you optimize your database?

~Melanie

11 May 2015, 11:06 AM
#6
timlo avatar

timlo

New Zenner

Join Date:
Jan 2008
Posts:
20
Plugin Contributions:
0

Re: Something went wrong with the site caching! Please try refreshing this page

My host asking me to try memcache

but I dont know how to active this with Zencart 138 to make it work, does anyone can tell me the detail of it

as I try to upgrade to 1.5.4, but seem something went wrong, and the Database dont import correct. Perhaps I have too many plugin installed. Like Ty-tracker, Reward Point, Cross sell and others.

the important thing are the customer and order detail. Can anyone tell me how do I only import those 2 main data to my new 1.5.4, if I have to reinstall all over again to 1.5.4

for memcache. my host told me.

In order to activate Memcached option you should go to your cPanel -> SuperCacher -> Level 3 cache and enable the Memcached option. Then you will need to configure your Zen Cart with Memcached to work on the same port as it is in cPanel.

but how does it work with zen cart I am currently using? At least I want to login back to my Admin, and my site is now very unstable, sometime it load and sometime it does, and special admin page. (I am using over years without this happen, it all happen this week)

thank you

11 May 2015, 11:44 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Something went wrong with the site caching! Please try refreshing this page

The suggested process to do this upgrade is: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

Trying to patch 1.3.8 to continue functioning is not a good idea or solution.

Following the above process will maintain the data that you are trying to keep.