Solved

cfChart Error

Posted on 2011-02-21
4
885 Views
Last Modified: 2012-05-11
I'm getting the following error:

Text outside XML: default  
 
 
The error occurred in C:\ColdFusion9\wwwroot\myMobiSaver\login\member\charts.cfm: line 215
 
213 :                           <cfchartdata item="Cell Phone Coupons" value="#val(vCellThirty)#">
214 :                           <cfchartdata item="Coupons Printed" value="#val(vPrintThirty)#">
215 :                           <cfchartdata item="iPod Coupons" value="#val(viPodThirty)#">
216 :                           </cfchartseries>
217 :                           </cfchart>
 
I posted my entire cfchart code below.
<cfquery name="cellcoup" datasource="#DSN#">
						SELECT DISTINCT coupname, SUM(cell) AS total FROM tracker
						WHERE DATE_SUB(CURDATE(),INTERVAL 60 DAY) <= hitdate AND
    					Memberid=#memberid#
						GROUP BY coupname
						</cfquery>
                          <strong>Total coupons for cell phones</strong> <br />
                          <cfchart 
		scalefrom=0
		scaleto=20
		font="arial"
		fontsize=16
		gridlines=10 
		show3d="yes"
		foregroundcolor="##0000CC"
		databackgroundcolor="##CCCCCC"
		chartwidth="580"
	>
                          <cfchartseries 
  type="BAR" 
  seriesColor="blue" 
  paintStyle="shade"
  seriesLabel="xxxx">
                          <--- FIRST 0
                          <cfoutput query="cellcoup"> <---- LOOP THROUGH QUERY, DRAW EACH POINT
                          <cfchartdata item="#cellcoup.coupname#" value="#val(cellcoup.total)#">
                          </cfoutput>
                          <---- END 0
                          </cfchartseries>
                          </cfchart>

Open in new window

0
Comment
Question by:sonicimpulse
  • 2
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
gdemaria earned 500 total points
ID: 34947475

Does your Coldfusion folder still have the default.xml file in it?   Did you modify it in anyway?  

 Location of default.xml file for charting under coldfusion folder
0
 

Author Comment

by:sonicimpulse
ID: 34947536
only folder I have is the "cache"  I'm missing all of those files.

How do I get them back?
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 34948507

Copy from another server or reinstall?

What version are you running?
0
 

Author Closing Comment

by:sonicimpulse
ID: 34970484
Thanks.  I did a reinstall and it works perfect now.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to dynamically set the form action using jQuery.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now