Hey folks, just trying to figure out what is going on with this coldfusion file. I bring it up in the browser and I get
Bad File Exception | |
Request | /index.cfm |
Type | Template |
Message | Expression Error |
Position | Line=166; Column=25 |
Detail | Problem occurred while parsing: count++ |
Extended Info | Encountered "<EOF>". Was expecting one of: <FLOATING_POINT_LITERAL> ... "-" ... "+" ... "#" ... "(" ... <IDENTIFIER> ... "DOES" ... "CONTAIN" ... "GREATER" ... "THAN" ... "LESS" ... "VAR" ... <INTEGER_LITERAL> ... <STRING_LITERAL> ... <BOOLEAN_LITERAL> ... "NULL" ... |
Source | 163: </li> 164: </ul><!--end social--> 165: </section><!--end column--> 166: <cfset count++> 167: </cfoutput> ^ Snippet from underlying CFML source |
BlueDragon Time @ Server: 08:18:13.903 Saturday, 28 February 2015 |
I am not really sure what is wrong here but I could use some help. I am including the contents of this file.
<cfquery name="qry_events" dataSource="#request.dsn#">
SELECT title,label,date_start,url_facebook,url_twitter,sm_image,lg_image,website,isWeeklyEvent
FROM cont_events
WHERE isActive = 1
AND '#dateformat(now(),"yyyy-mm-dd")#' <= date_end
AND isWeeklyEvent = 0
ORDER BY isFeatured DESC, date_start ASC
</cfquery>
<cfquery name="qry_weeklyEvents" dataSource="#request.dsn#">
SELECT title,label,date_start,url_facebook,url_twitter,sm_image,lg_image,website,isWeeklyEvent
FROM cont_events
WHERE isActive = 1
AND '#dateformat(now(),"yyyy-mm-dd")#' <= date_end
AND isWeeklyEvent = 1
ORDER BY isFeatured DESC, date_start ASC
</cfquery>
<cfquery name="qry_slideshow" dataSource="#request.dsn#">
SELECT a.title as album_title,b.lg_image
FROM cont_albums a, cont_photos b
WHERE a.id = b.albumID
AND a.id = <cfqueryparam CFSQLType="cf_sql_numeric" value="1">
ORDER by b.priority
</cfquery>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=.70, maximum-scale=1, user-scalable=yes">
<title>the Night Club</title>
<meta name="description" content="The ultimate & premium nightlife entertainment club in Maryland. Bringing the most sought after DJ talent across the world in a upscale luxury environment. For Club Information/Questions please call 443.687.0284 and for VIP/ Bottle Service Reservations please call 443.687.0292 | 21+ Venue" />
<link rel="stylesheet" href="css/slippry.css" type="text/css" />
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" />
<link rel="stylesheet" href="css/styles.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquery.slippry.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/scripts.js"></script>
<!-- Facebook Conversion Code for the1 -->
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('script');
fbds.async = true;
fbds.src = '//connect.facebook.net/en_US/fbds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '6017183967387', {'value':'0.00','currency':'USD'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6017183967387&cd[value]=0.00&cd[currency]=USD&noscript=1" /></noscript>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header class="main">
<div class="wrapper-960">
<a class="logo-main" href="/index.cfm">
<img src="images/logo-main.png" alt="the Night Club">
</a><!--end logo-main-->
<nav class="utility">
<ul class="social-icons">
<li>
<a target="_blank" href="mailto:info@thenightclub.com">
<img src="images/icon-blue-email.jpg" alt="Email">
</a>
</li>
<li>
<a target="_blank" href=" https://www.facebook.com/thecity">
<img src="images/icon-blue-facebook.jpg" alt="Facebook">
</a>
</li>
<li>
<a href="https://twitter.com/thecity">
<img src="images/icon-blue-twitter.jpg" alt="Twitter">
</a>
</li>
</ul><!--end social-icons-->
</nav><!--end utility-->
<h1>512 YORK ROAD city, MD 21204 <span>|</span> <a href="tel:443.687.0284">443.687.0292</a></h1>
</div><!--end wrapper-960-->
</header><!--end main-->
<section class="main-slideshow">
<a class="left-arrow sy-prev" href="##"></a>
<a class="right-arrow sy-next" href="##"></a>
<ul class="images">
<cfoutput query="qry_slideshow">
<li>
<img src="#lg_image#" alt="#album_title#">
</li>
</cfoutput>
</ul><!--end images-->
</section><!--end main-slideshow-->
<section class="main-content">
<ul class="callout">
<li>
MAIN<span>443.687.0292</span>
</li>
<li>
VIP RESERVATIONS<span>443.687.0292</span>
</li>
<li><a href="mailto:info@thenightclub.com?subject=VIP Inquiries">CONTACT</a></li>
<li><a href="images/MENUPDF.pdf" target="_blank">MENU</a></li>
<li><a href="images/weeklySpecials.pdf" target="_blank">WEEKLY SPECIALS</a></li>
<li><a href="https://www.facebook.com/thecity/photos_stream?tab=photos_albums" target="_blank">GALLERY</a></li>
</ul><!--end callout-->
<section class="callout-special">
<div class="wrapper-960">
<div class="left">
<div class="right">
<h1>AGES 21+ | HOURS OF OPERATION: THURSDAY/FRIDAY/SATURDAY DOORS AT 10PM</h1>
</div><!--end right-->
</div><!--end left-->
</div><!--end wrapper-960-->
</section><!--end callout-container-->
<section class="callout-special">
<div class="wrapper-960">
<iframe width="100%" height="315px" src="**************************?rel=0" frameborder="0" allowfullscreen></iframe>
</div><!--end wrapper-960-->
</section><!--end callout-container-->
<cfif qry_events.recordcount>
<h1 class="main">Upcoming Shows</h1>
<section class="two-column">
<div class="wrapper-960">
<cfset count = 1>
<cfoutput query="qry_events">
<section class="<cfif BitAnd(1,count)>odd<cfelse>even</cfif> column">
<h1> <span>#title#</span></h1>
<cfif len(trim(lg_image))>
<a rel="prettyPhoto[events]" title="Upcoming Show - #DateFormat(date_start,'mmm. dd')# - #title#" class="main-image" target="_blank" href="#lg_image#">
<img class="main" src="#sm_image#" alt="#title#">
</a>
<cfelse>
<a class="main-image" target="_blank" href="#website#">
<img class="main" src="#sm_image#" alt="#title#">
</a>
</cfif>
<!--<ul class="social">
<li class="icon">
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=#website#">
<img src="images/icon-blue-square-facebook.jpg" alt="Facebook">
</a>
</li>
<li class="icon">
<a target="_blank" href="http://www.twitter.com/share?url=#website#">
<img src="images/icon-blue-square-twitter.jpg" alt="Twitter">
</a>
</li>
<li class="purchase">
<a target="_blank" href="#website#">Purchase Tickets</a>
</li>
</ul><!--end social-->
</section><!--end column-->
<cfset count++>
</cfoutput>
</div><!--end wrapper-960-->
</section><!--end two-column-->
</cfif>
<cfif qry_weeklyEvents.recordcount>
<h1 class="main">Weekly Events</h1>
<section class="two-column">
<div class="wrapper-960">
<cfset count = 1>
<cfoutput query="qry_weeklyEvents">
<section class="<cfif BitAnd(1,count)>odd<cfelse>even</cfif> column">
<h1>Every #DateFormat(date_start,'dddd')# <span>#title#</span></h1>
<cfif len(trim(lg_image))>
<a rel="prettyPhoto[events]" title="Upcoming Show - #DateFormat(date_start,'mmm. dd')# - #title#" class="main-image" target="_blank" href="#lg_image#">
<img class="main" src="#sm_image#" alt="#title#">
</a>
<cfelse>
<!--<a class="main-image" target="_blank" href="#website#">-->
<img class="main" src="#sm_image#" alt="#title#">
<!--</a>-->
</cfif>
<!-- <ul class="social">
<li class="icon">
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=#website#">
<img src="images/icon-blue-square-facebook.jpg" alt="Facebook">
</a>
</li>
<li class="icon">
<a target="_blank" href="http://www.twitter.com/share?url=#website#">
<img src="images/icon-blue-square-twitter.jpg" alt="Twitter">
</a>
</li>
<li class="purchase">
<a target="_blank" href="#website#">Purchase Tickets</a>
</li>-->
</ul><!--end social-->
</section><!--end column-->
<cfset count++> <--- THIS IS THE LINE WHERE IT CRAPS OUT
</cfoutput>
</div><!--end wrapper-960-->
</section><!--end two-column-->
</cfif>
</section><!--end main-content-->
<footer class="main">
<a class="logo-secondary" href="/index.cfm">
<img src="images/logo-secondary.png" alt="the Night Club">
</a>
<div class="clear"></div>
<ul class="social">
<li>
<a target="_blank" href="https://www.facebook.com/thecity">
<img src="images/icon-blue-large-facebook.png" alt="Facebook">
</a>
</li>
<li>
<a target="_blank" href="https://twitter.com/thecity">
<img src="images/icon-blue-large-twitter.png" alt="Twitter">
</a>
</li>
</ul><!--end social-->
<h2>
HOURS OF OPERATION:<br>
THURSDAY/FRIDAY/SATURDAY DOORS AT 10PM<br>
AGES: 21+ | ADDRESS: mycity, US 2120<br>
ALL RIGHTS RESERVED © the NIGHTCLUB 2014<br>
<a style="color:#010;opacity:.6;text-decoration:none;" href="mailto:info@thenightclub.com?subject=VIP Inquiries">VIP INQUIRIES</a> |
<a style="color:#010;opacity:.6;text-decoration:none;" href="images/MENUPDF.pdf" target="_blank">MENU</a>
</h2>
</footer><!--end main-->
</div><!--end wrapper-->
</body>
</html>