『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
The official community for ColdFusion.
新着順
Hello, all,Has anyone else had any issues using URL parameters with a CFINCLUDE?I've got something like:<cfinclude template="#app_base#common/thisfile.cfm?its=1" />app_base is a variable that sets the root depending upon what environment I'm in. In DEV, it's "/public/". In staging, it's "/preview/public/". In production, it's "/".I've got one page that is trying to use CFINCLUDE three times, so the its value changes with each include.But I'm getting error messages stating that "ColdFusion cannot find /preview/public/common/thisfile.cfm?its=1". It's there, I can see it in the FTP.Thoughts?V/r,^ _ ^
Hi All,We are migrating ColdFusion servers from 2008 to 2012 and using ColdFusion11 in the new server.When we are trying to access an application, the page does not load (it works fine in the old server). When we tried to debug the page for error in chrome, we got an error as data source not found, but the data source exists in CF Admin page. It is a shared server and we have multiple applications and each application has a separate CF Admin page.Kindly assist.Regards,Suresh P
These are the steps I use:1) I created new mapping inside CF Server => Server Settings => Mappinglogical path: /mysitedirectory path: /Volumes/drive2/work/mysite2) I restarted the server/Applications/ColdFusion2018/cfusion/bin/coldfusion stop && /Applications/ColdFusion2018/cfusion/bin/coldfusion start3) Using my preferred text editor, I created test.cfm inside /Volumes/drive2/work/mysite with the following contents<cfdump var="#CGI#">4) I then tried viewing the new file on my browser vialocalhost:8500/mysite/test.cfmI then get a 404 error. Exact message goes like "coldfusion.runtime.TemplateNotFoundException: File not found: /mysite/test.cfm"I checked these 2 things:I verified that /Volumes/drive2/work/mysite is readable by everyone (755 permission)I verified that /Volumes/drive2/work/mysite/test.cfm is readable by everyone (644 permission)Other than creating the mapping, the other configurations I've changed are:Created datasource for my appEnabled deb
We are starting to move our site over to ColdFusion 2016, and I noticed that the cfinput datefield type is broken. When the page loads it tries to reference YUI javascript assets that are apparently now deprecated and no longer come with ColdFusion.I don't see anything in the documentation about the datefield type being deprecated, so I'm not sure if the documentation is incorrect or if there's something wrong.
I am rendering web pages exclusively using AJAX content. One "object" I cannot get to work is Google maps. Everything else is contained within a .cfc component and cfsavecontent. Using this method I can only put a static map image. Anyone know if / how to insert a dynamic map using this method?Either using CFMAP or a javascript / jquery equivalent. I've tried both.
I am using ColdFusion 9 and I have XSS issue when i run security scan. I would like to install encoder-1.2.jar file into Coldfusion. Is there any suggestion or direction to install and use that library?Thank you!
Been using CFBuilder for a while and cannot figure out HOW to stop it from autocompleting.Specifically ... <cfif> it adds the </cfif> I found a couple of setting that appear to control it but it still insists on auto completing! ARGH!And then it gets really stupid when it finds a <input> within the <cfif> and tries to add </inoutIt also adds ] to [ ) to ( # to # so you get ##I wish CF Studio was compatible with WIndows 7 and 10?I must be missing the obvious!?
After upgrading to CF10, we are having issues getting our server to properly recognize any mimetype associated with the .xls file extension. For some odd reason, the server is viewing them as a word file type and rejecting it. When we upload a file with the .xls extension, the server responds back with the following error message:"The MIME type or the Extension of the uploaded file application/msword was not accepted by the server. Only files of type application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet can be uploaded. Verify that you are uploading a file of the appropriate type. The error type is Application."Our only workaround for the time being is uploading all files in the newer .xlsx format, which the server properly accepts. As you will see from the above error message, those are the mimetypes I have thus far. The other work around is updating the
Hello,We have a ColdFusion application that is currently using Oracle Authentication Manager (OAM) for logging people on to the application. In the application there is a link titled "Log Off". We have been instructed by our management stop using OAM. I have now got the application so that they are logging in using Citrix Netscaler to login in to an Internet explorer window that is exclusive to this application and the login process is working correctly. However when the "Log Off" link is clicked it is currently still redirecting to OAM for the Log Off process. This is confusing as the users are not logging in using OAM and, in the near future the OAM servers will be going away.What I am trying to do is have the logoff page just close the internet explorer window when users click it. After doing some searches on this I have tried modifying the logoff.cfm Page to the following. (Other then a header comment this is the entirety of the logoff.cfm page)&
I have a form that many people share. If more than one person uses it, their data is overwriting the next persons.I am working on a new page that will lock all other users from being able to submit data if another person is "logged" on to the page.The logged in user will get kicked out after three minutes of inactivity.The concern is, you may update several of the fields, get interrupted by a phone call, then get redirected to the home page and lose your data.If I have it redirect to the submission / processing page, will it take the form data with it, then I can send them to the home page?Please keep in mind, I am not a programmer, so I know there are likely many more elegant ways to resolve this.Thank you
We are trying to execute a cfinclude determined by screen width on our responsive website. This if for determining the number of ads that will appear on the page (we want to show a fixed number on screens of 700px or less). We are using Cold Fusion 9 so we can't utilize CF 11's detectDevice function. We realize we can't just use media queries to show or hide the appropriate cfinclude because this will not prevent CF from loading unnecessary ads in the background, it will just hide them and our page speed will be affected. Is Javascript the only way to do this? If so, can someone provide an example without Jquery?
Hi, I'm running CF 2018 on a Mac and trying to change the location the default wwwroot to a folder elsewhere in the system. Previously this was done by editing the server.xml file, but its not having the intended effect. The server.xml file reads as follows: <Context path="/" docBase="/Applications/ColdFusion2018/cfusion/wwwroot" WorkDir="/Users/bigMac/Dropbox/Apps/wwwroot" > <Resources> <PreResources base="/Applications/ColdFusion2018/cfusion/wwwroot/CFIDE" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/CFIDE"/> <PreResources base="/Applications/ColdFusion2018/cfusion/wwwroot/WEB-INF" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF"/></Resources> </Context>Any insights appreciated.
I have a site that is written in CF and running on Windows server.The question I have is, if I wanted to run it on Linux would the code literally port over or is there a chance I will run into problems?Maybe issues with case sensitivity which does not generally effect me in Windows so I did not pay a lot of attention to itThanksMark
We are upgrading from CF11 to CF2018. We have update 2 applied. Whenever we access CFMAIL tag, we get exception "Could not initialize class coldfusion.mail.MailImpl". Any ideas what might cause this? I'm not heavy into java, but I can't seem to locate where the coldfusion package is to see if the coldfusion.mail.MailImpl is defined ...any help greatly appreciated.
Hi folks,I am hoping someone can point me in the right direction to fixing a problem I am having with the lockdown tool. I have been following the CF2018 lockdown guide, I installed Coldfusion 2018 developer edition on a Server 2016 OS. I applied hotfix 3, only weird thing I found was that the ODBC server service would not start after.I checked the hotfix log and found no errors.Spent of a ton of time researching that problem, found there was issues in previous versions of CF, realized I don't have any ODBC datasources to worry about, so I set the ODBC Agent and ODBC Server service to be disabled following guidance from several of those threads.Successfully logging into CF Administrator. Followed the guide.Ran the lockdown tool following the guide, only major change's was that I selected no to the coldfusion update since I manually updated it, and I had the lockdown tool create the ColdFusion Runtime User for me. In checking the lockdown the log, I found it successfully created the use
Please help me to get the $("#txt").val(id); into coldfusion variable to do some sql query. Thanks<body><script>$(document).ready(function (){$(".ap").click(function (){var id = this.id;$("#txt").val(id);})})</script><div id="Test" class="ap">click</div><input id="txt" name="txt" value="" type="text"></body>
Newbie question here… how do I get / set these values in this (sub)Struct to variables?In the end, I want to have them set to variables like:<cfset CategoryID = StructVar><cfset CategoryName = StructVar>Thanks!
Hallo, I installed CFB2018 on my mac and trying to run my application.In application.cfc i have a <cfinclude template="/adirectoryunderwwwroot/fileincluded.cfm"> and always i get a could not find the template error.Some informations:-The code directory is under wwwroot folder-The path is mapped with a sym link.-CFB2018 server is Coldfusion+Tomcat version and i changed the context.xml file to allow linking.-CFB2018 server document root is under wwwroot folder-When i try to navigate to the path using the browser I can reach that folder (so I think tomcat is correctly setup)-I passed a chmod 777 on all files under the wwwroot-I unchecked save class in the server admin console-I tried with and without mapping in coldfusion and it doesn't change the behaviour.Do you have any advice?
Hi All,Need some help/pointers on what could be wrong here.ColdFusion Server fails to start, when giving add-exports java.args. The error in the Windows service log is "file not found" (no further details on what file is missing). Since the server fails to start, there is no CF logs to post.Environment: ColdFusion 2018Java 10.0.1Windows 2016# Arguments to VMjava.args=-server -Xms1024m -Xmx2048m --add-exports java.instrument/sun.instrument=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-modules=java.xml.ws --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/sun.util.cldr=ALL-UNNAMED --add-opens=java.base/sun.util.locale.provider=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+UseParallelGC -Xbatch -Djdk.attach.allowAttachSelf=true -Dcoldfusion.home={application.home} -Duser.language=en -Dcoldfusion.rootDir={application.home} -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -Dcoldfusion.libPath={appl
I am finding and uploading documents with this code:<cfif structKeyExists(form, "uploadfile1") and len(form.uploadfile1)> <cfset destination = "//server/target folder/"> <cffile action="upload" filefield="uploadfile1" destination="#destination#" nameConflict="makeUnique"></cfif>However, I would also like to create Shortcuts to this file in one or more other folders. In Windows Explorer, shortcut entries look like this:MyFile.docx - Shortcut 6/17/2019 1:40 PM Shortcut 3 KBIs there a way to do this in CF? If so, can you provide some code or a location where I can find some advice on how to do it? I use Dreamweaver CS6 as my development environment.Thanks.
Hello,I am attempting on adding an additonal PDF Service manager in order to spread the load between two, but when I click "Add PDF Service Manager" I receive the following message:Error adding PDF Service Manager. Please ensure that you have entered a correct PDF Service hostname and port. Check logs for more detailsThe current Service manager has the default port with localhost for the "Host Name"The new one I am attempting to create also has the local host for hostname and I have tried a few ports around the default as well as some in the 5000-7000 range and still getting the same issue.These are found in the coldfusion-out log:"Error adding PDF Service Manager. Please ensure that you have entered a correct PDF Service hostname and port.""coldfusion.document.DocumentServiceImpl$LocalServiceManagerException: You are not allowed to add Local service manager."
Questions about ColdFusion Builder or possibly ColdFusion in general. I'm trying to wrap my head around Projects and Workspaces. With Java, there's a directory-namespace hierarchy that associates programs under one package. I'm simplifying it, of course, but having this structure allows me to share code within one package but I'm still unclear how that works with CF.I incorrectly imported a CF project into CF Builder using these steps: https://stackoverflow.com/questions/10488276/coldfusion-builder-open-project. Now CF Builder says that my project doesn't belong to a CF project and tried to follow these steps to apply CF Nature to the project (https://helpx.adobe.com/coldfusion/using-coldfusion-builder/managing-projects.html#Importexportanddeleteprojects) but error message says "Project is already open in the workspace." So now I'm confused because I'm told that my project isn't and also is a CF Project? And why would it make a difference if it's open in the workspace? What's a Project
Anyone know why my Server Updates page has quit showing the installer or updates pane? I was able to apply previous updates to 2016 so not sure why it’s just decided to quit working.
Hi,CF 10 docs seem a tad thin on the subject of silent / unattended / scripted installation and configuration.I need to find a fully automated (scripted) way to do these things:1) install of ColdFusion 10 server in standalone mode2) create additional servers instances3) configure each server instance separately (settings, data sources, mappings, etc)Is this currently possible with CF 10? If yes, where's the documentation?I'm aiming for a Chef cookbook for performing unattended CF10 installations on a farm of headless Linux hosts. Manual configuration through the Administrator UI is a definite deal breaker here.Thanks in advance!Best regards,Jan
I'm getting the following error in the CF Administrator after I installed Release/Update 3 (ColdFusion 2018). The Enterprise manager option has appeared in the left hand side menu when I login to all CF instances and when I click on it I get the error below. Previously, this option was only available on the CFUSION instance. Has anyone had the issue like this before?Variable PROCESSSERVER is undefined.The error occurred in /cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/serverlist.cfm: line 13Called from /cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/serverlist.cfm: line 1Called from /cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/index.cfm: line 32711 : 12 : 13 : <cfset servers=processServer.doList()>14 : 15 : <cfset clusters=clusterManager.getClusters()>....Stack Traceat cfserverlist2ecfm1056828963._factor9(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/serverlist
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.