Jump to content

Smarty Debugging


Recommended Posts

Hello,

 

I'm trying to place Smarty templates in debug mode but seems that somethink does not works. What I did:

 

- Edited vendor/smarty/smarty/libs/Smarty.class.php and modified line 452 to $debugging = true;

- Added in footer.tpl:

{if $smarty.session.adminid==1}
{debug}
{/if}

but nothing happen even when I removed the adminid check.

 

Thank you

Chris

Link to comment
Share on other sites

if you were going to do that, and you only want the debug window showing to admins logged in as clients...

 

{if $adminMasqueradingAsClient}
{debug}
{/if}

but if it were me, and I was debugging some code in a dev, i'd just add {debug} to the end of the appropriate template and then remove it when resolved.

Link to comment
Share on other sites

if you were going to do that, and you only want the debug window showing to admins logged in as clients...

 

{if $adminMasqueradingAsClient}
{debug}
{/if}

but if it were me, and I was debugging some code in a dev, i'd just add {debug} to the end of the appropriate template and then remove it when resolved.

 

Have tried all Brian but no success at all. Started without any user restriction placing {debug} at the top of the template. Nothing. Then at the end of the template. Nothing again. To make long story short I placed it in so many places and/or template files. Nothing. Finally I remember that needs debugging true. I search in the smarty class and I found it to be false. Changed it to true. Cleared browser cache. Emptied templates_c folder. Nothing worked.

Link to comment
Share on other sites

as I said in the other thread, you shouldn't need to set debugging to true - all the time i've used WHMCS, i've just needed to add {debug} to the template and it's worked out of the box... there must be something preventing the window from launching, but other than the options I listed in the other thread, i'm struggling to thing what could prevent the opening.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated