Thommen Posted October 4, 2021 Share Posted October 4, 2021 I use the default PrestaShop template. When I enter the category I have an error ↓ [PrestaShopException] No template found for /x/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); Really. There is no such file there, but neither is it in the standard PrestaShop installation. What's the problem? Link to comment Share on other sites More sharing options...
sekar33 Posted January 27, 2022 Share Posted January 27, 2022 Hello, Same problem here, have you find a solution? Link to comment Share on other sites More sharing options...
mickeyboy1 Posted January 27, 2022 Share Posted January 27, 2022 what is your ps version ? have you loaded any modules/extensions lately ? Link to comment Share on other sites More sharing options...
sekar33 Posted January 27, 2022 Share Posted January 27, 2022 I have upgrated yesterday an old Prestashop to the last version. I have only the default modules from the new Prestashop. My theme is the original theme, I have a problem to regenerate the category thumbnail too, no override, etc, i don't find the problem... Link to comment Share on other sites More sharing options...
SebAll Posted February 4 Share Posted February 4 For me, the problem comes from the way the server lists the files. If you go to a terminal in /controllers/front and run ls -U you'll probably see that the listing directory is among the files instead of listed first. This means that PrestaShop uses CategoryController.php in /front/ instead of CategoryController.php in /front/listing/. With PS 1.7, change SCANDIR_SORT_NONE to SCANDIR_SORT_ASCENDING in /classes/PrestaShopAutoload.php. With PS 8, add ->sortByName() to /vendor/prestashop/autoload/src/LegacyClassLoader.php $finder ->in($directories) ->followLinks() ->files() ->name('*.php') ->sortByName(); A better solution would be not to have to modify the base files... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now