|
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 |
txboy Smarty n00b
Joined: 16 Mar 2011 Posts: 2
|
Posted: Wed Mar 16, 2011 10:05 am Post subject: Howto enable debug in Prestashop ? |
|
|
Hi everybody.
I'm totally new to this forums.
I've got a problem with Prestashop 1.4 in a module I'm developing which is supposed to be caused by smarty and can't get console debug to work.
I've tried it by setting the debugging variable to true in config.inc.php, smarty.config.inc.php and in mymodule.php.
The module is placed in the backoffice's hookbackOfficeFooter hook, so it's showed only in backoffice.
The problem is that it works in some pages but not in others.
The code is very simple, it's just a test:
Code: | <script type="text/javascript">
$(window).load(function() {ldelim}
$("body").css("background","#000");
{rdelim});
</script> |
It works in almost all backoffice pages but not in, i.e., modules tag, in which the page render stops just when the code must be inserted, not showing anymore.
I wish to enable smarty debug to see any errors but I can't.
I've asked at Prestashop forums but nobody answers.
I'm a bit desperate!
Thanks in advance. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Mar 16, 2011 1:40 pm Post subject: |
|
|
check the php error log, also turn on display_errors in the php.ini. a page stopping usually indicates an error. |
|
Back to top |
|
txboy Smarty n00b
Joined: 16 Mar 2011 Posts: 2
|
Posted: Thu Mar 17, 2011 9:18 am Post subject: |
|
|
mohrt wrote: | check the php error log, also turn on display_errors in the php.ini. a page stopping usually indicates an error. |
I'll have a look.
Just another curiousity. I've changed the module position to be on hookAdminTop and works perfectly.
I think it could be something related with those specific pages at footer, but I'm not sure.
I'll look for errors on php log.
Thanks. |
|
Back to top |
|
digiway Smarty Rookie
Joined: 09 Apr 2011 Posts: 11 Location: Cyprus
|
Posted: Sat Apr 09, 2011 7:17 pm Post subject: |
|
|
Open config/smarty.config.inc.php and uncomment this line:
//$smarty->debugging = true; |
|
Back to top |
|
epnb Smarty Rookie
Joined: 24 Sep 2014 Posts: 8
|
|
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
|