The official community for ColdFusion.
Recently active
Hi,I'm getting this error : Variable ESAPIENCODER is undefined.my code is this:<cfset esapi = CreateObject("java", "org.owasp.esapi.ESAPI") /> <cfset esapiEncoder = esapi.encoder() />not sure what I missed in the configuration.I do appreciate any help.Thanks in advance,rdm
I am using query of query to run against a product search using verity. I have sort buttons that can sort the results by name or price, asc and desc. When sorting by price, it is not sorting properly. Here is an example:$110.00 $110.00 $115.00 $124.00 $24.00 $36.00 $40.00 And so on. What is going on? Is there any way to fix this? Thanks.
I have just bought a Coldfusion license for a client and I realized I need a testing environment. Since I work remotely from my clients site, I would want to have a testing site that is online. What are the rules on this can I install the license on the testing server that is only accessible to my client and not to the general public?
Hi all,I'm getting an issue with rotate header text in pdfim using this css -webkit-transform: rotate(-90deg); code for rotate header text . it is working fine in cfm page but not working when convert it to pdf using cfdocument tagplease help to solve this thanks in advanceBibin
Hi. I have a currency field on a form page that gets inserted into a currency field in Access. Is there a way to check the validation of this field so it's correct before it gets added to the database? I can't use the Integer validation because that requires whole numbers and won't allow decimal points. I also have the $ pre-filled in. I could remove that if I had to. I just want an error to display letting the user know that they entered the dollar value incorrectly. There have been some issues with some people entering a number like 52.00.00 and it errors out and things get all goofed up in the database. Thanks for your help.Andy
I'm developing an app. in CF10. It's been determined that this app. will be opened through a link that is created in a dot net app.Users need to log in & log out through the dot net app. To see the link, user need to log in then my CF app open up once users click that link so there is no log in/out requirement from my CF app.The link passes a user id through url, I need to use url.userid to create CF session.userid.So I created the session user id in onSessionStart in application.cfc :<cfset session.userid = #Trim(URL.userid)#>The problem is, when I log out and log back in as a different user, my previous session.userid still exists. So I have two different session.userids.In order to avoid this I thought I can do the following in onSessionStart in my application.cfc:<cfset sessionInvalidate() /><cfset session.userid = #Trim(URL.userid)#>Since every time the application start CF has to go through application.cfc first my thought would be that sessionInvalida
Can any one help me out giving a good example to understand when should I scope a query result sets in a session scope.
I installed CF11 on a CF9 machine (Windows 2008 R2 Standard). The website running on CF9 is fine but I can't get to the administrator. It says the file isn't found and does not exist.
Hi,in CF10, I'm trying to print barcodes with ttf barcode fonts inside a PDF document generated with the cfdocument tag. The barcode is generated, but with wrong spacing.The code printing the barcode is quite simple:<span style='font-family:Code-39-25-DMI;font-size:32.0pt;letter-spacing:0px'>*BKUM70709997B*</span>This is what it should look like:cfdocument renders the barcode like this:The spacing between the individual barcode characters is wrong. The "letter-spacing" CSS option doesn't make andy difference. Any idea for a solution?Regards, Richard
Hi,We have a time clock (time tracking) web application that I need to change the user authentication from a traditional username/password to a fingerprint scanner.Has anybody done this before and is willing to share some insights?We are willing to pay somebody too.I've looked around and could not find a whole lot of information. I did try to jump into some Java SDKs for various devices, but my knowledge of Java is not the greatest.Please let me know if you've done this before.Thank you!!!
I have login code that has worked perfectly for years. It still works in development, but has stopped working in production. The only change has been a recent "upgrade" to ColdFusion 11. Here's what's happening.User logs in.SESSION.login is set.User moves around from page to page and finally clicks a link that's formatted like so, "/admin." (The entire site is configured in IIS to use index.cfm as a default document.)SESSION.login (along with a number of other session variables) disappears so the user is take to the login screen even though he/she has already logged in.Now, if I change the link in step three above to be "/admin/index.cfm." then the session variables do not disappear and the user is simply taken to the page like they should be instead of being prompted to login again. I have no idea why the elimination of the directory's default document the link would trigger ColdFusion to purge session variables (especially when it's always worked fine in the past), but it does. What'
Hello.I'm currently running ColdFusion 9.0 on a Windows Server 2008 R2 machine. I need to uninstall ColdFusion altogether so that I may reinstall it. My ColdFusion came with an 'uninstall' directory, which contains the file "Uninstall Adobe ColdFusion 9.exe". However, when I try to run this program, I get a JVM error. I've tried running this program as adminstrator, as well as updating my JVM to the newest version (in the case that it was a version mismatch). This hasn't solved anything.I then turned to the "Programs and Features" section of the control panel, where it shows an "Adobe ColdFusion 9" instance. But, when I try to uninstall here, I get the message "You do not have sufficient access to uninstall Adobe ColdFusion9. Please contact your system administrator." I am logged in as the administrator, and am able to uninstall other programs.Any ideas or information would be greatly appreciated!Thanks,
I have found this page, Adobe ColdFusion 9 * Configuring and using session variables, but I do not know if the way I'm using is correct. In the contact us page, I set the session variable to 1 (for yes the user has turned off java script). In the submission-success.cfm, I tried this:<cfif #session.EmailSuccess# eq 1> <cfif (form.mailto is not "" AND form.mailfrom is not "" AND form.message is not "" AND form.name is not "")> <cfset session.myweb.email.success = "true"> <cfmail to = "#form.mailto#" from = "#form.mailfrom#" subject = "Inquiry from Contact Us Form by #form.name#" server="smtp.myweb.com" port="25" type="html"> <cfoutput> <p>This message was sent by an automatic mailer by #form.name#:</p> <p>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =<p> <p>#form.message#</p> <p><cfif structkeyexists(form, "phone")>Phone: #form.phone#</cfif&g
I recently migrate code from a CF8.01 instance to a freshly installed/updated CF11 instance. As I was going through some testing I ran into an issue where the "setter" methods within a CFC are not setting the values of the locally scoped instance data within the CFC. The exact same code works on CF8. I read a couple articles which made reference to a new attribute of the cfcomponent tag (accessors=true) that will implicitly create getters/setters. I am not using this attribute so I'm not sure if that has anything to do with it. Below is some sample code.test.cfm:<cfscript> myObj = CreateObject('component', 'WorkUpBean').init(); myObj.setTypeID(2);</cfscript><cfdump var = "#myObj.getTypeID()#">WorkUpBean.cfc:<cfcomponent name="WorkUpBean" displayname="WorkUpBean" hint="I am a workup bean"><cfscript> local = StructNew(); local.TYPE_ID = 0;</cfscript><cffunction name="init" access="public" output="false" retu
I have an order form where my buyers can add items to my form. I am using a loop that adds an extra line when they add a new product. I am storing the info in two different mySQL tables. The first is alll of the personal info, the second is the items. THe personal info saves correctly. However, I get the following error when saving the items:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1, 'wer 2345', 1, 1 )' at line 9 The error occurred in E:\webs\clarkwebhosting.com\SSL\esrc\order_add.cfm Line 74 ++ After storing the personal info I grab the order ID to populate the items table<cflock timeout="5"><cfquery name="qGetorderID" datasource="#application.dsn#">select max(orderID) as oid from orders</cfquery></cflock><cfoutput><cfset getoid = #qGetorderID.oid#></cfoutput>++ this is the loop I am using to populate the items table ++<cfloop from="1" to="#form.n
A ColdFusion 8 project was running under Windows server 2003 which was upgraded to Windows server 2008.The project has frames and client variables stored in the registry.After the Windows upgrade, a few users have had client variables disappear. The variables are assigned and displayed in a template in a frame but lost after being submitted to another template in another frame.The users get an error that "element xx in undefined in client".What are possible causes and solutions?
Hello -We have recently migrated about a dozen sites to a new server running Windows Server 2012 R2 and ColdFusion 11. Everything seems to be working correctly except for .cfr pages. IIS throws a generic 404 when attempting to access pages with this extension. We have the Jakarta virtual directory setup correctly and our file mappings also look to be correct. Allowing the app pool to run 32-bit applications changes the error from a 404 to an internal server error 500. Any ideas? Thank you!
Hi. I have a field in my SQL database that is an integer field. When I try to use this field in my form, it only allows whole numbers to be entered. How can I allow numbers with decimal points to be entered? The field name is called Eng_Hrs. Here's what I have on the Form:<tr><td class="edit" align="left">Engineering Hours: <input type="text" name="Eng_Hrs" size="12" validate="integer" <!--- required="no" ---> message="You must enter a valid number in the Engineering Hours field"></td></tr>I realize I could make this a text field and it would allow decimal points, but then how could I validate this field to make sure that only whole numbers or numbers with decimal points are entered?Thanks.Andy
Hi,Currently running Cold Fusion 11 on a 32 bit Windows 2008 server.At times receiving the message on the screen "The service is unavailable"Restarted the ColdFuison 11 Application Server service and the application came back.I looked in the coldfusion-error.log file and found the following message:Caused by: java.lang.OutOfMemoryError: Java heap space] with root causejavax.servlet.ServletException: ROOT CAUSE: coldfusion.runtime.EventHandlerException: Event handler exception. at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:309) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:462) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter
Hello-I upgraded my Windows 7 to Windows 8.01, and after up gradation Coldfusion services are missing from windows. i.e I have to start Coldfusion services Manually by going to C:\ColdFusion10\cfusion\bin and run the cfstart.bat fileAny idea to resolve the issue. ThanksRegardsTayyab Hussain
Hello,Do Universities receive a discount for the purchase of ColdFusion?Thanks!
Hello all.....below is my code snippet which is trying to initialize the connection using Java Socket and was working fine sine few days ago.All of sudden it stopped working and I am not able to understand what happened. can any one help what cause this issue.<!---Set and initialize the socket--->52 : <cfset sock = createObject("java", "java.net.Socket")>53 : <cfset sock.init("localhost", 1500)>54 : <cfset success = sock.isConnected()>Error which I am getting is below.Object instantiation exception.An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: ''. Thanks in advance.
I've been successfully using Salesforce's api till they made the switch to SHA 256 algorithms about 2 weeks ago (HTTPS Security Certificate Change from SHA-1 to SHA-256 hash algorithms). I know that coldfusion 8 is capable of supporting sha 245 hashing, but I've had no luck connecting to salesforce objects. Where exactly do i need to implement the SHA 256 encoding? Here's my CF code that is currrently functioning on a server where the sha 256 hasn't been implemented yet: <cfhttp url="https://cs8.salesforce.com/services/data/v30.0/sobjects/SFOBJECT/describe" method="get" result="apique"> <cfhttpparam type="header" name="Authorization" value="Bearer XXXXXXX"> <cfhttpparam type="header" name="X-PrettyPrint" value="1"> </cfhttp>This works correctly, so I assumed I just need to do the hashing on either the url or the authorization value. l tried both, then one or the other, but still no luck. Any advice is welcom.
I am trying to fix a number of issues our company's platform has with an integration with Adobe Connect. One that has me perplexed is intermittent failures with the login method. We have one client whose credentials fail regularly, but not always. I have the login method call in a try/catch block with the CFHTTP output dumped into an email and sent to me. Here is a sample failure, using the cfhttp tag <cfhttp url="#httpCall#" method="GET" />:However, when I invoke the login method via browser, using the URL attribute that is invoked by the CFHTTP tag (eg. http://[host].adobeconnect.com/api/xml?action=login&login=[username]&password=[password]&account-id=[id]), I get the following callback:<results> <status code="ok"/></results>The request header I get back is as follows:So, there is nothing wrong with the credentials passed in, nor with the response: it does return a MIME type of text/xml, when called directly. This points to
I have a report (CF10) that exports to an excel spreadsheet. Sometimes one of the fields needs extra height to show all the data. When this happens only the field needing the height expands and I need the entire row to grow taller.For all the fields:Under Fields and Properties under the Formatting section I have Stretch with Overflow set to True. Under Print Control I have Print When Detail Overflows set to True and Stretch Type set to Relative to Tallest Object.What am I missing?
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.