The official community for ColdFusion.
Als letztes aktiv
I'm migrating a site from CF8 to CF2016 and when I cfdump the cookie scope in my application.cfm file, I see the cfid and cftoken values passed from the browser, however when I move that cfdump to the template being called i.e. default.cfm, the cfid is there but the cftoken had disappeared completely. Anyone know why?
Disclaimer... I didn't write this stuff!!! I'm just trying to understand WHY somebody wrote this stuff!!!I'm going through one of the Application.cfc templates I'm supposed to be responsible for when I ran across something I just didn't get. OK So I've ran across a bunch of stuff I don't get but that isn't the point... Turns out EVERY time a visitor hits this internal application the system generates a whole new set of Application variables for them. The first few lines of the Application.cfc file are shown here:<cfcomponent> <cfset this.name = "rover_" & lCase(ListLast(cgi.auth_user,"\"))> This means every unique visitor will create an application called "rover_SomeNameGoesHere". It also means the onApplicationStart method will be getting executed once for each unique visitor. Can anybody think of a "valid" reason for creating a new application scope for every unique visitor? Because it's an internal app we never see more
Late to the party but re the style issue - CF11 wants the ".xml" file extension (up to CF10: style="myStyle", with CF11: style="myStyle.xml").My issues/needs/questions:1) How do I get x-axis labels at say 45 degress? "Horizontal" and "Vertical" work but horiz is too wide and vert is hard to read.2) How do I loop through data sets that do not have the same count, e.g.: <cfset ra=[[30,20,40],[50,10,90,40,70,30],[88,72,64,81]]>? What I want is in the same chart have 3 groups with 1st group of 3 bars from the 1st array, 2nd with 6 bars, 3rd with 4. The best I've been able to get is 3 groups of 6 bars or 6 groups of 3 bars. CF fabricates the extra bars to make all groups 3X6 or 6X33) How do I loop through the above parent array with cfchartseries and get the first group generate from the first array (or query, struct, etc.), the 2nd group from the 2nd array, 3rd from 3rd array? What I've tried:<cfloop from="1" to="6" index="ix"><cfchartseries serieslabel="#chr(ix+75)#"
Hello, all,I know. The question in the title can be a bit confounding. It is to me, too, and I wrote it! I'm trying to dynamically add watermarking to images using imageDrawText(). A company name centered in the image.Now, if the only word(s) used are, say, a company name, then it's not a stretch to just play around with arguments until the text is centered on the image.But, what do you do if the text could change from image to image?? Suppose, for this hypothetical scenario, that after the company name the photographer's first and last name will be below the company name, and said names are of various lengths. And to make things even MORE interesting, the images used are different sizes and a mix of landscape and portrait oriented images.I'm trying to create code that will dynamically center the text on every image in a directory. Understandably, I'd have to get the width and height of the image, divide by two to get dead-center, then offset b
Hi,I have been recently asked to look into updating the web connectors on our server at work. First, some stats:Server RHEL 5ColdFusion 10 (64bit)Apache (not sure of the ver number)When I first did this install, I had to compile a custom connector to get it to work. However, there has always been one issue. In the rare times where I have had to stop CF from the command lines, I can't get CF to come back up and reconnect to the webserver. However, after a reboot everything works fine. I started researching the problem and I came across http://www.carehart.org/blog/client/index.cfm/2013/9/13/why_you_must_update_cf10_webserver_connector - Charlie's article about updating the connector. My first question is: Can someone from Adobe give me a little bit of information as to what happens when you create a connector? If I complied a connector when I first installed CF and compiled a connector *after* I have updated CF to the latest version are those connectors different? I'm asking
I need to create a report using CFReport for CSV format.I can create Excel, PDF, HTML, XML, RTF and Flash, but I am asked to produce CSV format.I search CFReport, it does not have CSV option for the format.I would like to know if it is possible to have CSV format using CFReport or ColdFusion have any other solution for this?Your information and help is great appreciated,Regards,Sourises,
When I try to apply the last security update in the coldfusion 11 administrator I get this error: "failed security verification"I Know there is a fix for coldfusion 10 Coldfusion 10 "failed signature verification" - Dark Training but i can't find a fix for coldfusion 11.Can anyone help me?
I'd like to angle the labels - say 45°. Horizontal "disappears" or overlaps - neither being acceptable, while "Vertical" is hard to read and takes more space.I have found "Horizontal" and "Vertical" work in the xml call style="myStyle" in CF10 and earlier, style="myStyle.xml" in CF 11, which referencesCFexe/cfusion/charting/styles/[myStyle].xml ...-<xAxis><labelStyle orientation="Vertical" isHideOverlapped="true"/><titleStyle isMultiline="false" font="Arial-12-bold"/></xAxis>...If I put a numeric in the orientation value assignment CF errors.
It is not giving an error, but the data values are not staying when comment page is refreshed. It does show the values immediately after loading but not after refresh.Something worth noting is the variables for ALL the blog section are not working without the get() in the variables. For example, instead of #blogpost.title#, it wants #blogpost.getTitle()#. The duplicate site does not do that, and when I had that issue then, I simply deleted the db tables, repopulated them, and then it worked. I just deleted the db blog tables and repopulated them and both the comment issue and get() issue still neeed resolved. Maybe the get() is related or should be addressed first?Here is a <cfdump var="#blogpost#"> : component workexperience.www.com.entity.blogPostPROPERTIESid1titletitlesummarysummarybodybodydateposted2005-01-01 00:00:00.0createdDateTime2005-10-10 10:10:55.0modifiedDateTime2005-10-10 10:10:55.0deleted[empty string]commentsarray1 component workexper
I've recently setup and configured a server farm running Windows Server 2012 and ColdFusion 10 Enterprise. I have a cluster created using named instances (not cfusion, though I find it curious that CF10 will allow you to cluster the cfusion instances now - but that presents problems - a different discussion later) anyhow.I began with Sticky Sessions enabled on the Cluster and it worked as expected, I then wanted to turn off Sticky Sessions so that the applications would enjoy a seemless failover. Unchecking the box on the Cluster manager, restarting IIS and CF, had no effect. Sticky was still, well, sticky. An examination of the cluster.xml revealed that the <stickysession> node was set to "false" but workers.properties still had sticky set to true, so I edited workers.properties, saved, restarted and voila the cluster was no longer sticky.Now here's where things get weird. I get a call from a member of my team, a user is losing their session and getting logged out. A test was co
I had a similar problem in this thread: Finding the Oracle datasource... I have a CF 10 application interfacing with an Oracle 11g database; Windows Server 2012. The original developers had different names for the datasources for Test (abcdTest) and Production (abcdProd). I attempted to access Test after being on another project for quite a while and received the message that the datasource abcdProd could not be found... that is correct because I was logged into the Test machine. I searched my source code and for some reason the datasource abcdProd was assigned in numerous places in the Application.cfc. I changed all the references, cleared cache, restarted the browser and tried to login again. Same error. There are no references to abcdProd in the code base I am currently working with. I have verified with the Gov't SysAdmin that CF Admin is set up correctly and my code should be pointing to abcdTest. &
Hi CF admins,I have this issue:Re: CF9 and Flex timezone issue WolfShade is suggesting to ask in this forum.Thanks in advanced.
I'm working on a clients system that has a library of CFC's in a folder called /Admin/cfcs. Inside that folder is an Application.cfc file.There is also an Application.cfc file at the root directory. Off the root directory are other folders in addition to the Admin folder.When I execute the template /Members/Index.cfm a few of the methods from the CFC library get executed.If there aren't any calls to the CFC library I'm 100% sure the Application.cfc in the root folder gets executed when I run any of the templates in any folder off the root folder.My question is if a template, such as /Members/Index.cfm, invokes a method from the CFC library does the Application.cfc template in the /Admin/cfcs folder get executed or is the root Application.cfc the one executed. I believe it's just the root one but I'm not 100% sure. Any thoughts??? Does having an Application.cfc in the library folder cause any issues???Thanks in advance for the assist!
I was receiving an ORA-936 on an application I support (Oracle 11g, CF 11, Windows Server 2012). The database went down yesterday, for a reason unknown to me, and when it came up, I am now getting this error message. The only pointer to the .cfm file is the referrer. I don't see how to fix this one. What information can I include that will help you help me? It seems like the more I learn, something new always comes up. Here's the error page that was displayed. I have not changed any declarations, that I know of. Thank you. The local variable application cannot be declared outside of a function.All variables defined with the var keyword must be declared inside a function.Resources: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem.Browser Mozilla/5.0 (Windows NT 6
When I run the hotfix from the command line using this statement:D:\ColdFusion11\jre\bin\java.exe -jar D:\ColdFusion11\cfusion\hf-updates\hotfix_009.jar -i silent -f D:\ColdFusion11\cfusion\hf-updates\my-server-name.profileI get the following error:Error: Could not find or load main class D:\ColdFusion11\cfusion\hf-updates\hotfix_009.jarI also seems to be ignoring the profiles option, because I see the following new folders in the C:\ drive.C:\ColdFusion11C:\hf-updatesC:\hf-11-00009Is the hotfix 9 broken, or is it just me?[This messages was edited, I removed the extraneous information.]
Hi ,We are using the Cold Fusion 10 server and it was unresponsive state 2 times. Noticed it is not generated any logs and errors during incident.Can you guide me what are logs need to enable to capture details of the error when ever incident occur.Thank you,paramesh
we have to create an application for creating adaptive web forms from XML Schema (XSD)? Is there any easy way to implement the same in ColFusion? When I research into the web, I found that there is possiblity for implementing the same using AEM 6.0. Referance : 1. AEM 6.0 Forms Help | Creating an adaptive form2. AEM 6.0 Forms Help | Introduction to authoring adaptive forms
Greetings!I've seen this question asked before, but have not been able to find an answer. Running CF 10.When using cfchart with multiple series, the last cfChartSeries attribute dataLabelStyle seems to over-ride any previous series value. For example:<cfchart format="png" style="chartStyles.xml" showLegend="no" scaleFrom="0" scaleTo="100" title="Chart 1" chartHeight="300" chartWidth="400"> <cfchartseries type="line" dataLabelStyle="none" > <cfchartdata item="Salamance Branch" value="50"> <cfchartdata item="Olean Branch" value="50"> <cfchartdata item="Thompsons Station Branch" value="50"> <cfchartdata item="hermitage Branch" value="50"> </cfchartseries> <cfchartseries type="bar" dataLabelStyle="
I'm creating a chart with two data series, one plotted as a bar graph, the other a line graph. I want to include the data value at the top of the bar graph, but exclude on the line graph. Documentation says the datalabelstyle attribute of cfchartseries identifies what to use for the series, but it seems to be entire chart, not by series. Code has: <cfchartseries type="line" datalabelstyle="none" ... <cfchartseries type="bar" datalabelstyle="value" ... but the value is included on both series. Whatever the last attribute has is what is used for the entire chart. Running CF 7.0.2.
Hello, all,I have kind of a weird jQuery issue going on, and I'm not sure what to make of it.The project that I'm working on (unfortunately, it's on a restricted site, so no one can access it) is a blog that allows comments and replies.From the main page, if a blog has any comments, there is a link at the bottom of the blog that allows the user to view the comment. Clicking the link will expand a hidden div that contains the comment.If there is a reply to the comment, there is a text link ("More") that appears. Clicking the "More" link will use AJaX to run a query on the database to get the reply.I have it set up so that when the link is clicked, a small spinner gif will appear to let the user know that the system is working in the background to get the reply. Once the database returns the data, the spinner disappears and is replaced by the content.Here's the issue: I'm using promise().done(function(){}); to make that happen, which is supposed to wait until the
This is a problem that has me banging my head on my desk. We have a web application that still uses Flash based web forms. (Before anyone says it, I know we need to get away from the flash forms, but we cannot do this overnight.) The problem is that because IE11 no longer passes MSIE in the USER AGENT string, ColdFusion is placing an <Embed> tag instead of an <Object> tag to load the flash. I know that we could add our site to the Compatibility List, however we have too many users to guide this through. We need a solution that we can perform on our side, either modifying code, ColdFusion, or IIS. First has anyone else run into this problem? Does anyone have any potential solutions?Thanks in advance for your help.
Hi, we have developed an application with cold fusion technology. In one particular page we have few javascript code. I get the javascript error asunable to get the property splice of undefined or null reference.i am unable to get to know why this error comes. Along with the error it also shows the line no.please help me with thisthankspraveena A
I kept getting this error when trying to access the site. I've tried 8 suggestions from this Google search result and it's not working. I figured it has something to do with ColdFusion. I'm able to get into the ColdFusion Administrator thought. Any suggestion is much appreciated.HTTP Error 404.2 - Not FoundThe page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.Most likely causes:•No handler mapping for this request was found. A feature may have to be installed.•The Web service extension for the requested resource is not enabled on the server.•The mapping for the extension points to the incorrect location.•The extension was misspelled in the browser or the Web server.
HiIf i buy a coldfusion 2016 license, is it possible to install an earlier coldfusion version with the same license keyRegardsRenaldo
How do you turn autoindenting off ?I tried windows -> coldfusion -> editor profiles -> editor and could not find how to do that.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.