Jump to content

Cannot delete images from the default theme on Prestashop 1.6.1.18


Lunar

Recommended Posts

I try to delete any of the images of the default theme, like these, and I receive this error:

[PrestaShop] Fatal error in module file :/home/efeito5/public_html/katkay.com/store/classes/db/DbPDO.php:
Call to a member function rowCount() on boolean

How do I solve that?

thanks.

 

 

 

Screen Shot 2018-03-18 at 17.14.13.png

Link to comment
Share on other sites

Your recently upgraded your shop from an older Prestashop version ?

Activate debug mode and read the errors coming there when you try to delete the images.

Perhaps there are ps_tables missing on your database.

If you are having a database exception error saying that ps_ps_themeconfigurator table is missing, so please apply this workaround. It is a bug on Prestashop 1.6.1.18.

http://forge.prestashop.com/browse/PSCSX-9778

Open the file modules/themeconfigurator/themeconfigurator.php.
On line 397, you have:

Db::getInstance()->delete(DB_PREFIX.'themeconfigurator', 'id_item = '.(int)$id_item);

Replace with:

Db::getInstance()->delete('themeconfigurator', 'id_item = '.(int)$id_item);

Then save the file.

 

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...