Jump to content

Fatal error: Uncaught --> Smarty: Missing template name | Prestashop 1.6


Recommended Posts

Hello,

 

Wondering if anyone can help me in the right direction..

 

Been testing a new them - Worked great. Gone to update my real website to this theme and the latest prestashop software - no problems doing that.. However now my home page is just blank white?

 

So i did this debug thing which other poeple were talking about on the forum and i got this:

Fatal error: Uncaught --> Smarty: Missing template name <-- thrown in /home/*****/public_html/tools/smarty/sysplugins/smarty_internal_template.php on line 678

 

 

***** - is my host name blured out.

 

What appears to be the problem? Does anyone know?

 

Many thanks,

Gav

 

P.S: If i click view shop via the back office i get a odd url but the website works.

 

 

Link to comment
Share on other sites

@Denim & @Selcuktasgin As a last try i contacted the person who made our theme who then gave me the more updated version of the theme and its now fixed.

Because the error message was coming from a file which i thought had no real association with the theme i didnt think the theme was the problem.

But turns out it was.. Hope this works for you guys!

  • Like 1
Link to comment
Share on other sites

Hi Gavlarr!

 

Thanks for the response, I appreciate it. I've already tried to contact my theme developer, twice, as well as through Addons and after submitting a ticket. They provided two links, the first of which was from a different developer who did exactly what you just said: Sent the user an updated theme. The second was entirely unrelated to my issue.

 

The problem is, their support barely speak English and I don't think they understand that I was asking for an updated theme to begin with... Not sure what to do but wait now :<

Link to comment
Share on other sites

  • 1 year later...

it's weird ,it happened when get access to someone product,others are OK,

why?

 

http://www.uniformsell.com/en/waiter-shirts/99-europe-design-restaurants-coffee-shop-hotel-waiter-waitress-uniform.html

 

 

 

it happened only for some product with reviews ,
so i checked i have changed the productscomment module,
after i copy the template file it turned OK

Edited by TiaNex. (see edit history)
Link to comment
Share on other sites

  • 3 months later...

One of my clients had this exact problem when trying to generate PDF invoices, and it turned out that one of the template tpl files was missing from his /pdf folder. In this case it was "pagination.tpl", but there are multiple auxiliary tpls that are used by different controllers, and can thus generate that same error. If the problem was on the homepage instead, then I would suspect that the same thing happened to some of the template tpls in the themes/{your_theme_name} folder.

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

Hello everyone,

 

Responding to the last post by Kazeno,

 

Could anyone advise the way to find the required missing template to solve the error?

 

I got into the code and found the following around line 678:

 

 

/**
* get Smarty property in template context
*
* @param string $property_name property name
*
* @throws SmartyException
*/

public function __get($property_name)
{
switch ($property_name) {
case 'source':
if (strlen($this->template_resource) == 0) {
**** 678 ** **throw new SmartyException('Missing template name');
}****
$this->source = Smarty_Resource::source($this);
// cache template object under a unique ID
// do not cache eval resources
if ($this->source->type != 'eval') {
if ($this->smarty->allow_ambiguous_resources) {
$_templateId = $this->source->unique_resource . $this->cache_id . $this->compile_id;
} else {
$_templateId = $this->smarty->joined_template_dir . '#' . $this->template_resource . $this->cache_id . $this->compile_id;
}

 

 

How can we find the responsible missing template name ?

 

I've attached the theme (with over 260 .tpl. files).

 

What is the way to find the necessary missing template name?

 

Thank you for your directions and help.

 

 

Edited by Abdillokra (see edit history)
Link to comment
Share on other sites

  • 10 months later...
  • 6 months later...

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