The official community for ColdFusion.
Recently active
<cfif not directoryExists(arguments.dirPath)> <cfset directoryCreate(arguments.dirPath)> </cfif>Even after checking that the directory doesn't exist, directoryCreate() fails with:Message: The specified directory {directoryPath} could not be created. Detail: The most likely cause of this error is that {directoryPath} already exists on your file system.Ultimately, I want to delete it to quickly clear all files, then recreate it.I can instead loop through the directory to delete the files, but removing the directory altogether does the job when it's not being weird about whether or not it exists.
Hello, I am would like to use cffile to delete all files in a directory every night to clean up pdf files that were created during the day. Is there a way to delete all files with naming each one? What would go in the file path? <cffile action = "delete" file = "full_path_name"> Gary
Hello,I have detected a weird (to me) behaviour of the IsDefined function. I have something like:<cfif IsDefined("url.vose")><cfset somevariable="some value"></cfif><cfif IsDefined("url.3d")><cfset somevariable="some value"></cfif>* if url.3d is defined, good. All works as expected.* if url.3d is not defined, CF throws a "Parameter 1 of function IsDefined, which is now url.3d, must be a syntactically valid variable name" error.* if I use structKeyExists(url,"3d") instead of IsDefined("url,3d"), works as expected.I tried with different combinations of variable names and scopes (pe, url.5d or form.3d) and the problem seems to be the number at the beginning of the variable name.Is this the expected behaviour? I found very strange that it works if the variable exists and only throws an error if not. Could this be considered a bug and should be reported?TIA,
Cfwindow not displaying scrollbars on IE. Inspite of using the overflow attribute , still the scroll bar wont show up. Thanks in advance
In order to enable WebSockets, the following example is given: application.cfc this.name = "WebSocketDemo"; this.wschannels = [{name="stocks"},{name="chat"}]; When application variables are dumped, this.name looks like it gets translated into application.applicationname. However, wschannels is nowhere to be found. How would one be able to enable websockets via a call in application.cfm or any cfm page? I tried this but neither worked: <cfset application.wschannels = [{name="stocks"},{name="chat"}]><cfset application.this.wschannels = [{name="stocks"},{name="chat"}]>
I'm in a little bit of a unique situation with this. This is a rebuild before I install CommonSpot, and put this server into productionI've installed ColdFusion 2016 on the F:\drive of my server and the install it self went as I would've expected. However when the migration wizard comes up it will not accept the password that I had entered during the installation process. I've used the passwordreset.bat file, it didn't work. I've directly edited password.properties, that didn't work either. Here's the issue, this is a hardened server with no access to either localhost or local loopback or any browser access. So it has to be done externally.
I'm merging some PDFs with <cfpdf action="merge" source="#arrayToList(arguments.PDFsToMerge)#" destination="#finalPDFDocument#" overwrite="yes" > But I'm getting the error "The pages attribute is not specified for the MERGE action in the cfpdf tag." I have used this tag/action before without requiring the "pages" attribute, since, per the documentation, it's optional for the "merge" action. Why is it requiring this?
The Adobe ColdFusion India Summit is back! Witness the biggest confluence of developers, strategists, and thought leaders at the Adobe ColdFusion India Summit. Learn the latest techniques to build rapid web applications. Bring your developer chops to the table and brainstorm with the people who're behind ColdFusion. When: December 07, 2019 8:00 am - 5:00 pm Where: Adobe India, Bangalore (Map). How to register? Easy. Head on to the registration link and fill the details. Registration is complimentary! See you soon!
#
We are having an issue when executing either queries or stored procedures with CF2018 running on Windows 2016/2019. The same code running on Windows 2012 runs fine, however when executed on Windows 2016/2019 the execution times are 5-10x (at least) as long. The database server is MS SQL Server 2012. Enabling logging on the datasource indicates the slowdown occurs at PreparedStatement[n].execute() . On Windows 2012 it takes 15ms vs 265ms on Windows 2016/2019. We have tested this using CF2018 update 3-5 and recevied the same results, looping the same query up to 200 times. Could this possibly be related to nvarchar? See attached screenshot. I am sure the query could be optimized but we can not determine a valid reason of the slow performance due to the Window OS.
The problem is when I try to editing one of my values all the drop-down lists return to the first one in the list and not the one they selected originally.Thats why the user have to chose original value in drop-down lists everytime When they editing. .this is my code :<cfset AboneID=""><cfset Aciklama=""><cfset musteriTipi=""><cfif IsDefined("url.id") and IsNumeric(url.id)><cfquery name="u" datasource="deneme">SELECT * from MusteriHareketleriwhere MusteriId=<cfqueryparam cfsqltype="cf_sql_integer" value="#url.id#"></cfquery><cfset AboneID = u.AboneID><cfelseif IsDefined("url.did") and IsNumeric(url.did)><cfquery datasource="deneme">DELETE MusteriHareketleri WHERE MusteriId=<cfqueryparam cfsqltype="cf_sql_integer" value="#url.did#"></cfquery></cfif><form name="add_deneme" method="post"><table border="3"><tr><td><strong>Abone ID: </strong></td>&l
If I log in as "root" InDesign works as it used to be, but in the normal mode it doesn't. I have already changed permissions to "read & write" and also changed InDesign in Preferences and caches to "InDesign.old" but it didn't help.
Hi team,In CF2016 please help me know how to begin with SSO as I am new to this.
Hello,We have CF2016 Enterprise Edition on a server. We use cfcontent tag to allow users to download a .CSV file they have exported from a report within our CF application. We have this problem on this server only and it is our only CF2016 server. We cannot install another version on this server. The exported .CSV files may be from 2mb to 20mb in size. If file size is under 4mb it downloads fine. If file size is larger than that (approximately) the file will stop downloading around 4,700kb. However, if I just put a direct link for a large .csv file into the home directory and call it directly via HTTP the file downloads with no problem. So it does not appear to be a firewall problem. But, the same file will ALWAYS stall out when downloaded through our CF application. Also, if I create a simple page with a link to a CF template with a CFCONTENT tag in it then the small file will download but the larger file will stall out. Depending
Hi, new sharepoint user here. How do I migrate the forms created in coldfusion programming language to SharePoint? What do I need to be able to do this? Also, set up the datasource to use MS Access. Any feedback would be appreciated! Thanks
Hello everyone, We are getting an error As shown below on our Dev server Error Occurred While Processing Request. Please try again.Error Executing Database Query. [Macromedia][Oracle JDBC Driver]A username and password are required if the connection option 'authenticationMethod' is specified with a value of 'userIDPassword'.The error occurred on line 28. Whereas on our Prod server we are getting an error message as shown below 500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed. We would like the error message to be the same as that displayed on Dev server on our Prod server also. I have looked at the authentication.cfm file but could not see anything which can help me.We think this is due to an incorrect setting in the Cold Fusion Administrator , Can someone help us with this issue ?
Hello, I am attempting to backup and restore my datastore by copying the datastore/dump.rdb file for one server to another. Once copied I am not seeing any data from the source location. Are there other files / data that need to be copied? My goal is to backup and restore my API's from one server to another. I am assuming that copying the datastore will move my API's from server to server? Any suggestions or pointing me to some documentaion is appreciated. HisEdNess
We have installed ColdFusion enterprise 2018 new installation and we are getting this error Calling LoadLibraryEx on ISAPI filter "X:\ColdFusion2018\config\wsconfig\1\isapi_redirect.dll" failed
I have an issue with a CFIF statement that is driving me nuts. I'm sure it will end up being something stupid, but for now I need some help. Here is the code:<cfoutput query="get_procedures"><tr><td>#procedureid#</td><td><a href='new-procedure-page-1/?id=#procedureid#'>#procedurename#</a></td><td align="center">#proceduretypename#</td><td align="center">#name#</td><td align="center"></td><td align="center">#statusname#</td><td><img alt="" src="/#application.environment#/assets/Image/copy_24px.png" style="cursor:pointer;" title="Copy Procedure" /><img alt="" src="/#application.environment#/assets/Image/renew_24px.png" style="cursor:pointer;" title="Renew Procedure" /><cfif #statusname# neq "Archived">#statusname#<a href="archive-procedure/?id=#procedureid#"><img alt="" src="/#application.environment#/assets/Image/archive_24px.png" style="cursor:poin
Hi,I am doing the Update 12 on my Coldfusion 2016 Enterprise Edition using this command below:sudo /usr/java/latest/jre/bin/java -jar hotfix-012-315717.jar and I am having Fatal Error below:Moving files failed: Status: FATAL ERROR Additional Notes: FATAL ERROR - Could not move the file /opt/coldfusion2016/cfusion/jetty/lib to the backup location /opt/coldfusion2016/cfusion/hf-updates/hf-2016-00012-315717/backup/jetty/lib I don't have any idea what's wrong. Did anybody have this experience? Should I try to run the update 12 again? Thank you. OS: Centos 7 (3.10.0-1062.1.2.el7.x86_64)Java version: 1.8.0_221
The cURL (cfhttp) command in Coldfusion-10 worked, but after migrating the same code to Coldfusion-2018 is not working. I use the same Token value in CF-10 and CF-2018!!! I have the below code working on CF10:<cfset structContainer = { "container": { "number": "ABCD123456", "shipping_line": "ABCD", "sandbox_url": "http://api.myhost.com/" } }/> <cfset structJson = serializeJSON(structContainer) />cfhttp url="https://customerurl/api/v1/" method="post" result="structResult" username="myaccount@myhost.com" password="12345"> <cfhttpparam type="header" name="Content-Type" value="application/json"> <cfhttpparam type="header" name="Authorization" value="Token token=x1x2x3x4x5x6"> <cfhttpparam type="header" name="X-ApiVersion" value="1.0"> <cfhttpparam type="header" name="Accept" value="*/*"> <cfhttpparam type="body" encoded="false" value="#trim(structJson)#"> </cf
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfclientsettings.html CFCLIENTSETTINGS produces an error in CF 2018 when HTML/CFML is added to the page.This error does not appear in CF2016."If you view the source of the page within your browser, you'll notice that the double quotations on line #17 are not properly escaped."See attached:
Is there a way to configure CF2018 to use smtp.gmail.com and port 587 and TLS checkbox set when 2-step authentication is applied to the gmail account being used? I'm not seeing any posts on this topic. I'm using Commandbox environment for my local dev environment and configured it to load Adobe CF2018. This gives me the CF Admin Mail page where I enter my mail server as smtp.gmail.com and port 587 and TLS. But the connection fails. In the Mail log it indicates it's not authenticating due to 2-step auth in use for the account. Do I have to disable 2-step or does Adobe provide a way to handle it?
Hello, all, Running CF2016 update 12 on a Windows server. We recently updated the Java (8u221 to 8u231) and started getting errors. Rolled it back to 8u221, but the errors are still happening. SEVERE: Session attribute event listener threw exception java.lang.StackOverflowError Exception in thread "Thread-xx" java.lang.NoClassDefFoundError: java/util/concurrent/ScheduledFuture Exception in thread "Thread-xx" java.lang.NoClassDefFoundError: java/nio/channels/FileLock WARNING: org.xerial's sqlite-jdbc is not loaded. Please advise. V/r, ^ _ ^
Our application has been successfullying using cfhtmltopdf for months now. Following a patch installation last week, we're seeing an error but there is precious little detail to go on. Are you seeing similar? ColdFusion Server Enterprise 2018Error occurred while generating PDF. Reason: GENERAL ERROR <cfhtmltopdfsource = "#rootFilePath#\inventories\#variables.DecryptedinventoryID#\#variables.SourceFileName#"destination = "#rootFilePath#\inventories\#variables.DecryptedinventoryID#\#variables.TargetFileName#"saveAsName = "#variables.TargetFileName#">#ReadHTML#</cfhtmltopdf>
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.