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

Debug Smarty on PrestaShop

 
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
Liquido
Smarty n00b


Joined: 23 Sep 2014
Posts: 2

PostPosted: Tue Sep 23, 2014 4:30 pm    Post subject: Debug Smarty on PrestaShop Reply with quote

Hi all,
i'm new on PrestaShop ecommerce system and i'm learning smarty.

i found this problem when i modify one page. Can you explain me the good way to find the problem? Thanks Smile

Code:

Fatal error</b>: Uncaught exception 'SmartyException' with message 'Missing template name' in <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_template.php:639

Stack trace:
#0 <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_templatebase.php(117): Smarty_Internal_Template-&gt;__get('source')
#1 <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_template.php(286): Smarty_Internal_TemplateBase-&gt;fetch(NULL, NULL, NULL, NULL, false, false, true)
#2 <ps_local_dir>\cache\smarty\compile\0b\79\6b\0b796b9ef27207277f574770a029b97485917f06.file.product.tpl.php(117): Smarty_Internal_Template-&gt;getSubTemplate('', NULL, NULL, NULL, NULL, Array, 0)
#3 <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_templatebase.php(180): content_541c40e3f01ff6_14852409(Object(Smarty_Internal_Template))
#4 <ps_local_dir>\classes\controller\FrontController.php(541): Smarty_Internal_TemplateBase-&gt;fetch('C:\\xampp\\htdocs...')
<ps_local_dir>\tools\smarty\sysplugins\smarty_internal_template.php</b> on line <b>639</b><br />
Back to top
View user's profile Send private message
epnb
Smarty Rookie


Joined: 24 Sep 2014
Posts: 8

PostPosted: Wed Sep 24, 2014 10:10 am    Post subject: Reply with quote

There is probably an error in your template source code. Can you post it ?

Take also a look to :
http://www.smarty.net/forums/viewtopic.php?t=18990
Back to top
View user's profile Send private message
Liquido
Smarty n00b


Joined: 23 Sep 2014
Posts: 2

PostPosted: Fri Sep 26, 2014 7:45 am    Post subject: Reply with quote

- RESOLVED -

I found the error : i think the error is made when i create a wrong "smartyRegisterFunction" request (this method call "$smarty->registerPlugin" method).

In any case thanks to epnb for reply =)

Regards.
Back to top
View user's profile Send private message
ColleenPeterson521
Smarty n00b


Joined: 22 Jan 2015
Posts: 2

PostPosted: Mon Mar 09, 2015 10:04 am    Post subject: Reply with quote

Hey thanks for posting this query. I was about to post the same one! Yikes. Anyway, I tried your method and it works too
Back to top
View user's profile Send private message
AmandaPratt184
Smarty Rookie


Joined: 02 Jan 2015
Posts: 5

PostPosted: Wed May 06, 2015 8:30 am    Post subject: Reply with quote

Hey thanks for the query. Although, the link's solutions doesn't seem to be working for me.
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