Questions
Als letztes aktiv
I have a cfgrid bound to another cfgrid that always returns null for the value.Worked in CF8Binding to a cfinput displays proper valueCFC is no problem hard coded value in place of bind workswriting to log from cfc verifies null value returned<!--- select office ---> <input type="checkbox" id="pckOffice1" onclick="setOffice();" checked>Bangor <input type="checkbox" id="pckOffice3" onclick="setOffice();" checked>Lamoine <input type="checkbox" id="pckOffice5" onclick="setOffice();" checked>Lincoln <input type="checkbox" id="pckOffice7" onclick="setOffice();" checked>Machias <br/> <input type="hidden" id="OfficeFilter" name="OfficeFilter" value="'1','3','5','7','2','9'"><!--- cycle grid ---> <cfgrid name="gdCycle" format="html" colheaderbold="true" striperows="no" striperowcolor="##ccffcc" selectcolor="#selectcolor#" selectmode="row" selectonload="fa
I am using ColdFusion 11 and have just started using the EncodeForHTML function instead of HTMLEditFormat whenever I need to display text that the user has entered, usually via a textarea. We need to save the formatting so that information the user has entered remains understandable. Users have a choice of whether to display the info to the screen or export to a pdf. We are using EncodeForHTML to make the displayed info safer and we are using <pre> to retain the required formatting.My problem is that when I need to export the data to a pdf, then EncodeForHTML acts differently than HTMLEditFormat does. For some reason, I get extra lines inserted.Here's some sample code. Just save to a cfm and run:-------------------------------------------------------<cfsavecontent variable="f">This is my sample data.Value 1 20%Value 2 30%Value 3 50%Here's my summary of this data.</cfsavecontent><cfhtmltopdf saveasname="MyTest.pdf">
Hi everyone. I am testing some simple code on this page: Untitled Document to do an online order with Stripe.com, but I keep getting this error message when I click Submit:405 - HTTP verb used to access this page is not allowed.The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.Does anyone know what to do to get this to work? Do I need to update something in the CF11 administrator pages or do I need to update something in our IIS server?Andy
Here's my code:<cfif StructKeyExists(cfData.data, "inherited_roles") || IsArray(cfData.data.reader_roles)> <cfset arrayRoles = "reader_roles" > <cfif ArrayIsEmpty(cfData.data.inherited_roles)> <cfset arrayRoles = "inherited_roles" > </cfif> <cfloop index="p" from="1" to="#arrayLen(cfData.data.arrayRoles)#"> <!---some code here---> </cfloop></cfif>And here's the error I kept getting.Element ARRAYROLES is undefined in a CFML structure referenced as part of an expression.The error occurred on line 07 when I have the #arrayLen(cfData.data.arrayRoles)#.Any suggestion is much appreciated
Hi All,For the past few weeks, the ColdFusion Server will randomly just hang... where a page request will just keep spinning... restarting the server has cleared it up... but we're having to do that more frequently.Can you give me some insights into this problem or how to debug it on CF11 Server?Version: ColdFusion 11 Update 7IIS: Windows Server 2012R2 8.5.9600.16384Database: SQL SERVER 2008 R2I suspect the problem may be related to the number of workers/processes running at a given time? How do I increase this from the default installation?Thanks,John
We can't seem to get this running right, and need someone with experience.We have 100 IIS websites, 65 of them are coldfusion. So we "tuned" AJP for that number of connection pools. Under the "ALL" configuration, we have an allotment of 9000 and a reuse size of 138. The server.xml matches thread count and timeout.Originally this was at the default of 250, and sites began to hang and never load. Took us forever to figure out this was the reason...So now we have the sites running, but they use extreme amounts of memory. The worker processes (w3wp.exe) appear to allocate large amounts of ram as soon as they start, and having jakarta in the ISAPI FIlters list reliably causes this. Remove jakarta, and site returns to normal fair memory usage. So naturally we removed jakarta from all PHP sites, and only have it on the CF11 sites. We also began grouping coldfusion sites based on priority into application pools, to try and reduce ram usage.Do we need to tune jakarta for every single site? Is t
I have a Coldfusion 10 Websockets channel that streams data every 2 seconds. This has worked perfectly for some time, however I have now approximately doubled the amount of data being sent and I have problems when it comes to Chrome and Internet Explorer – they both come up with the following errors -Websocket connecttion to 'ws://mywebsite.com' failed: Invalid frame headerUncaught TypeError: Cannot set property 'readyState' of undefinedEverything works perfectly on Firefox.I am assuming the errors relate to the size of the packets and that they are not correctly specified in the header, since if I reduce the amount of data slightly everything works fine. I have increased the “Max Data Size” for websockets in Coldfusion Administrator but this does not fix the problem.It does mention here: http://www.adobe.com/devnet/coldfusion/articles/using-websocket.html that there is a default packet size of 8192 bytes (8KB) and if messages are larger they need to be tuned accordingly - but it
this sentence below is working fine on Coldfusion 11 and previous version, but it throws exceptions when the application is deployed on Coldfusion 2016Could anyone give some advice on this issue?<cfset SubjectText = Replace(#SubjectText#,"%Request.RequestID%",#Request.RequestID#,"All")>the value of #Request.RequestID# is a number
As I test more with CF2016 Enterprise 64-bit, I'm finding weird and inconsistent performance issues. At the moment, I have two queries against my Oracle database that vary from 2ms to 3000+ms from one run to the next. Both queries are against relatively small tables that have all necessary indices, and both use bind variables. In production (CF9 32-bit), I'm not seeing anything like that. My Oracle analytics show no problems with the queries, no recommendations about tuning.I can't help but assume that this release is too fresh and will require significant updates to get it to be production-ready. It feels like nobody else is trying to use it yet, so I can't find any other posts about this. Not to mention that the stupid decision to stop numbering and adopt this new clunky name makes it even harder to get decent Google results.Has anybody else begun testing their applications in this new version and found weird issues like this? I'm wondering i
Every individual that works with CF tells me how easy AJAX is to work with. But, I beg to differ. I am trying to get a simple product page to calculate products * quantity. I spent a good 12 hours scouring over the internet and never found the solution. I have a page called shoppingCartForm.cfm that calls shoppingCartAction.cfm into play. On the shoppingCartAction.cfm is where I am trying to calculate the sub total. I can get the individual variables to output correctly, yet they will not cooperate when I try to coax them into multiply them. Maybe I should use a little positive affirmation and call them rabbits. As usual, any help would be appreciated, I don't have much hair left.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>Your Order</title></head><body><cfif isDefined("Form.submit")> <cfparam name="Form.itemID" default=""> <cfoutput>&
Do I need to take preperations before using this tag?I see: Error Occurred While Processing RequestA tag starting with 'CF' has been detected. This tag is not supported by this version of ColdFusion. Please verify your typo and try again.Unknown tag: cfspreadsheet.Dreamweaver CC 2015
I have a ColdFusion 10, front end on a Windows 2008 R2 (VMWare) machine interfacing with an Oracle 11g database. I recently had an issue (https://forums.adobe.com/thread/2121425http://) that was solved by changing this.datasource to application.datasource. Shortly after, I was tracking down some other issues, specifically one where a CFMAIL tag was not loading output of a query. I toyed with it, even trying to brute force the TO address in there, and just caused other problems. Since I am working with a copy on my Test server, I decided to start over. I copied the two files that I had been working on from the copy on my Development machine that has not been touched since it was promoted to Test, expecting to see the CFMAIL error again. Instead I see:When I go to tline 76 in the module listed, that line is completely blank. I am baffled as to what needs to be done to get back to the original error.
Hi,I got randomly an error on a cffile copy :java.nio.file.FileSystemException: D:\netprint\Images\C01332\VISUELHD\SG_OPTEFR_4_Concert.jpg -> D:\netprint\DOC_demandes\ReqSG_00331742\BIB\SG_OPTEFR_4_Concert.jpg: The process cannot access the file because it is being used by another process.However my code is executing copy only if target file doesn't exist :<cfif not fileexists("#DEMrepert#/BIB/#NomImageHD#")> <cffile action="copy" source="#BIBrepertHD##NomImageHD#" destination="#DEMrepert#/BIB"></cfif>I am running Coldfusion 11 on windows 2012 R2 server with Java 8 (jdk1.8.0_66).As destination file doesn't exist, it looks like issue is on source file being locked by another process. Is there a way to check inside coldfusion if source file is locked by another process ? Regards,Pierre.
I have enabled click to play flash in Firefox and it only works on a few sites. Yahoo and many other sites just load up their flash videos with no problem. What is the fix for this?
Hi, I have a function that stopped working when I upgraded to 2016, I can't for the life of me see why. What happens is the second time the query runs it overwrites the first one and stops. It does not run the full first query. What am I missing?! <cffunction name="doThis" access="public" returntype="string"> <cfargument name="parent" type="numeric" default="0"> <cfscript> var LOCAL = {}; </cfscript> <cfquery name="LOCAL.q"> SELECT parentID, title FROM thetable WHERE parentID = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.parent#"> ORDER BY priority; </cfquer
down votefavoriteI am using ColdFusion as my backend for an AngularJS application. I need my Application.cfc to run in order for my authentication module to run. However, because I do not have any .cfm files, it does not run on request. The files in the root of my folder are all of the application folders (controllers/, styles/, views/, etc.). Also at the root is my index.html which kicks off the angular application as well as Application.cfc. I want Application.cfc to run as soon as the application is accessed. Is there any way to do this, or will I need to make an API call to Application.cfc from a controller/service to kick it off?
We are upgrading Coldfusion from 9 to 11. This worked in 9 just fine, but running into errors in 11. My cfgrid declaration is as follows:<cfgrid name="cfPagingGridName" autowidth="yes" rowHeaders="no" format="html" height="165" width="675" style="border:none;" selectcolor="##C6D6EB" striperowcolor="##EEF3F9" striperows="yes" selectOnLoad="false" bgcolor="##FFFFFF" pageSize="1000" bind="cfc:model.nomination.nominationAddRecipientGateway.getNomineeGrid({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},#form.nominationid#)">On selection from this grid, we can add values from this grid to another grid when the add button is selected. The add button runs some JavaScript. This JavaScript is erroring with the getStore() method, but the real problem seems to be right before this. The part of the JavaScript that is erroring is as follows:
Can a customer buy ColdFusion 2016 and get a download/backward licensing to ColdFusion 11? If yes, what is the process involved.Please advise.Brian Chau
I am using Coldfusion 11 and installed updates up to 4. Now update 5, 6 and 7 are available. Do i need to install all one by one or just need to install 7 only? If i install update 7, do that includes all previous updates (5 and 6)?Paresh
(I still say the new JIVE interface is ugly)Hello, all,One of my co-workers has been tasked to document a legacy CF site that was built about ten years ago.Everything was going well, until he noticed that in the root of the site is a "settings.xml" file.He's not finding any references to it in any of the CFML code. Is there a valid reason to have settings.xml in the site root? He's not sure what to write for the documentation; and in all the years I've been working with CF, I've never seen that, before.V/r,^_^
I am getting an error on index.cfm on line 424. The problem is that I include several files depending on how the page processes. Index.cfm is not 424 lines long. Is there a way to find out exactly what sub page is tripping the error? I've been over and over this but can't seem to find it.
For some reason when I load an existing FORM and that Form as a TEXTAREA field in it, everything AFTER the TEXTAREA is removed form the editor and placed on the outside?I know it's an issue with the editor - but I think it might be because of how I have my custom tag built?Take a look at my development example: http://home.sgaraglino.comMy configuration: Windows Server 2003 running ColdFusion 8/root directory containsindex.cfmckeditor.cfm/ckeditor//ckfinder//userfiles/That’s it…. Nothing more, nothing less.I have fresh installs of both CKF & CKEI am not getting any JS errors, Browser Errors or IIS errors?This is my ONLY issue stopping me form going live: I have CKEditor/CKFinder working awesome everywhere else on my website.I have been beating my head against the wall for two days now and I still can not figure out what is going on?As you can see above, anything past the TEXTAREA field is now dropped outside of the editor on load?Undesirable Results? In this case that is the Human
Hi everyone. I just have a few questions about setting up an ecommerce site. What are the differences between CFWebstore, Cartweaver, and stripe.com? Does CFWebstore and Cartweaver just set up a shopping cart on your site? Or do they handle payments with credit cards too? Or is that where stripe.com comes into play? You set up your pages with a shopping cart with CFWebstore or Cartweaver and then to actually process the credit card, you would have to go through stripe.com? I have this page: https://www.ironwoodelectronics.com/elastomer.cfm?CFID=1075132&CFTOKEN=f32b97bb35145429-0659E32C-9C8E-9968-3D20B2208EDF00CB If you click on one of the radio buttons and type in something like 10 for the Xmm and 10 for the Ymm boxes and click Update, a table is displayed with what the part costs. Part info. is not being stored in any database since there are lots of combinations of different sizes to use for the dimensions. There is a formula created that figures out the price depending on
Hi,I don't use CF too often and forget what little I did know. I've been asked to insert some javascript into the header section of a CF page per the following:<cfif FindNoCase("store.cfm?do=checkout&area=Purchase",cgi.http_referer)> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 1070946261; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "BslPCPb--mQQ1a_V_gM"; var google_remarketing_only = false; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1070946261/?label=BslPCPb--mQQ1a_V_gM&guid=ON&script=0"/> </div> </noscript> </cfif>When I do, the
I have a multi-instance and using multiple user administration. One of my users notified me he was checking an exception when viewing "Settings Summary" in CFIDE. I was able to replicate the issue by creating a new user and assigning all available permissions. Going out on a limb, I'm guessing the the function $funcCHECKROOTADMINUSER is checking if the user is the "admin" user, which they are not.Can someone confirm if this is actually what is happening?"Error","ajp-bio-8012-exec-1","03/03/15","09:42:21","cfadmin","The current user is not authorized to invoke this method. The specific sequence of files included or processed is: D:\ColdFusion11\BIA\wwwroot\CFIDE\administrator\reports\index.cfm, line: 105 "coldfusion.runtime.CustomException: The current user is not authorized to invoke this method. at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986) at cfaccessmanager2ecfc2038841021$funcCHECK
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.