Template Error: Mis-matched IF - END_IF tags

General ShopSite user discussion

Template Error: Mis-matched IF - END_IF tags

Postby VinceS » Fri Mar 11, 2022 8:37 am

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.
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

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

Postby loren_d_c » Fri Mar 11, 2022 10:07 am

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
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 3 guests