Jump to content

Messages d'erreurs suite à changement de thème


Recommended Posts

Bonjour, 

 

J'ai tenté d'installer un nouveau thème sur ma boutique existante puis voyant qu'il ne fonctionnait pas, j'ai fais une restauration via le phpmyadmin.

Hors, depuis cette restauration, je ne peux plus naviguer dans mon frontoffice sans avoir de message d'erreur, par exemple pour l'installation d'un module, j'ai ce message d'erreur : 

 

[PrestaShopDatabaseException]

Db->executeS() must be used only with select, show, explain or describe queries
at line 488 in file classes/db/Db.php

482.
483.         // This method must be used only with queries which display results
484.         if (!preg_match('#^\s*\(?\s*(select|show|explain|describe|desc)\s#i', $sql))
485.         {
486.             if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
487.                 throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
488.             return $this->execute($sql, $use_cache);
489.         }
490.
491.         $this->result = false;
492.         $this->last_query = $sql;
  • DbCore->executeS - [line 78 - modules/shopymind/shopymind.php] - [1 Arguments]
    72.      //Suppression doublons
    73.      Db::getInstance()->Execute('ALTER IGNORE TABLE `' . _DB_PREFIX_ . $infos[0] . '` ADD UNIQUE INDEX ('.$infos[1].')');
    74.      Db::getInstance()->Execute('ALTER TABLE `' . _DB_PREFIX_ . $infos[0] . '` DROP INDEX '.$infos[1].'');
    75.      Db::getInstance()->Execute('ALTER TABLE `' . _DB_PREFIX_ . $infos[0] . '` ADD PRIMARY KEY ('.$infos[1].')');
    76.     }
    77.     Db::getInstance()->ExecuteS('UPDATE `' . _DB_PREFIX_ .'spmcartoorder` SET `date_upd` = "'.date('Y-m-d H:i:s').'" WHERE `date_upd` = "0000-00-00 00:00:00";');
    78.
    79. if ((is_array($this->_errors) && count($this->_errors)) || !parent::install() || !$this->registerHook('header') || !$this->registerHook('footer') || !$this->registerHook('paymentConfirm') || !$this->registerHook('updateOrderStatus'))
    80. return false;
    81.
    82. return true;
  • ShopyMind->install - [line 805 - controllers/admin/AdminModulesController.php]
    799.                         // We check if method of module exists
    800.                             if (!method_exists($module, $method))
    801.                                 throw new PrestaShopException('Method of module cannot be found');
    802.
    803.                             // Get the return value of current method
    804.                             $echo = $module->{$method}();
    805.
    806.                             // After a successful install of a single module that has a configuration method, to the configuration page
    807.                             if ($key == 'install' && $echo === true && strpos(Tools::getValue('install'), '|') === false && method_exists($module, 'getContent'))
    808.                                 Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token.'&configure='.$module->name.'&conf=12');
    809.                         }
  • AdminModulesControllerCore->postProcessCallback - [line 1045 - controllers/admin/AdminModulesController.php]
    1039.                     $ppmReturn = $this->$ppm();
    1040.             }
    1041.
    1042.         // Call appropriate module callback
    1043.         if (!isset($ppmReturn))
    1044.             $this->postProcessCallback();
    1045.
    1046.         if ($back = Tools::getValue('back'))
    1047.             Tools::redirectAdmin($back);
    1048.     }
    1049.
  • AdminModulesControllerCore->postProcess - [line 171 - classes/controller/Controller.php]
    165.             // setMedia MUST be called before postProcess
    166.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    167.                 $this->setMedia();
    168.
    169.             // postProcess handles ajaxProcess
    170.             $this->postProcess();
    171.
    172.             if (!empty($this->redirect_after))
    173.                 $this->redirect();
    174.
    175.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
  • ControllerCore->run - [line 373 - classes/Dispatcher.php]
    367.             // Execute hook dispatcher
    368.             if (isset($params_hook_action_dispatcher))
    369.                 Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    370.
    371.             // Running controller
    372.             $controller->run();
    373.         }
    374.         catch (PrestaShopException $e)
    375.         {
    376.             $e->displayMessage();
    377.         }
  • DispatcherCore->dispatch - [line 54 - admin/index.php]
    48.     $_POST['controller'] = strtolower($_POST['tab']);
    49. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))
    50.     $_REQUEST['controller'] = strtolower($_REQUEST['tab']);
    51.
    52. // Prepare and trigger admin dispatcher 
    53. Dispatcher::getInstance()->dispatch();
 
savez vous ce qu'il faut faire ?
 
Link to comment
Share on other sites

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