[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

PrestaShop 1.6.x. How to fix “An error occurred while updating an object. product ()”

The tutorial shows how to fix “An error occurred while updating an object. product ()” error in PrestaShop.

PrestaShop 1.6.x. How to fix “An error occurred while updating an object. product ()”

You can get this error in the process of adding or editing the product in PrestaShop when PrestaShop 1.6.0.9 template is installed into PrestaShop 1.6.0.14 version.

Prestashop. How to fix An error occurred while updating an object. product-1

The issue is usually caused by the lack of columns in the products database.

You can check what exactly causes the issue by turning on the debug mode in config/defines.ini.php file on FTP.

Just replace define(‘_PS_MODE_DEV_’, false); with define(‘_PS_MODE_DEV_’, true); in order to switch on the errors on the frontend.

In order to fix the error, please follow the steps below:

  1. Log into your Hosting Cpanel with your Hosting Cpanel login credentials – the username and password.

  2. Navigate to PhpmyAdmin tool and open the database used for this installation.

  3. Click the ‘SQL’ tab.

  4. Copy – paste the following piece of code into the SQL tab in the database:

    			ALTER TABLE `ps_product` ADD `pack_stock_type` int(11) UNSIGNED DEFAULT '3';
    			ALTER TABLE `ps_product_shop` ADD `pack_stock_type` int(11) UNSIGNED DEFAULT '3';
    			ALTER TABLE `ps_pack` ADD `id_product_attribute_item` int(10) UNSIGNED NOT NULL AFTER `id_product_item`;
    			ALTER TABLE `ps_pack` DROP PRIMARY KEY; 
  5. Click ‘Go’:

    Prestashop. How to fix An error occurred while updating an object. product_2

Feel free to check the detailed video tutorial below:

PrestaShop 1.6.x. How to fix “An error occurred while updating an object. product ()”