info:prestashop

/config/defines.inc.php
/* Debug only */
if (!defined('_PS_MODE_DEV_')) {
	define('_PS_MODE_DEV_', false);
}

une galère pour copier une instance de prod sur un localhost… commencer par activer le mode debug supra et péniblement corriger, chez moi:

#evil but no other easy way!
chmod -R 777 .
sed -i 's|https://SERVERPRODURL|http://localhost/shop|g' DATABASENAME.sql
UPDATE `pl6s_shop_url` SET `domain` = 'localhost', `domain_ssl` = 'localhost' WHERE `pl6s_shop_url`.`id_shop_url` = 1; 
#if no https on localhost
UPDATE `pl6s_configuration` SET `value` = '0' WHERE `pl6s_configuration`.`id_configuration` = 30; 
  • info/prestashop.txt
  • Dernière modification : 2024/01/26 06:26
  • de radeff