Midnight Modding Posted April 4, 2018 Posted April 4, 2018 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.
Aiwa Posted April 4, 2018 Posted April 4, 2018 constants.php define ( 'DEBUG_TEMPLATES', TRUE); Or, use an IDE. I recommend PHPStorm.
Midnight Modding Posted April 4, 2018 Author Posted April 4, 2018 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.