|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
archavin Smarty n00b
Joined: 22 Dec 2017 Posts: 3
|
Posted: Fri Dec 22, 2017 9:31 pm Post subject: SmartyException in smarty_internal_template.php line 678 |
|
|
Hello everybody,
I'm new to this Forum and PrestaShop.
I'm working with Prestashop 1.7.1.2 since November 2017 on localhost to get familiar with this CMS. Today I got an error while trying to visit my website (Front-end). I get this error after I have installed a theme and then activating again the classic theme.
Code: | SmartyException in smarty_internal_template.php line 678:
Missing template name
in smarty_internal_template.php line 678
at Smarty_Internal_Template->__get('source') in smarty_internal_templatebase.php line 119
at Smarty_Internal_TemplateBase->fetch(null, null, 'layouts/layout-full-width.tpl', null, false, true, false) in SmartyDev.php line 41
at SmartyDev->fetch(null, null, 'layouts/layout-full-width.tpl') in FrontController.php line 660
at FrontControllerCore->smartyOutputContent(null) in FrontController.php line 644
at FrontControllerCore->display() in Controller.php line 225
at ControllerCore->run() in Dispatcher.php line 369
at DispatcherCore->dispatch() in index.php line 28 |
The Back-end still working good.
Any idea please? |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Dec 22, 2017 11:46 pm Post subject: |
|
|
I don't like this statment: Code: | FrontControllerCore->display() in Controller.php line 225 |
Find the display() function in FrontController.php. There should be a variable holding the name of a template (I guess). |
|
Back to top |
|
archavin Smarty n00b
Joined: 22 Dec 2017 Posts: 3
|
Posted: Sat Dec 23, 2017 12:24 am Post subject: |
|
|
bsmither wrote: | I don't like this statment: Code: | FrontControllerCore->display() in Controller.php line 225 |
Find the display() function in FrontController.php. There should be a variable holding the name of a template (I guess). |
This is the source code of display()
Code: | public function display()
{
$this->context->smarty->assign(array(
'layout' => $this->getLayout(),
'stylesheets' => $this->getStylesheets(),
'javascript' => $this->getJavascript(),
'js_custom_vars' => Media::getJsDef(),
'notifications' => $this->prepareNotifications(),
));
$this->smartyOutputContent($this->template);
return true;
} |
|
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Sat Dec 23, 2017 1:26 am Post subject: |
|
|
So, $this->template has no value (or is actually equal to null).
That means DispatcherCore, ControllerCore, or FrontControllerCore lost, or was never given, the name of the template to have Smarty compile.
Maybe a PrestShop forum could help you with finding out why that is happening. |
|
Back to top |
|
archavin Smarty n00b
Joined: 22 Dec 2017 Posts: 3
|
Posted: Sat Dec 23, 2017 11:55 am Post subject: |
|
|
bsmither wrote: | So, $this->template has no value (or is actually equal to null).
That means DispatcherCore, ControllerCore, or FrontControllerCore lost, or was never given, the name of the template to have Smarty compile.
Maybe a PrestShop forum could help you with finding out why that is happening. |
Thank you so much |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|