The official community for ColdFusion.
Recently active
Since an update was made on where my site is being hosted, i can't get the URL's to work. Unfortunately my site was written over 20 years ago (not by me) , i do have experience with HTML and CSS, but cold fusion....well no. From what I have seen is that it has something to do with Scoped Variables. The URL's are showing in the browser, but it remains on the homepage. I'm using a page to control most of my nav. So for example<a href="./inc_executive.cfm?show=executive">Executive & Coaches</a> simply resets to the homepage.Any help or suggestions would be appreciatedThanks
Part of my app provides various email content pages, which are called and populated with data, then prepared for sending through Postmark. In the following case, when a user shows interest in a job, s/he clicks a button labelled "Chase Job" which ultimate results in an email being sent to the job owner. When that button is clicked, jQuery handles it as follows: $('#chase-form .btnChase').on("click",function(e){ var clickedID = $(this).attr("id"); var chase = clickedID.split("_")[1]; var user_id = clickedID.split("_")[2]; var listing_id = clickedID.split("_")[3]; var message = $('#intro-message').val(); $(this).prop('disabled', true); jQuery.getJSON("/cfcs/listing.cfc?method=chaseJob&returnformat=json",{"chase":chase,"user_id":user_id,"listing_id":listing_id,"status":status,"message":message},function(res,code){ if(res == 1){ top.location.reload(true); } $('#chase-form .btnChase').removeAttr("disabled"); }); re
We have a shared cfc file that builds html elements, one of which calls a separate function in the file that builds a bound selection box. While testing a newer version of CF in our Dev environment we had been utilizing the following flag in our server settings:Encryption - = -Dcoldfusion.encryption.useCFMX_COMPATAsDefaultOnce we removed the flag, our bind element returns a 404 error, I assume due to the updated encryption in recent CF releases. Is there anything that needs to be done to make sure cfdiv bind will work with the udpated encryption?
How to download cf2023 installer for migrating from cf20221 to cf 2023. CF trail version download no allows only cf2025 download.
I am trying to set a .cfm file insde of an iframe. within a .net website.It was working fine using CF 2016 but now that I am using CF 2023 it doesn't work anymore... thoughts?this is the page: https://www.transducertechniques.com/track-order.cfmThis is the page in an iframe - it throws a 404 errorhttps://www.transducertechniques.com/track-your-order.aspxhere is the iframe. I used it with and without the full URL<iframe id="locator" src="https://www.transducertechniques.com/track-order.cfm" frameborder="0" scrolling="no" width="100%" height="243"></iframe>
Hello all,We were running on Update 11, and have a scheduled task that uses certificate file to connect.Before update it was working fine.Now after update we are getting this: ErrorCode82ErrorTextAlgorithm negotiation fail: algorithmName="cipher.c2s" jschProposal="aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com" serverProposal="aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc"ReturnValue82 Algorithm negotiation fail: algorithmName="cipher.c2s" jschProposal="aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com" serverProposal="aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc"SucceededNOSo obviously we are proposing algorithms that the remote server does not support.I cannot find anywhere to allow for aes256-CBC to be used on our end.So how I do I at least enable an algorithm that their server supports???
Hi all. ColdFusion 2021 uses Java 11 and ColdFusion 2023 uses Java 17. Java 11 contained the Nashorn Scripting Engine, which is used in my CF 2021 code to run JavaScript on the back end, but Nashorn was removed from Java 17, so I'm looking for the best way to replace what it did in ColdFusion 2023. Has anyone else successfully done this? Apparently Nashorn is now available as a standalone package but I'm not a Java guy, so I don't know how to get it into a form that ColdFusion can use (maybe a jar file). Would anyone else know how to go about this? Another alternative is the GraalJS scripting engine, which I understand can duplicate what Nashorn did, but again, how can this be put into a ColdFusion-usable library or installation? Any help would be greatly appreciated!
Scheduled tasks on my server are not working. In scheduler.log I get:Connection Failure: Status code unavailableSome more logs: The each method was not found.Either there are no methods with the specified method name and argument types or the each method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. The specific sequence of files included or processed is: /opt/coldfusion2021/cfusion/wwwroot/CFIDE/administrator/scheduler/tasksstatus.cfc, line: 111Here are the server details
I have HTML code, containing dynamic variables, stored in a database in a field named "data',. An example of raw data in that field would be: <a href="<cfoutput>#application.siteroot#</cfoutput>/?utm_campaign=transactional&utm_source=emails.logo&utm_medium=email"><img src="<cfoutput>#application.siteroot/logo10-180.png"></a> Within a cfc, I have code that sets this data in a <cfcontent> tag as follows: <cfsavecontent variable="emailBody"> <cfoutput>#vData#</cfoutput> </cfsavecontent> However, when I tried to insert "emailBody" into an email and send it, the resulting email does not evaluate the variables in the email body and the email ends up looking like this: What am I doing wrong?
Installed lockdown guide but it destroyed permissions on the websites. Does anyone have a manual lockdown guide for Cold Fusion 2023 Standard Edition?
Here is the log file - The RDP is not enabled but the error says it is and it is a Production install with security: --- Any Thoughts on getting this lockdown tool to work?2025-03-08 22:31:41 INFO - Path:C:\ColdFusion2023\lockdown\cfusion2025-03-08 22:31:41 INFO - LINE_DEBUGGER_ENABLED -> false2025-03-08 22:31:41 INFO - developer_enabled -> false2025-03-08 22:31:41 INFO - REMOTE_INSPECTION_ENABLED -> false2025-03-08 22:31:41 INFO - ajax_enabled -> false2025-03-08 22:31:41 INFO - robust_enabled -> false2025-03-08 22:31:41 INFO - FLASHFORMCOMPILEERRORS -> false2025-03-08 22:31:41 INFO - enabled -> false2025-03-08 22:31:41 INFO - Remote admin component is enabled. Server is not production profile. Please delete the AdminServlet.war from jetty to disable it and try again!2025-03-08 22:31:43 INFO - ColdFusion is running
Am I doing something wrong or is there a bug in ColdFusion 2025? I get this error:Could not find the ColdFusion component or interface http. Ensure that the name is correct and that the component or interface exists.When trying to instantiate an HTTP service object using the cfscript syntax:<cfscript> http = new http(); writeDump(http); abort; </cfscript>This is a fresh ColdFusion 2025 install.
We have application on our server that we are unable to reload or restart when we make changes to the code. We use the URL parameter which does not work with all applications, we try to flush the cache (templates and CFC) in CF administrator page wihc does not quite works. The only thing that works is to restart the actual coldfusion OS service. Is there any tricks that will force the application to restart or reload?CF2021/Linux Centos 7.8
I am testing code that works in CF 11 for an upgrade to CF 2023. I have a component that extends another component and overrides the type of a property in the base component. Here is some simple pseudo code demonstrating the components: Base.cfc: component accessors="true" { property name="myData" type="query"; } Extend.cfc: component extends="Base" accessors="true" { property name="myData" type="array"; public Extend function init() { setmyData([]); return THIS; } } When Extend.init() is called, an error is thrown saying that the value is not of type "query". This code works fine in CF 11. Has something changed since that won't allow this, or, is there a workaround? Thanks, Eric
I have a ColdFusion script that creates a PDF to be sent for archiving. The PDF is created with the following function:<cfdocument format="pdf" orientation="portrait" pagetype="A4" unit="cm" marginbottom="2" margintop="2" filename ="#path#" overwrite="true">The problem is that sometimes the generated file is missing images and instead shows a square with a red 'x' inside. The issue is that the image exists because it is static and present in the filesystem:<img src="../../portale_admin/img/image.png" align="#positioning#"></img>And 99% of the time, it is correctly included. In addition i have a function:<cffunction name="checkImage" returntype="void"> <cfargument name="img_path"> <cfset img_path = ExpandPath("#img_path#")> <cftry> <cfimage action="read" source="#img_path#" name="testImage"> <cfcatch> <cflocation url="/missioni/portale_admin/no_
Recently, Postmark became less forgiving about the stuff people were sending them. I had been using some code 8 years ago from gitHub that prepared and sent email templates via Postmark. I've just dragged that code out again and it is erroring all over town right now. I really hope I've provided enough detail and also hope someone is patient enough to trawl through it. In places throughout the code, I've added comments like "<!--- SEE OUTPUT #2 --->". These refer to various dumps I've added at the bottom to let you see the results of the processing. I also ran some tests using simpler HTML and even plain text, the results of which I've also included at the bottom. Basically, everything I've tried results in the same Postmark error:{""ErrorCode"":403,""Message"":""Invalid request field(s): $.HTMLBody""}So, at this point I'm concluding that the formatting of the JSON for Postmark consumption is going wrong somewhere.If you need any more information, please ask. My pr
<html> <div><p> Hi there</p> </div> </html>Sample code above has whitespace, which I need to get rid of. I've found various examples used in different code settings and tried plugging them into a CF REReplace() function, but nothing has worked so far.e.g. something like this in node var result = html.replace(/>\s+|\s+</g, function(m) { return m.trim(); }); Any help greatly appreciated.
I need to prepare html for sending via the Postmark API.Given the following:<cfset vHTML = "<html><body><div>This is html</div></body></html>">What would be the cleanest way to arrive at:<cfset vPostmarkHTML = "<html>\n<body>\n<div>This is postmark html</div>\n</body>\n</html>">i.e. surround every nested tag group with "\n" except the outer <html> group
Hello - I tried to update my CF2023 on Windows using the CF Admin tool's Package Manager. I clicked on Download and Install, it looks like it downloaded the latest version to the server, according to the updates log, it downloaded Update 12, but the process didn't stop and restart the server.I did that manually, and my account has persmission to access the services, so that shouldn't be an issue.I didn't notice the update to 12 being applied. I am bringing the Server from 6 to 12. I'm just trying to get the updates and the other packages up to spec.I've looked at different update guides... and there is a part of me that get's a little confused as to what files I need to modify and where to point things. As I mentioned that the admin downloaded the file and put it in one directory, but when I follow the updates instructions, and download the zip file, the instructions want me to point to that unzipped directory.. I think.I'm sorry, but trying to mak
Hi,We have certain values (e.g., '1002-1', '1002-2', ... '1002-12') that end up as -1 when added to a spreadsheet via spreadsheetAddRows. Weirdly, '1002-13' is fine. Maybe spreadsheetAddRows is making bad guesses about whether a value is text vs a number? spreadsheetSetCellValue doesn't seem to have the problem. I reproduced the issue in cffiddle, although it looks like CF 2025 is going to fix the problem. This cffiddle link shows the issue: https://cffiddle.org/app/file?filepath=b1d4c4bd-0989-4481-bcd3-46200ec39e7f/f4b909fd-a448-49ff-87da-91f8eb9f4d16/f29fc59a-821f-4481-9ad3-8f32869c6dd4.cfmHas anyone run into this before, and do you happen to have a workaround? thanks, Mark<cfset testArray = [[ 'Bar, Foo', '1002-1', 'G009']]><cfset theSheetObj = SpreadsheetNew("tempSheet",true)><cfset spreadsheetAddRows(theSheetObj, testArray)><cfoutput>#SpreadsheetGetColumnCount(theS
In building out a new server for ColdFusion 2021, I migrated code running on CF2016 which is returning a strange error. One of my GET REST services which calls another using cfhttp is returning the following: { Message: "JSON parsing failure at character 1:'<' in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://myservername.ddns.net/rest/services/grantPermission">here</a>.</p> <hr> <address>Apache/2.4.52 (Ubuntu) Server at myservername.ddns.net Port 80</address> </body></html>" } What makes this even stranger is the fact that there is no redirect in either service.See the below snippet of error from the exception log:"Error","ajp-nio-127.0.0.1-8020-exec-2","04/21/23","18:57:09","","HTTP 500 Internal Server Error" coldfusion.rest.meth
We had a new linux vm built (RHEL 9) and installed CF2023. We migrated the settings (.car file) from the existing CF2021 and trying to get it up and running. So far we are good with admin console and app folder migrations. But we could get the datasource connection working. The issue we are seeing is when trying to verify an oracle datasource. (using macromedia.jd bc.oracle.OracleDnver) Connection verification failed for datasource:ptcltst java.sqI.SQLException: Timed out trying to establish connectionWe have checked network connectivity between the cf 2023 server and the orace database on port 1521 and it successfull but it fails in the admin console with above error. There is nothing being recd at the target oracle db.When we try the same connection from CF2021 server admin console, we are able to connect and oracle is able to recieve the connection info20-NOV-2024 15:00:22 * (CONNECT_DATA=(SERVICE_NAME=tstdb)(CID=(PROGR
A machine running ColdFusion 2021 Developer Edition has sandbox security enabled and the ColdFusion Lockdown Tool run. The following sandbox File/Dirs permissions have been granted: %cfusion-root%/tmpCache/CFFileServlet/_cf_chart Read,Write,Delete%cfusion-root%/tmpCache/CFFileServlet/_cf_chart/* Read,Write,Delete A chart created using cfchart is causing a NullPointerException to be thrown (stack trace shown below), seemingly in the method call setUpWatermark(). Activating the server or disabling the sandbox causes the cfchart image to be displayed. In the latter case, the Not For Production Use watermark is shown. Does anyone know what changes are required (perhaps additional sandbox permissions?) so the cfchart-generated image is displayed when sandbox security is enabled on a machine running the Developer Edition? Thanks in advance. java.lang.NullPointerException at coldfusion.graph.InteractiveChart.setUpWatermar
The wait is finally over! ColdFusion (2025 release) is now live and generally available! What’s New in ColdFusion 2025? New licensing With the release of ColdFusion (2025 release), Adobe has transitioned from a traditional serial key-based licensing model to a subscription-based licensing mode. About ColdFusion's new licensing method Named User Licensing Feature Restricted Licensing: Online Offline Isolated New spreadsheet and CSV functions Support for streaming spreadsheets, 30+ new methods for cell and sheet properties, and methods to read or write CSV files. For details and a list, see What's New in ColdFusion (2025 release). Language enhancements See Language enhancements in ColdFusion 2025. New functions and tags listGetDuplicates structValueArray cfchartset getCSPNonce interruptThread isThreadInterrupted getPropertyString getPropertyFile setPropertyString Deprecations and removals View Deprecated and removed features in ColdFusion
I'm migrating from cf2021 Standard to cf2023 Standard and have a snag. If I try to utilize an ajax component it is throwing this error. It appears to be utilizing my virtual host as the location for the coldfusion scripts instead of the coldfusion install. I'm using RHEL9 with apache. Ajax component activates this path looking for what to do.http://<URL>/cf2023_scripts/ajax/package/cfajax.js
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.