The official community for ColdFusion.
Recently active
I'm looking for some simple forum or bulletin board open source software for coldfusion that might be out there. Any suggestions? Just need logged in users to be able to post and get email notifications on anything that is posted.
Hi. I have a press release page and I would like to put a page pagination on it at the bottom, so there aren't so many results on one page. I would like it to have a previous and next link and numbers the user can click on. I found some code online that almost works, but when I click on the different page numbers or next for example, only the result numbers display correctly, but the actual results coming from my database do not update or change. You can see my example here: http://www.ironwoodelectronics.com/press/pagination_pages/pages.cfm I got the code from this web site: https://coldfusioncenter.wordpress.com/2014/09/22/easy-pagination-with-mysql-and-coldfusion/ I still have some formatting to work on with the links. I was going to incorporate it into the Bootstrap pagination numbers at the very bottom. But I just wanted to test out and see how to do a pagination first and see if I could get it to work. The top 5 sections are what would show up when the user firs
Here's my current IF statement that is not working.<cfif (not structKeyExists(cfData, 'data.remove_pdf')) OR (structKeyExists(cfData, 'data.remove_pdf') AND #cfData.data.remove_pdf# neq "true")><a href="https://mysite.com/help/pdfexport/id/#cfData.data.id#"> <img src="/images/pdficon_small.png" alt="PDF of this article"/></a></cfif>I want to say if remove_pdf field is undefined or if it’s defined but the value is not equal to true then show the pdf icon. When I dump the #cfData#, it shows remove_pdf value as undefined or true.
Hello Team,We are facing an intermittent issue while accessing a web service from ColdFusion using cfinvoke.Error 1:Cannot generate stub objects for web service invocation. Name: https://*****/WebService.asmx?wsdl. WSDL: https://****/WebService.asmx?wsdl. java.io.FileNotFoundException: K:\***\stubs\WS_-1969018290_1\localhost\WebService.java (Access is denied) It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors. <br>The error occurred on line 287. Error 2:Unable to load bytecode for class "localhost.ReportsServiceSoapStub" java.io.IOException: Unable to load bytecode for class "localhost.ReportsServiceSoapStub" at org.apache.axis.utils.bytecode.ClassReader.getBytes(ClassReader.java:83) at org.apache.axis.utils.bytecode.ParamReader.<init>(ParamReader.java:55) at col
I have been running a Developer version of CF 2016 on a Windows 10 system for about 4 months with no issues at all. Today I allowed Windows to perform a major update to Windows 10. Upon completion, I could no longer start the Cold Fusion Application Server. This is the message I received: Windows could not start the Cold Fusion 2016 application server on local computer. I rebooted the computer to no avail, reinstalled Cold Fusion to no avail. The install failed at the point that it need to start the server.Any help is greatly appreciated.Thanks
HI ,I have been trying to limit the output of page totals in my pagination code so I can use it at the top of the page. I grabbed the existing code from a tutorial and it works fine. I tried simply settting a page total variable and outputting , but I do realize it's a little ore compicated than that. Any help will be greatly appreciated. <div style="padding-top:10px;"><p> </p></div><p align="center" class="breadcrumb">Top of page setting some vars :<!--- set up pagination ---> <cfset perpage=12> <cfparam name="url.start" default="1"> <cfif not isNumeric(url.start) or url.start lt 1 or url.start gt qry_prod.recordCount or round(url.start) neq url.start> <cfset url.start = 1> </cfif><!--- outputting query reslults table rows of product stuff with maxrows set to perpage var---> <table>
I have a query which has run well on ColdFusion 10.However we've upgraded to CF2016 and yet when I run a query of a query I get no results.<cfquery datasource="travcomus" name="firstquery"> SELECT * FROM tablename</cfquery>Followed by<cfquery dbtype="Query" name="secondquery" > select * from firstquery</cfquery>The second query does not return any results. There is nothing in the logs as well.
I'm working with some hierarchical data and I've ran into a bit of a problem. It's easiest to think about this problem if you can envision what a directory structure would look like in a multi-dimensional array. What I do is run a query and take the results and popultate an array with them. Sometimes I can reference the Array by using this notation: RootArray[1][4][1][1] Basically the first record in the array has a multi dimensional array in the 4th cell. It's totally possible that the next record will be referenced like this: RootArray[1][4][1][4][1][1]. In this case the first record in the array has a multi dimensional array in the 4th cell. The 4th cell also contains a multi-dimensional array. Reading the data out of the array is no big deal... writing the data on the other hand... 😠Anyway... I can dynamically build the string without any problem. Thing is after
Hi, I'm trying to get this pagination code functioning but I keep getting an error on my query. The error says: Microsoft Access Driver] Syntax error (missing operator) in query expression 'titles LIMIT 0' and I'm completely stumped, I pasted my coded on this page if anyone could help or point me in the right direction I would appreciate it. Thanks. <cfparam name="url.page" default="1"> <cfset page_links_shown = 5> <cfset records_per_page = 5> <cfset start_record = url.page * records_per_page - records_per_page> <cfquery name="get_count" datasource="dgr"> SELECT COUNT(nid) AS records FROM news </cfquery> <cfquery name="get_names" datasource="dgr" result="get_data"> SELECT titles FROM news ORDER BY titles LIMIT #start_record#, #records_per_page# </cfquery> <cfset total_pages = ceiling(get_count.records / records_per_page)> <cfoutput> <cfloop query="get_names"> #start_record + currentrow#. #names#
After applying a hotfix I could no longer access the Coldfusion Administrator.On linux (CentOS 6.9) running Coldfusion 11, my CFIDE folder is /opt/coldfusion11/cfusion/wwwroot/CFIDEThen I have a symlink setup to the default site on the server: /var/www/vhosts/default/httpdocs/CFIDE/ this points to the /opt/coldfusion11... folderThis was all working fine till I installed a hotfix, now I can't server CFM pages.I can go into the CFIDE/administrator folder and add "test.html" and view it in the browser fine, but if I change the extension to ".cfm" it fails. I get a 404 error page.Oddly, this loads a custom Coldfusion error page and records the error for me in the database, and all the websites running on the server are fine.My neo-security.xml file doesn't have any records in the allowedAdminIPList: ><var name='allowedAdminIPList'><string></string></var>So that shouldn't be blocking access.It's only CFM files that fail to serve. I've tried a .php, .htm, .html fil
I'm trying to generate a multi page pdf. One per record. I'm using div for precise positioning. The result is good for a single record. But if I loop over multiple records (see below) the page break has an odd behaviour.It chops at the beginning of the each page and prints everything on the last one . If I don't use the page break, everything is printed on the first page. What am I missing ?<cfdocument format="pdf" pagetype="legal" orientation="portrait" fontEmbed="true" unit="cm" localUrl="true" saveAsName="recus_impot" marginLeft="0" margintop="0" marginright="0"
For anyone having issues with moving an old CF9 site to CF2016 that used the ADDT (Adobe Dreamweaver Development Template) files, I have discovered a possible fix to the error: "KT_getRealValue:Unknown method: KT_Insert1."When browsing a page served up from CF2016, the following error displays: "KT_getRealValue:Unknown method: KT_Insert1." for all pages1) Browse to this post & apply all of the changes listed: https://forums.adobe.com/thread/5153852) Now browse to the "includes\common\KT_functions.inc.cfm" file and make the following change (around line 914): <!---Fix for CF9 (& above) when getting error: "KT_getRealValue:Unknown method: KT_Insert1." Just comment out the "cfdefaultcase"---> <!---<cfdefaultcase><cfset Request.KT_die('KT_getRealValue:<br />Unknown method: ' & method & '.')></cfdefaultcase>--->3) Try your pages again and they should now be working.ps: looks like the code won't pos
Hello!I could see a string on the screen by <cfoutput> #cfhttp.FileContent# </cfoutput>.But #cfhttp.FileContent# could not be handled as a string.How can I extract a string from #cfhttp.FileContent#.Thank you in advance!Masaru**********<cfhttp method = "Get" url="http://xxx.xxx.xxx" ><cfoutput> #cfhttp.FileContent#</cfoutput>**********
Are there any plans to upgrade the CF Report Builder? and if not - anyone have any suggestions for an alternative product for producing reports?
Does anyone know if the size of the icons on the toolbar, the text on the toolbar of ColdFusion Builder can be enlarged?Also, the type/font of text in cfm files, only when opened in this editor is terribly faded...as if some antiquated app from the 1990's opened them.I Can barely read it. Need to change this too.If these can't be fixed, I find ColdFusion Builder to be Unusable. I'd need a magnifying glass to see these anything.I certainly won't be buying it after the free trial unless there's a way to change these settings. Actually, I likely won't use it even one time, it looks so awful.I don't have this issue anywhere else, with any other app. Awful, with no ability to customize, or at the very least make it useable.Of course I searched all the settings I could find looking for a way to make readable.Thanks in Advance.(Windows 10, 64bit, NVidaGForce 2GB vidRam...machine is more than capable of rendering properly)
Sorry.. I didn't see a forum for Adobe Tracker, so I'm posting it here.I logged on to Adobe Tracker, and the home screen shows that I have not submitted any issues, nor voted on any issues. I have several of each. Where did they go?V/r,^ _ ^
Hi All,Recently, we have upgraded ColdFusion 2016 version from ColdFusion 8 version. We have been facing issue with the application which was implemented in ModelGlue 2.0 and ColdSpring framework. As per my observation, ModelGlue framework is not loading due to this application is throwing method not found error.Is ColdFusion 2016 version supports ModelGlue 2.0 and ColdSpring framework ?Thanks in advance
I have an application implemented in Coldfusion and AngularJS.I have an external authentication system used for the security of our applications. It's called in the file application.cfc of the application. When the user tries to access to the application, the authentication system is called and if the authentication is correct, the user can access to the application. I put in session some data about the users'roles.This security system is defined with another url.In views I have some forms with drop-down list populating thanks to *AJAX queries*.As there is no refresh of the page (Single page application).If the server session is out, the queries are not correctly executed: I obtain the server status 302, because the authentication tries to be launched and I can see in the colnsole: Failed to load https://myAuthenticationSystem: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested res
Trying to download the latest CF11 update jar, but all the links on this page (and indeed the pages for CF10 and 2016) appear to be dead, returning a response of Not FoundThe requested URL /pub/adobe/coldfusion/11/hotfix_013.jar was not found on this server.Is this a known issue? I haven't been able to locate a mirror for the updates.
Hello, all,Is it possible for ColdFusion to iterate JSON data (stringify()) without parsing it to a JSON object using DeserializeJSON()?V/r,^ _ ^PS: Specifically if I have a JSON string like..[{"name":"whichForm","value":"NDOD"},{"name":"caseNumber","value":"123"},{"name":"airLiner-0[]","value":"AIR"},{"name":"airLiner-0[]","value":"LINER"}]I need to iterate this and get name/value pairs, without using DeserializeJSON().
I am running CF10. New installation on Windows Server 2012R2. Intranet site.In ColdFusion Administrator, the mail server connection verifies as successful.Mail server is smtp.office365.com (have also tried smtp.outlook.office365.com)Port is 587Username and password are blank, however I have tried it with a valid username and password as well. In both cases the connection is successful.Enable SSL is unchecked.Enable TLS is checked.No other combination of SSL and TLS will verify.When I send an email using CFMAIL, the mail goes into the undeliverable folder every time without fail.My internet searches have been futile in this case. With the prevalence of Office365 this can't be a unique scenario can it?
Hi,I created a file called cfoauth_facebook.cfm with the following code.The Facebook developer app with clientid, secret key etc has been setup correctly. But when the following code is executed, i only get a error in the response variable called res.<cflogin><cfoauthtype = "Facebook"clientid = "MyClientId"secretkey = "MySecretKey"result = "res"scope="email"redirecturi = "https://testsite.localtest.me/cf16/cfoauth/cfoauth_facebook.cfm"><cfdump var="#res#"><cftry><cfloginuser name="#res.other.username#" password="#res.access_token#" roles="user"><cfcatch type="any"></cfcatch></cftry></cflogin><cfabort>------------------------------- The response is-----------------structaccess_token n":"EAALbDZBHSZBNUBAIVhtNLCydBu1A3pYIoTpkofVKQHXTrZCM2E2gYLOpOknRM74ZAw5YZCmZBtyNHkZCXnfqV4XWga2zzWvwMKjET9ZAUKt7hXO0PmX0AM8Hz012oKV4aIXf2ZAfqVA2gYWMg3HeDRkImXJLEilF8v48Gr8cq6wGHJZB7I7WuK9RIO","token_type":"bearer",gender undefinedid undefinedlocale
I have seen some posts (Muse forum) stating that embedding coldfusion code in Muse pages is impractical. However, I want to do the opposite.I tried calling the muse from CF using a variety of methods, including cfhttp (presumably preferred), cfmodule, and cfinclude. The following error code seems to be the core issue among these methods:COM.Allaire.ColdFusion.HTTPFailureI have also tried removing some of the standalone page type code from the muse code (e.g. !DOCTYPE, and HTML and BODY tags), but to no effect. I asked this on the Muse forum as well.<div class="container home"> <cfhttp url="#application.proot#/includes/__sstandards/index.html" method="GET" resolveurl="Yes" throwOnError="Yes"> <!---cfmodule template="#request.includes#/__sstandards1/index.cfm"---><!---||#application.proot#||---></div>
Greeting I have set up a successful cfldap query which will return all users in Active Directory. If the user has logged into the network, I want them to give them a view of certain data that someone outside the network cannot access. I tried to send the internal user through an authentication page: <cfldap action="QUERY" name="results" attributes="userPrincipalName" (which is their email address) start="dc=xxxx,dc=xxxx" scope="SUBTREE" filter="(&(objectCategory=user)(userPrincipalName=*))" server="DC1.xxxx" username="master\administrator" password="xxxx"> This queries the AD as the admin because a second login by the user is what I am trying to avoid. <CFIF .........?> <cfset Session.user_id = results.userPrincipalName> <cflocation url="switchboard.cfm" addtoken="No"> <cfelse> <cflocation url="cannotauthenticate.cfm" addtoken="No"> </CFIF> Is there any way to accomplish this? Thanks rinorman
I just turned up a new VM for Windows 2016, installed ColdFusion 2016 Standard Trial, and set IIS as default web server.I created all my DatasourcesI then copied my website called CRM to the inetpub directoryWhen I browse any page on the site, I get "Please Login using Simple authentication" with username & password boxes?What is different with CF2016 that causes this?
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.