Jump to content

Problem with slow loading homepage and other CMS pages.


Kolar

Recommended Posts

Hello, I have problem with my online shop. A few days ago, something happened and there was 500 internal server error when trying to go to my website. I restarted VPS, cleaned cache. I realized that a cannot upload any file to my FTP account because of quota limit (I use Webmin/Virtualmin), so I changed it and the page started to work normally, but it is loading very slow.

 

Not all pages are loading slow, only homepage, about us page and other cms pages.

 

Here is error code:

 

[PrestaShopDatabaseException]

Db->executeS() must be used only with select, show, explain or describe queries
at line 616 in file classes/db/Db.php

611.
612.         // This method must be used only with queries which display results
613.         if (!preg_match('#^\s*\(?\s*(select|show|explain|describe|desc)\s#i', $sql))
614.         {
615.             if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
616.                 throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
617.             return $this->execute($sql, $use_cache);
618.         }
619.
620.         $this->result = $this->query($sql);
621.
Link to comment
Share on other sites

I think the error is from following file, where it should use Execute() for non-data query SQL statement(such update/delete/indert) , but in stead it uses "executeS" as  it is mentiioned in the error message

 

override/classes/Product.php

 

The override class should be coming from module, if you are not sure how to change that, it is better to contact the module developer.

Link to comment
Share on other sites

Thank you for your reply. Do you know what module it concerns? I will disable it and check if everything is ok.

 

EDIT:

When I ticked "Disable all modules not from Prestashop" and "Disable all overrides" in Performance tab, nothing changed. BO works perfectly and fast.

Edited by Kolar (see edit history)
Link to comment
Share on other sites

The problem is, that from a few months I have not installed any module. Maybe the problem is with something else? Maybe something with database?

 

Loading the homepage lasts about 2-3min. You can check: www.autoleds.pl

Link to comment
Share on other sites

No, I disabled cache to see changes and I wont enable this until everything works fine. I disabled updated Paypal module and the homepage loads fast. I have no idea why it is Paypal module.

Link to comment
Share on other sites

The slowness might be not related to the error. The error itself is just warning, it should be still working.

 

In order to increase performance, you need to enable both Smarty cache and enable CCC as suggested by @Teapot Creative.

 

Beside that, you may also consider to use contents cache of the store, which is at bottom of the same setting page

- back office - Advanced Parameters - Performance tab

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...