Jump to content
shana0780

Erreur sur page catégorie après upgrade vers PS 1.7.6.2.

Recommended Posts

Bonjour,
 

Upgrade via 1-click module de PS 1.6.1.8 vers PS 1.7.6.2

PHP 7.2

 

J'ouvre un autre topic pour ce problème.

Lorsque je clique sur une catégorie de produits, j'ai un message d'erreur sur la page.  Quelqu'un pourrait-il me dire ce que je peux faire ?

 

 

 

[PrestaShopException]

No template found for /home/lovingsc/www/themes/classic/category.tpl
at line 68 in file classes/Smarty/TemplateFinder.php

63. return $tpl; 64. } 65. } 66. } 67. 68. throw new PrestaShopException('No template found for ' . $template); 69. } 70. 71. private function getTemplateHierarchy($template, $entity, $id) 72. { 73. $entity = basename($entity);

TemplateFinderCore->getTemplate - [line 1402 - classes/controller/FrontController.php] - [4 Arguments]

1397. 1398. return $this->getTemplateFinder()->getTemplate( 1399. $template, 1400. $params['entity'], 1401. $params['id'], 1402. $locale 1403. ); 1404. } 1405. 1406. /** 1407. * Renders and adds color list HTML for each product in a list.

FrontControllerCore->getTemplateFile - [line 1293 - classes/controller/FrontController.php] - [3 Arguments]

1288. * @param string $default_template 1289. */ 1290. public function setTemplate($template, $params = array(), $locale = null) 1291. { 1292. parent::setTemplate( 1293. $this->getTemplateFile($template, $params, $locale) 1294. ); 1295. } 1296. 1297. /** 1298. * Removed in PrestaShop 1.7.

FrontControllerCore->setTemplate - [line 131 - controllers/front/CategoryController.php] - [1 Arguments]

126. */ 127. public function initContent() 128. { 129. parent::initContent(); 130. 131. $this->setTemplate(_PS_THEME_DIR_.'category.tpl'); 132. 133. if (!$this->customer_access) { 134. return; 135. } 136.

CategoryControllerCore->initContent - [line 292 - classes/controller/Controller.php]

287. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 288. $this->initHeader(); 289. } 290. 291. if ($this->viewAccess()) { 292. $this->initContent(); 293. } else { 294. $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error'); 295. } 296. 297. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {

ControllerCore->run - [line 515 - classes/Dispatcher.php]

510. if (isset($params_hook_action_dispatcher)) { 511. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 512. } 513. 514. // Running controller 515. $controller->run(); 516. 517. // Execute hook dispatcher after 518. if (isset($params_hook_action_dispatcher)) { 519. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher); 520. }

DispatcherCore->dispatch - [line 28 - index.php]

23. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 24. * International Registered Trademark & Property of PrestaShop SA 25. */ 26. 27. require dirname(__FILE__).'/config/config.inc.php'; 28. Dispatcher::getInstance()->dispatch();

Share this post


Link to post
Share on other sites

Problème résolu.

Si ça peut aider quelqu'un d'autre, j'ai supprimé dans controllers/front le fichier CategoryController.php

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More