The official community for ColdFusion.
Recently active
Hi, I have a data source that supplies the scope, name and value of a variable. Obviously dynamic values is what CF is all about. A dynamic variable name can be used (without the evaluate function) by using: #Form["product_" & i]# But how do I use a dynamic scope, without using the evaluate function? I have used: evaluate('#scope#'& '.' & '#variableName#') and this seems to work. Does anyone know how to do this without using evaluate? Thanks in advance. Stephen
I have performance issues when CF 2016 is installed on a Windows Server 2012 virtual machine (Hyper-V).The performance issue is that the page is loading very slow compared to an installation on a simple Windows 10 computer with i5 CPU.Comparison (all done with initial CF2016 settings):- Hyper-V Windows Server 2012 64bit, 16GB RAM, 8 virtual CPUs loading of a page approx. 5000ms- Physical Windows Server 2016 64 bit, 128GB RAM, 24 CPUs (I know its not yet supported, but I made a test) same loading time, approx 5000ms- Physical Windows 10 64 bit, 8GB RAM, i5 CPU loading of a page approx 2500msFrom my point of view it's seems there are kind of virtualization issues.Does anyone know which settings I need to tune to get same/better performance on a virtual server machine as on a simple win10 machine?Are there any recommendation how to setup the virtual env
So ive been TRYING to run CF with cartweaver and anytime i try to set up the testing server in dreamweaver i get this message The server name or address could not be resolved Possible reasons 1. The URL specified for this site's testing server may be incorrect. http://localhost/new clc/ 2.The testing server may be incorrectly configured (For example, Coldfusion may not be running) I cannot continue with the building steps if this doesnt work so i need to know how to fix it asap! thanks
Hi There, I’m trying to make use of SPRY in my Coldfusion application. My first trial was successful. But I’m having some issues when I dig deep. Let me explain the situation: I’m having three pages: Default.html, Page1.html, Content.cfc 1.Content.cfc has the coldfusion 2.Default.html calls Page1.html using Spry.Utils.loadURL 3.Page1.html calls Content.cfc through Spry.Data.XMLDataSet and spry:region for loading data dynamically If I execute Content.cfc directly through browser, I’m getting expected result. But when I call the same through Spry.Utils.loadURL, the spry region is not getting loaded. I’m getting {VARIABLENAME} instead of values. So which means SPRY is not getting executed. Does anyone have a solution to this problem? Many thanks / Manu.
I am making a simple search but when i enter some search word, it generates an error like i enter "tango" as search keyword, it generated error as: column tango not found.. here is the search code i am trying to do.. <cfquery name="Recordset1" datasource="#request.dsn#" username="#request.user#" password="#request.password#"> SELECT properties_details.*, suburbname, profession FROM properties_details JOIN suburbs ON suburbs.suburb_id = properties_details.suburb_id JOIN tenants ON tenants.tenantID = properties_details.tenant_id WHERE properties_details.status = <cfqueryparam cfsqltype="cf_sql_varchar" value="Yes"> <cfloop index="i" list="#url.search_string#" delimiters=" "> <CFIF url.search_string is not ""> AND property_unique_name LIKE '%#i#%' </CFIF> <CFIF url.search_string is not ""> OR property_features LIKE '%#i#%' </CFIF> <CFIF url.search_string is not ""> OR suburbname LIKE '%#i#%' </CFIF>
Our website has been getting alot of direct calls to pages that require parameters that are hidden. The requests are missing the parameters and so the page fails since the parameter is not defined. I was going to just define all undefined parameters but that whould just hide the original problem of the site is being Hacked. I would rather log that the page was requested without parameters and then redirect the call to a "page not found" as if the page did not exist. I'm not sure how to accomplish this. Any Ideas or other solutions?
I have a site at nysportsface.com built with Coldfusion 8 code. A feature we tried implementing is a photo gallery where users could upload their images into their team profiles. The images are not uploading most of the time and nothing shows up. An example of the problem can be seen at Text If anyone knows a programmer or think they can help please let me know.
Hi,this has probably been asked many many times but i cant seem to find a solution.Environment: CF11 CFH6 (but admin says its not installed..)Windows server 2012 R216GB RamIntel Xeon E3 3.1Ghz 64bitIssue: All cache features in CF admin are disabled.I dont like this but my issue is concerning the cache.I have a custom CMS, the content is served via the VFS (ram://) drive, its stored in a DB and if the file does not exist we create it in the VFS and its included into the index.cfm.anyway, when a change is made to this type of content, the changes are not visible. I can restart the application which clears out the VFS, i can add white space to the end of the file and a few other tricks to trick CF into thinking the file has changes so that it will reload it but nothing works.The only way to fix is to log into the CF admin console and click the clear template cache button. Again the Trusted Cache is disabled.This is the first issue.The second is when i attempt to call the admin API to clea
Anyone know how I would resolve this error?
So I'm trying to setup CF 9 on my Mac running OS X Lion and, surprise surprise, the installer won't run. I've run into this wonderful problem on Windows before, but don't remember how I solved it there nor do I know it it would be the same problem. Just to be clear, it's not a failed installation process. The process doesn't even get started, the installer doesn't run at all. I realize maybe they don't support Lion, but even then, something should happen in the installer saying the OS is not supported or something.I checked the Console logs and this is the error that's coming up: macbook com.apple.launchd.peruser.501[94] ([0x0-0x2a6ba69].ColdFusion 9 Installer[96113]): posix_spawn("/Users/tmessier/Downloads/ColdFusion 9 Installer.app/Contents/MacOS/adobe_cf", ...): Permission deniedNo idea what that really means, I always run installations from this same directory and never had a problem. I'm guessing maybe it's trying to copy the installation files from the archive somewhere and execu
I'm having some trouble with Query of Queries in CF5. I have included my select statement in the attached code. What I'm looking to be able to do now is select totals from the original query using a Query of Queries. For example, I need to know my total return visitors as compared to my total new visitors (for the sake of the query, a new visitor is anyone whose FirstVisitDate falls within whatever date range the user has specified [attributes.start to attributes.end] and a return visitor is anyone whose FirstVisitDate does nto fall within the specified range. I have tried something like: <cfquery dbtype="query" name="GetNewHits"> Select Count(Visitor) From QueryVisitors Where FirstVisit Between #attributes.start# and #attributes.end# </cfquery> The above query (when it returns results at all) returns a count of all of the records within the original query (to me it seems like it doesn't recognize the field FirstVisit as a date field). Can anyone offer any suggestions? T
I currently develop with CF6.1 and was getting ready to buy CF8. I am a single developer I run 1 copy locally But I read this below Thank you for your interest in ColdFusion. In the list below, you will find download options for ColdFusion 8 and ColdFusion MX 7, both of which are available as Developer Edition and Trial Edition. The Developer Edition is a free, fully functional version of ColdFusion for the local development of applications that are intended to be deployed on either ColdFusion Standard or ColdFusion Enterprise servers. Access to applications running on a Developer Edition server is limited to two client machines. ColdFusion Trial Edition is fully functional and intended for simulated production and evaluation purposes only. The Trial Edition contains all of the Enterprise Edition features and will timeout after 30 days from the time you install the product. After the timeout period, the Trial Edition will revert to the Developer Edition. Which version do I need?
Hello everyone,I'm having issue with manually install CF 2021 Update 18 with offline mode (java.exe -jar <InstallerReposityUnzippedPath>\bundles\updateinstallers\hotfix-018-330341.jar). The installation finishes with a couple errors in the log about failed to copy hotfix files (solr.war) and then the build number does not update to build 18. It stucks at build 17. I also try manual step with cfusion\bin\cfpm.bat to update packages and it gives the same errors. Is anyone else having the same issue?V/R,Thao
Name: pmtagentDescription: The pmtagent package helps you configure ColdFusion with Performance Monitoring ToolsetI find this error during installing this package. Help me asap!
ConfigurationCF 9.0.0.251028Oracle 11GWindows Server 2008 R2 SP1 hosted remotely. Virtual Server with 100 users. Normal only 5 or 6 on at a timeColdfusion serving from c:\inetpub\wwwroot\application_nameDocuments stored S:\docs (same server virtual drive)34000 docs in 3300 folders total size including not indexed docs is about 45 gigs (PDF, HTM, Txt, all variances of MS Office Docs, RTF)Collection indexing taking days instead of hours and it does not seem to matter if it is verity or solr. Resourse monitor shows solr create the cache and it flat out blazes through doing that, but the only indication I have of it ACTUALLY doing anything after is 50 to 70% cpu usage.I increased the buffer to 80 but I am at a loss on speeding this process up.Any help will be greatly appreciatedThanks,Wil Hale
I have a form that is being generated via a query loop. One of the fields is 'ispercentage'&i (which the i is the index for the loop). So the number afterwards could be between 0 and 9. So obviously the variable name is going to change. How do I place that into my sql insert query? I can't do #form.ispercentage# because that comes back undefined (as is would be 'ispercentage(1-9 or even more as more are added)'. The sql insert query is also looping to add each new item.
Do you kno wany functions atht permit to import contacts from main emails (yahoo.com, hotmail, gmail, ...) if the user accepts to give his user and password . it is used to send invitations to diffrent users. A lot of sites begin to use that, it is completely viral and I found scripts for .net, c++, php, vb, .. but not for ColdFusion. It is comletely actaul to have this fucntion available since concurrent use it and I don't find any way to do it in Coldfusion except by using cfx_http5 but is does not use the API of the emails providers and is not easy to support( if the email change his design, the cfx_http5 function has to be corrected each time). I think it could help a lot of users to have this function available for Cold Fusion. Any idea ? Thanks.
Hi all, I'm trying to create a little checkbox form that when clicked will save the "check" (boolean?) to a variable so when the page reloads it remains checked (and if then unchecked remains unchecked). I'm totally new to Coldfusion so far have only come up the variable declaration? <cfparameter name="IsBoxChecked" default = "no"> I know the html for checkboxes looks like whats below, but how can I add the CF tags to make it do what I want? <input type="checkbox" name="IsBoxChecked" value="1"> MyValue
While working on an autosuggest custom tag, I am allowing the user to pass in either an array or a query. If a query, I need to loop through each column and add it to the possible suggestions. I cannot however get the dynamic column name to read without CF7.02 throwing an error. I have attached the snippet. The error received is: Invalid CFML construct found on line 98 at column 77. ColdFusion was looking at the following text: [ Any help would be much appreciated.
Hi All, Does anyone know how to hide the URL in the address bar. I saw some site looks like this: http://www.site.com/contact When I try to figure out which page this redirect to, I couldn't find out. Here is a good example: http://www.opensourcecu.com/ Contact Page: http://www.opensourcecu.com/contact About Page: http://www.opensourcecu.com/pages/about Thanks for any help!
I have this code:<h1><cfoutput>#self#</cfoutput></h1><cfquery datasource="Intranet" name="month_data"> select * from CSEReduxResponses where status=1 and execoffice_status=0 AND MONTH([approveddate]) = MONTH(GETDATE()) </cfquery><cfquery datasource ="Intranet" name="GetDeptSubmissions">SELECT * FROM CSEReduxResponses</cfquery><cfquery dbtype="query" name="GetApproved">SELECT * FROM GetDeptSubmissions WHERE status = 1 AND execoffice_status = 1</cfquery><cfquery dbtype="query" name="GetDenied">SELECT * FROM GetDeptSubmissions WHERE status = 1 AND execoffice_status = 2</cfquery><cfif month_data.RecordCount gt 0><cfoutput> <h2>Comments / Ratings Administration</h2> <div>
I have a couple ColdFusion applications which call Java classes which load files (images, etc) found in the Java CLASSPATH. This worked fine with ColdFusion 7.0 and 7.0.1 but fails unable to find the files with ColdFusion MX 7.0.2 Enterprise. I have tried these applications with the same result on both Windows and Unix installations. Back out to version 7.0.1 and the applications work again. The problem only happens on the Enterprise edition. Upgrading the Developer edition on my PC to 7.0.2 did not cause my applications to break. However, every server running Enterprise edition upgraded to 7.0.2 is no longer able to use Java classes that call Class.class.getResourceAsStream(path); Has anyone else encountered this or can suggest a good work around that would allow resource files to be laoded without hard coding paths since the application may run on multiple platforms or be moved around. The following code segments output the contents of a text file. The text file is located in a di
I finally go approval to do my upgrade not as a stand alone, side-by-side upgrade which was requiring me to do a major hack that wasn't working due to our funky coding and security twists we have implemented in the code.Unfortunately, when I do the upgrade/installation it installs, but I can't move on to the migration/configuration stage of the installation. I can't see anything in the error logs. Sometimes I'll get the 500.19 error message when I try to connect to the administrator myself, other times nothing. When I get the HTTP Error 500.19 Internal Server Error it refers to the ApplicationHost.config or web.config file that contains malformed xml element. When I look at the old web.config file it contains about 9 handlers that are using either jrun_iis6_wildcard.dll or jrun_iis6.dll. I do have the IIS6 to IIS7 configuration selected in the new installation of CF11, but I can't move forward. I want to just copy these 2 files from my CF9 installati
I'm dynamically generating a list of items (say, vegetables), each with a numeric ID, and each with a checkbox. The user selects the vegetables he wants, and clicks the submit button. From the selected vegetable ID's, I want to do an insert into another table (say, customer orders.) I can't find any clear examples of how to do this. The form can submit to another .cfm page or self-submit, doesn't matter to me. Also, Flash forms are not allowed on my site. Help, please! Thanks.
Hi,As I mentioned in a previous post I am new to CF.What I really want information on now is ColdFusion Frameworks. I just can't find good training on them.I can't find any tutorials or good documentation on them. Or even a book/vid tutorials dedicated to them. I browse the sites but the documentation is not very clear for a beginner. Why are they not documented better? What is the point in producing them if newbies can't learn them quickly because the documentation is is in reference style if at all. It is not very easy to learn that way for me.I have a few questions....Do you advise getting into and using a framework?Can you help me with any tips on learning a framework?What framework is regarded as the best for newbies?Why are there so many frameworks for CF?Ofc I have read up on MVC and the framework model, but I am looking as to how to do this in CF not in general.Thanks!
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.