Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

SmartyException in smarty_internal_template.php line 678

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
archavin
Smarty n00b


Joined: 22 Dec 2017
Posts: 3

PostPosted: Fri Dec 22, 2017 9:31 pm    Post subject: SmartyException in smarty_internal_template.php line 678 Reply with quote

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
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Fri Dec 22, 2017 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
archavin
Smarty n00b


Joined: 22 Dec 2017
Posts: 3

PostPosted: Sat Dec 23, 2017 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Sat Dec 23, 2017 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message
archavin
Smarty n00b


Joined: 22 Dec 2017
Posts: 3

PostPosted: Sat Dec 23, 2017 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP