Jump to content

[PrestaShop] Fatal error in module file :/xxxxx/classes/db/DbPDO.php: Call to a member function rowCount() on boolean - cannot delete images themeconfigurator


selectshop.at

Recommended Posts

If you are having this error by trying to delete the native pictures from themeconfigurator on PS 1.6.1.18, so this is a BUG.

If you further activate debug mode you will get the following error:

[PrestaShopDatabaseException]

Table 'xxxxxx.ps_ps_themeconfigurator' doesn't exist

 

xxxx stands for your shop-name.

For to debug this error apply this workaround:

 

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.

 

 

  • Thanks 1
Link to comment
Share on other sites

  • Matt75 unpinned this topic

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