Jump to content

Syntax Errors


Recommended Posts

What is the best way for me to track down theme syntax errors for my templates? It doesn't give line numbers or show the code for where it was triggered, like it does for everything else. I had one that said unexpected $k and in my template $k was in there probably 10 times, so it was a mess figuring it out, since I had some tricky variables.

Link to comment
Share on other sites

2 hours ago, Aiwa said:

constants.php


define ( 'DEBUG_TEMPLATES', TRUE);

Or, use an IDE.  I recommend PHPStorm. 

 

Thanks.

I'll probably finally switch over to a IDE when I build my pc. This pc is quick to hiccup, although surprisingly I have managed to get almost another year out of it since having issues. In fact, its working better.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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