J'ai trouvé sur le forum cette solution :
ALTER TABLE ps_image_shop ADD `id_product` int(10) unsigned NOT NULL, ADD KEY `id_product` (`id_product`, `id_shop`, `cover`);
Cela m'a ajouté dans le BO les produits mais les photos n'apparaisse que sur la fiche produit et non dans la liste des produits.
En ce qui concerne le FO, toujours rien.
Voici le message d'erreur :
Notice: Use of undefined constant _PS_CUSTOM_CONFIG_FILE_ - assumed '_PS_CUSTOM_CONFIG_FILE_' in /home/monsite/www/config/config.inc.php on line 69
Notice: Constant _PS_PRICE_DISPLAY_PRECISION_ already defined in /home/monsite/www/config/config.inc.php on line 131
[PrestaShopDatabaseException]
Table 'monsite2.ps_smarty_last_flush' doesn't exist
SELECT UNIX_TIMESTAMP(last_flush) as last_flush FROM `ps_smarty_last_flush` WHERE type='compile' LIMIT 1
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) { 787. $dbg = debug_backtrace(); 788. WebserviceRequest::getInstance()->setError(500, '
'.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { 790. if ($sql) { 791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 792. } 793. 794. throw new PrestaShopDatabaseException($this->getMsgError()); 795. } 796. }
DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 690 - classes/db/Db.php] - [1 Arguments]
DbCore->getRow - [line 723 - classes/db/Db.php] - [2 Arguments]
DbCore->getValue - [line 95 - classes/SmartyCustom.php] - [2 Arguments]
SmartyCustomCore->check_compile_cache_invalidation - [line 118 - classes/SmartyCustom.php]
SmartyCustomCore->createTemplate - [line 2335 - classes/module/Module.php] - [4 Arguments]
ModuleCore->getCurrentSubTemplate - [line 2309 - classes/module/Module.php] - [3 Arguments]
ModuleCore->display - [line 266 - modules/themeconfigurator/themeconfigurator.php] - [2 Arguments]
ThemeConfigurator->hookdisplayHeader - [line 591 - classes/Hook.php] - [1 Arguments]
HookCore::coreCallHook - [line 546 - classes/Hook.php] - [3 Arguments]
HookCore::exec - [line 579 - classes/controller/FrontController.php] - [1 Arguments]
FrontControllerCore->initContent - [line 124 - controllers/front/CategoryController.php]
CategoryControllerCore->initContent - [line 189 - classes/controller/Controller.php]
ControllerCore->run - [line 367 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]