Design the future of fashion, win Firefly Pro 👗✨
The official community for ColdFusion.
Recently active
A lot of shared hosting uses very old versions of ColdFusion. Mine at dailyrazor only uses v10 and apparently I have no serious options for upgrade (at least affordably). (July2021) All the CF10 examples and docs now don't work for amazon S3 (cfhttp, cfdirectory, cffile) because S3 now requires the version 4 signage of credentials, and the hash options of the old CF versions don't handle that. At least... that is what I seem to get from everything I'm reading. So how do people still using old versions of coldfusion, interact with S3? Is there some workaround? Would greatly appreciate any guidance. PJ
In the example below, assume FORM.NAME has an embedded single quote. Does someone have a moment to explain why <CFQUERY NAME="A" DATASOURCE="MY_LOCALHOST">INSERT INTO TEST (NAME) VALUES ('#FORM.NAME#')</CFQUERY> works perfectly, but if I put the SQL in a variable it fails. For example, <CFSET lsSql = "INSERT INTO TEST (NAME) VALUES ('#FORM.NAME#')"><CFQUERY NAME="A" DATASOURCE="MY_LOCALHOST">#lsSql#</CFQUERY> fails. Any idea why? Or, alternatively, how could I hcvae constructed lsSql so that it would work? Thanks.ps: And using #PreserveSingleQuotes(lsSql)# didn't help.
I have a simple CF web site where all of the .cfm is in the same directory. I can not use client cookies as the people I am writing this for have cookies turned off in IE, therefore I am using J2EE session variables and CFLOGIN in an application.cfm file (code attached) for authentication. Everything works correctly during login and I can see the encrypted username/password as the cfauthorization session variable.... Session Variables: cfauthorization=Y3BkYWRtaW46cmVwb3J0ODQzOmNwZA== sessionid=c23059df643c42544069 urltoken=CFID=783&CFTOKEN=91556252&jsessionid=c23059df643c42544069 Once I try to browse to another cfm page on the site, I get booted back to the index.cfm login page. After some digging I figure out that the cfauthorization variable was blank after I click on the link, which as I understand it indicates that I am not logged in and the <cfif not IsDefined("cflogin")> <cfinclude template="index.cfm"> <cfabort> code in the application.cfm sends me
Hi, I'm wondering if there is a way to remove typed text added to the scanned PDFs using coldfusion. The goal is to upload one copy of the PDF and display the typed markups to certain users while displaying the original scanned files to others. Any pointers would be greatly appreciated! Thank you,Lesi
Hi, I tried to set null to property and I am usingproperty name="Company" type="string" setter="true" getter="true" default="null"; and for some reason when I serialized it, the data is becoming string instead of null value although I checked the "Enable Null Support".Any idea how to set this up or is this a bug? Thanks.
How can I use CF (or some other app?) to have my page consistanly refresh with the current exhange rate for select foreign currencies. Example: Current: $1.00 = 5.16 Uz
The FileUpload() and <cffile> method throw an error if you upload files with special characters like "öäu".Everything is set to UTF-8. With ColdFusion 11 we did not have this problem.Does anybody has any idea?RegardsAndy
Consider this function which returns whatever its input is::<cffunction name="FredTest" output="yes" access="public" returnType="string"><cfargument name="lsVarIn" type="string" required="true"/><cfreturn lsVarIn /></cffunction>I test the function using: ABC#FredTest("DEF")#GHII expected to see the output as ABCDEFGHI but instead got ABC DEFGHI. I can't figure out why. Everytime I try to use cffunction to return a string CF adds a space in front of the output. Any idea why? Thanks.
Hi, Can anyone provide help for intergrating JasperReports Library with Adobe Coldfusion. I have been trying to get this to work without much success (using CF2016). The cfjasperreport custom tag looked perfect to what I would like but I am getting a lot of missing file and java class path errors which are currently beyond me. I'm not sure if I should keep trying to figure this out as it hasn't been updated in 6 years and was focused on Railo/Lucee. Outside of cfjasperreport custom tag. I've setup simple Java JAR files and can call methods on those but haven't got very far with the Jasper Report library directly. Side Note: I am aware of CFDocument but would prefer a reliable report builder/designer for managing my reports. I have looked into JasperReports server and Jasper Reports IO and have both working with CF but being able to swap out CFReport with a custom tag with Jasper Report library without need an external service is something that I would find really he
Hello,New student to CF and would like to know how to turn a url in a CF forum comment to become a hyperlink?Thank youMonique
I have batch file which run script to convert word to pdf .When directly run batch file conversion done perfectly.When I try to use coldfusion cfexecute to run the batchfile it take continuously execute until browser close no error and no output .My cfm file and bat file location is D drive<cfexecute name="C:\Windows\System32\cmd.exe" timeout="2000">cd /D D:\home\docxtopdfbulk-convert-Word2PDF.bat</cfexecute> My batch file :echo offfor %%X in (*.docx) do cscript.exe //nologo SaveAsPDF.js "%%X"for %%X in (*.doc) do cscript.exe //nologo SaveAsPDF.js "%%X" My SaveAsPDF.jsar obj = new ActiveXObject("Scripting.FileSystemObject");var docPath = WScript.Arguments(0);docPath = obj.GetAbsolutePathName(docPath);var pdfPath = docPath.replace(/\.doc[^.]*$/, ".pdf");var objWord = null;var wdAlignPageNumberCenter = 1;var wdPageNumberStyleLowercaseRoman=46try{objWord = new ActiveXObject("Word.Application");objWord.Visible = false;var
Hi,I just did a new install of CF 2021 on a Windows server. All went well, no error messages.I uploaded a test file and visited it from the local server, I get a 404 error. I checked and CF is running.The same server has php running on it, and a test php file in the same folder processes.Before I go poking around in the CF administrator and making changes, did I miss something obvious? Thank you
This may be a dumb question, but I was not at my current employer when ColdFusion was installed. We have 3 environments (Development, Test and Production). How do I tell if they all use the same license or 3 different ones?
Hello,I've been indexing documents with SOLR, and everyday it seems to crash or hang at some point, and so I find that I have to restart it fairly often. I normaly do that by SSH-ing into the server and the running the following command:/opt/coldfusion2016/cfusion/jetty/cfjetty restartThat normally works fine. This morning, however, when I wend to restart it I got this message instead:ColdFusion Jetty service is already running or the port is not free exiting Even when I tried to stop and start it (as opposed to "restart"), I got the same error:> /opt/coldfusion2016/cfusion/jetty/cfjetty stop Stopping ColdFusion Jetty Server, please wait ColdFusion Jetty Server has been stopped > /opt/coldfusion2016/cfusion/jetty/cfjetty start You are starting Admin Component for ColdFusion. Starting this service also starts Solr search service (if installed). ColdFusion Jetty service is already running or the port is not free exiting Does anyone know what might be the is
Hello, I am attempting to set up SAML integration, and have been receiving an error during ProcessSAMLResponse:coldfusion.saml.SamlResponseHandler$SamlResponseException: The response was received at http://…….. instead of https://……….. at coldfusion.saml.SamlResponseHandler.handleLoginResponse(SamlResponseHandler.java:218) at coldfusion.saml.SamlResponseHandler.handleResponse(SamlResponseHandler.java:127) at coldfusion.saml.SAMLServiceImpl.ProcessSAMLResponse(SAMLServiceImpl.java:502) at coldfusion.runtime.CFPage.ProcessSAMLResponse(CFPage.java:17502)Everything is happening over HTTPS, and the ACS url is definitely https on the IDP side (Okta) and I have tried this on two different ColdFusion servers. Does anyone know what might be causing this? One server uses Apache to proxy over to CF and the other uses nginx. Im pretty sure that neither use https during the proxy. Could this be the reason?
I am getting: "Registration error for service manager : .http://127.0.0.1:0/PDFgServlet/.Reason: BAD REQUEST and it will not allow me to open any page on my sites." Anyone else see this error or know how to fix it?
Hi,I've been tasked with updating Coldfusion 2016 currently at Update-7 to the latest (17), Can i directly go from 7 to 17 or is there any issues if I do so? Where can I find details regarding dependencies and instructions. Since I took over this from someone who left, this is my first attempt at an upgrade 🙂My current version is 2016,0,07,311392. (Linux Redhat Enterprise)(Tomcat version : 8.5.32.0, Java version 1.8.0_192) Please let me know. ThanksSajan
My settings in ColdFusion Administrator 9 appear the same as those I had previously on ColdFusion 7. When a page errored out on CF7, I'd see something like this;Error Occurred While Processing Request Variable XFHDSHSDHJ is undefined.The error occurred in D:\Website Data\mywebsite.com\variabletest.cfm: line 11 : <cfoutput>#xfhdshsdhj#</cfoutput>Now I see: 404 - File or directory not found.I don't have cferror tags in application.cfm (someone thought that was the problem). I know you can view the errors in the application log, but I really liked having the error messsage display directly on the erroring page.Thank you!
Hi Friendly Folks,When I check "Enable TLS connection to mail server" in CF Admin under "Mail", what version of TLS is activated? I have searched around and been unable to find an answer.Thanks!- Shawn
Migating to a new server, and getting an error when uploading a new photo. Any help appreciated. Here is my code:<cffile action="upload" filefield="Photo" destination="#ExpandPath ('../images/temp/')#" nameconflict="MakeUnique"><cfset Photo = File.ServerFile><cfset NEWPHOTONAME = 'VE_' & '#dateformat(now(), 'yyyy_mm_dd_')#' & '#timeformat(now(), 'hh_mm_ss_')#' & '#photo#'><cffile action="rename" source ="#ExpandPath ('../images/temp/#photo#')#" destination="#ExpandPath ('../images/original/#NEWPHOTONAME#')#"><cfset Photo = "#NEWPHOTONAME#"> Server doesn't like the #ExpandPath ('../images/temp/#photo#')# reference. Error message: The value of the attribute source, which is currently C:/HOSTINGSPACES/virginia/virginiaequestrian.com/wwwroot/images/temp/IMG_2123.JPG, is invalid. Checking the folder, the file was uploaded to the correct "temp" folder, and is in fact there. Any help appreciated!
Hi,I always preface with I am not a programmer. 🙂I just moved my server. The new server is Windows 2019 with CF 2021.On the new and old server CF was installed on the E drive.On the old site, I accessed the CF Administrator on the web through https://My.Site.org/CFIDE/administrator/index.cfm. That doesn't work with the new server.I can access it while directly on the server at http://127.0.0.1:8500/CFIDE/administrator/index.cfmThe old server was in place for a long time, I tried searching and cannot find out how I was able to access the old server through my PCs browser while not directly on the server.Suggestions? Thank you!
I'm getting errors using some of the sample code (after adjusting for typos): https://helpx.adobe.com/coldfusion/using/integrate-coldfusion-amazon-sns.html <cfscript>//'archinet_aws_user_1' and 'snsConf' are aliases configured in the CFAdmin panel// define the credential and the configuration aliases in the ColdFusion Adminsns=getCloudService("archinet_aws_user_1","snsConf");// code below.</cfscript> Throws this error:"The httpClient and the httpClientBuilder can't both be configured." Any one else encounter this?
Hello, Just a query on 2 differing ways of calling a function from a component in Coldfusion. I've always called functions in one of 2 ways. Method 1: <cfset myComponent = createObject("component", "pathToMyComponent.componentGet")> <cfset myVariable= myComponent.getKey ( data = someDSN, key = myKey, ........)> Method 2: <cfinvoke component="pathToMyComponent.componentGet" method="getKey " returnvariable="myVariable"> <cfinvokeargument name="data" value="#someDSN#"> <cfinvokeargument name="key" value="#myKey#"> ....... </cfinvoke> My question would be is there any overhead using Method 1 over Method 2. I assume there must be
There appears to be a significant bug in Adobe's ColdFusion Documentation on getting variables with period references.Under the "getting a variable" heading it shows the following sample code: <cfoutput>myVar.a.b is: #Variables["myVar.a.b"]#</cfoutput> However, you can't reference a struct key like that in any version of ACF. Here's a snippet that will throw an error every time you try to execute it (change the server to try different versions).Here's the code: <cfscript> variables.myVar.a.b = "apple"; writeDump( variables[ "myVar.a.b" ] ); </cfscript> Oddly enough, I feel like CFML should work as the documentation describes. It is too bad that it does not.
Hello CFers,I installed the ColdFusion 2016 Update 17 (from Update 16) which came out this week and unfortunately all of my Coldbox sites are getting 500 errors when trying to load them. The line that is causing the error is as follows:`variables.thisRoute.handler = arguments.handler ?: "";`The error that is being generated in the logs is:"Error","ajp-nio-127.0.0.1-8016-exec-12","03/23/21","22:31:22","6A70E1E9B0E6E14EC4590A014F4D5C13","coldfusion.runtime.CFPage._isDefinedElvis(Ljava/lang/String;)Ljava/lang/Object; The specific sequence of files included or processed is: C:\websites\mysite.com\wwwroot\index.cfm, line: 1217 "java.lang.NoSuchMethodError: coldfusion.runtime.CFPage._isDefinedElvis(Ljava/lang/String;)Ljava/lang/Object;at cfRouter2ecfc1597072887$func_CF_ANONYMOUSCLOSURE_ELVIS1155.runFunction(C:\websites\mysite.com\wwwroot\coldbox\system\web\routing\Router.cfc:1217)at coldfusion.runtime.Closure.invoke(Closure.java:109)at coldfusion.runtime.UDFMethod$ArgumentCollectionFil
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.