Jump to content

No template found for /home/sitename/httpdocs/themes/themename/search.tpl and contact-form.tpl


Henri

Recommended Posts

Full error:

[PrestaShopException]

No template found for /home/sitename/httpdocs/themes/themename/contact-form.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 1401 - classes/controller/FrontController.php] - [4 Arguments]
  • FrontControllerCore->getTemplateFile - [line 1292 - classes/controller/FrontController.php] - [3 Arguments]
  • FrontControllerCore->setTemplate - [line 261 - override/controllers/front/ContactController.php] - [1 Arguments]
  • ContactControllerCore->initContent - [line 255 - classes/controller/Controller.php]
  • ControllerCore->run - [line 428 - classes/Dispatcher.php]
  • DispatcherCore->dispatch - [line 28 - index.php]

 

I have a sneaky suspicion that it may have something to do with the server setting since the search at least worked at some point. 

Does anyone have an idea what could be going on here? 

Link to comment
Share on other sites

  • 6 months later...
On 23/8/2018 at 15:11, Henri said:

Error completo:

[PrestaShopException]

No se encontró ninguna plantilla para /home/sitename/httpdocs/themes/themename/contact-form.tpl
en la línea  68  en  clases de archivo / Smarty / TemplateFinder.php




  • TemplateFinderCore-> getTemplate - [línea 1401 - classes / controller / FrontController.php] - [4 Argumentos]
  • FrontControllerCore-> getTemplateFile - [línea 1292 - classes / controller / FrontController.php] - [3 Arguments]
  • FrontControllerCore-> setTemplate - [línea 261 - anular / controllers / front / ContactController.php] - [1 Arguments]
  • ContactControllerCore-> initContent - [línea 255 - classes / controller / Controller.php]
  • ControllerCore-> run - [línea 428 - classes / Dispatcher.php]
  • DispatcherCore-> dispatch - [line 28 - index.php]

 

Tengo la sospecha de que puede tener algo que ver con la configuración del servidor, ya que la búsqueda al menos funcionó en algún momento. 

¿Alguien tiene una idea de lo que podría estar pasando aquí? 

tengo el mismo problema.... ayuden please

 

Link to comment
Share on other sites

Guess in the initial question it was caused by an override ( override/controllers/front/ContactController.php ). So check if there is any override active (e.g. installed by some module) and if  the file from the error message exists on your server.

Link to comment
Share on other sites

  • 3 years later...

For those having this same issue, I found a solution to this problem here, thanks to the member kbarsotti.

I deleted the file "CategoryController.php" from the location ROOTDIR/controllers/front (after backing up the file of course).

No more 500 Server Error.

: D

  • Like 2
Link to comment
Share on other sites

  • 7 months later...
On 10/25/2022 at 2:30 AM, tztudio said:

For those having this same issue, I found a solution to this problem here, thanks to the member kbarsotti.

I deleted the file "CategoryController.php" from the location ROOTDIR/controllers/front (after backing up the file of course).

No more 500 Server Error.

: D

thank you for reply. my problem solved. Thank you again

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