Template Error: Mis-matched IF - END_IF tags

General ShopSite user discussion
Post Reply
VinceS
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

Template Error: Mis-matched IF - END_IF tags

Post by VinceS »

One of the simplest most maddening things in programming. Going blind trying to find this error.

When I generate the change I get the following messages (this is just a few lines of pages of identical messages)

Generating Page [354:ACR EPIRBs]...
AC_Product [747]: Template Error: Mis-matched IF - END_IF tags
AC_Product [747]: Template Error: Mis-matched IF - END_IF tags
AC_Product [747]: Template Error: Mis-matched IF - END_IF tags

Is this saying the error is in template AC_Product on line 747? Line 747 is the last line in the template so that's no help. Or is it telling me it's looking for an End_If at the end of the template.
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Re: Template Error: Mis-matched IF - END_IF tags

Post by loren_d_c »

It means it reached the end of processing the AC_Product template file and was still inside an IF statement and found no END_IF, so it knows there is a mis-match, just not exactly where or how. You can start by making a copy of your template file in a text editor and formatting/indenting it to match up the IFs and their corresponding END_IFs vertically until you find the one that doesn't have an END_IF.

-Loren
Post Reply