Saturday, April 13, 2013

How to debug prestashop errors like error "product()"



Problem:   
i get a problem while trying to duplicate an exiting item, the error message is not clear i only can see "product()", for that i have to search something to debug that problem.

Solution:
search defines.inc.php located in the /config directory and change a parameter 
define('PS_MODE_DEV', false);
by
define('PS_MODE_DEV', true);
now you will able to see the error on sentence like thins:
"....Unknown column 'redirect_type' in 'field list'INSERT INTO `ps_product` (`id_shop_default`, `id_manufacturer`, `id_supplier`, `reference`, `...."

No comments:

Post a Comment