Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all 5979 articles
Browse latest View live

Can a Coldfusion 2016 activate a Coldfusion 11 installation?

$
0
0

Hello, we installed and hardened a CF 11 Standard edition installation on a client's server.

Now the client is ready to go live, however CF 11 license is not available to purchase.

If we buy the CF 2016 edition today, can we possibly activate CF11 with a CF 2016 edition license?


CFDBINFO doesn't see a table that does exist

$
0
0

Hello, all,

 

I'm trying to troubleshoot an issue with the DBINFO tag, and I've never used it, before.

 

Basically, we have a schema ("FC") that has many tables, one of which is called "F_COMMENTS".  In CFAdmin, the DSN is named the same as the schema.

 

I'm using the following:

<cfdbinfo type="columns" table="F_COMMENTS" datasource="FC" name="dbdata" />

 

The error message states that table F_COMMENTS doesn't exist.  But it does.

 

What could be causing this erroneous message?

 

V/r,

 

^_^

 

UPDATE:  I did the following:

<cfdbinfo type="tables" datasource="FC" name="dbdata" />

 

The CFDUMP of that does show that the table "F_COMMENTS" is in the datasource.

Can I access a function variable form outside?

$
0
0

I don't know much about ColdFusion yet. If I declare/cfset a variable inside a function, can I just access that variable directly from anywhere on the .CFM page?

How to set up SAS as data source in Coldfusion?

$
0
0

How to set up SAS as data source in Coldfusion?

where to download coldfusion 7 installer, to rebuild server.

$
0
0

Where can I find a installer for windows coldfusion 7, "coldfusion-70-win.exe"?

 

Trying to rebuild server, the only place I can find are these places that infect the install routines.

 

I can't find anyplace on the adobe website, maybe there are hidden links?

HomeSite crashing on Windows 8

$
0
0

Hello,

 

Earlier I had HomeSite 5.5 installed on Windows 7 and everything worked fine, until I upgraded to Windows 8, and now, about every 20 minutes or so, it throws up this error message before it crashes:

 

HomeSite has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.

 

Then if I click debug, it says:

 

An unhandled Win 32 exception occurred in HomeSite+.exe [8064]

 

The error number differs each time. I can't debug because I don't have Visual Studio installed.

 

Is anyone else running HomeSite on Windows 8? If so, maybe you know of a solution.

 

Pete

Where can I get a coldfusion 10 ISO file

$
0
0

I am trying to load Cf10 on a virual machine and my sys admin wants an ISO file.

 

I have not been able to find one.

 

Any ideas or am i chasiing a ghost?

Could ColdFusion have caused the URLRewrite to not function properly?

$
0
0

I'm using ColdFusion 10 with Paperthin's CommonSpot CMS. The hyperlink in each of the search result page is https://devbox.mysite.com/kb/article/?title=test-article and the URLRewrite should show https://devbox.mysite.com/kb/article/test-article on the client's browser instead. Below is the URL Rewrite.

 

 

<rule name="KB-rewrite" enabled="true">    <match url="^kb/article/([a-zA-Z0-9\-]+)$" />    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">    <add input="{QUERY_STRING}" pattern="1" negate="true" />    </conditions>    <action type="Rewrite" url="kb/article/?title={R:1}" appendQueryString="false" /></rule>

 

I know that the URL Rewrite rule works because if I removed the "?title-" from the URL, it loads the article fine. The question is, why is it showing ?titlte= in the URL when without it, it would still works? What could have caused this behavior? Where can I start troubleshooting? Can it be my app's logic that uses ColdFusion that cause the problem? Suggestions are much appreciated.


How to fix cfchartseries in coldfusion 11?

$
0
0

Hello everyone, I'm trying to fix my cfchart in CF11 to look some similar like in previous CF9. I converted my .xml files and instead I use JSON to style my elements. Problem that I can not fix is cfchartseries. My data that i'm passing in my chartseries looks good, I tried to output everything on the screen before I tested my chart. In CF9 my Time records were displayed on the screen from the first value all the way up to the last value. Here is my screen shot of my chart in CF9:

 

CF9.png

As you can see on the picture above all my time slots are displayed on the screen in order from the lowest to the highest. Also my record for 2015 is displayed with the bar in blue color, 2016 in pink color. Now I will show you my chart with the exact same code in CF11:

 

CF11.png

You can see thatmy chart in CF11 starts with the blue bar that present year 2015 and time slot that should not be on the first spot 1415. Also my other time slots are not displayed on the screen. I have tried so hard to get this done but still did not find any solutions. I'm wondering if anyone can help with this problem. Below is my code and I will show you both codes for CF9 and CF11.

 

Code for chart in CF9:

 

<cfchart format="#ffPrint#" xaxistitle="#desc#" yaxistitle="#yTitle#" style="ChartStyle.xml"

  chartheight="700" chartwidth="#graphWidth#" title="#title#"  showlegend="#theLegend#" >

  

  <cfchartseries type="bar" itemcolumn="Spacer" valuecolumn="" seriescolor="white"  >

  <cfoutput>

  <cfloop list="#dataList#" index="i">

  <cfchartdata item="#i#" value="0">

  </cfloop>

  </cfoutput>

  </cfchartseries>

 

  <cfoutput query="getRecords" group="theYear">

  <cfchartseries type="bar" itemcolumn="#theYear#" valuecolumn="theCount" seriescolor="#listGetAt(theColors,colorIndex)#" >

  <cfset colorIndex++>

  <cfoutput>

  <cfchartdata item="#Description#" value="#theCount#">

  </cfoutput>

  </cfchartseries>

  </cfoutput>

  </cfchart>

 

Code for my chart in CF11:

 

<cfchart format="html" xaxistitle="#desc#" yaxistitle="#yTitle#" style="#cStyle#"

  chartheight="700" chartwidth="#graphWidth#" title="#newTitle2#"  showlegend="#theLegend#">

 

 

  <cfoutput query="getRecords" group="theYear">

  <cfchartseries type="bar" itemcolumn="#theYear#" valuecolumn="theCount" seriescolor="#listGetAt(theColors,colorIndex)#" serieslabel="#theYear#">

  <cfset colorIndex++>

  <cfoutput>

  <cfchartdata item="#Description#" value="#theCount#">

  </cfoutput>

  </cfchartseries>

  </cfoutput>

  </cfchart>

 

In order to get any records in CF11 I had to remove my first CFCHARTSERIES, still if I have combination of 2015 and 2016 years records my chart does not display values on the screen. I think that problem is in CFCHARTSERIES but I do not what should be changed to fix this issue. If anyone can help please let me know.

 

Thanks in advance!

Status 500 when accessing Coldfusion 10 REST service

$
0
0

Server Setup:

-Windows Server 2008

-IIS 7

-Coldfusion 10

 

We have developed a Coldfusion REST service.

This service works when files are uploaded to the server and the Coldfusion REST service is restarted/refreshed. I test the end points and they all work.

 

The first thing next day, I test the end points and they do not work. The return is “Status 500 - The page … can not be displayed.”

 

I do not believe this to be a IIS problem/issue. If the files are re-uploaded and the REST service is once again restarted/refreshed the end points will start to work again. Funny thing is, just refreshing the REST service will not make the end points start working… the files must be re-uploaded first.

 

Has anyone experienced this?

Does anyone have any suggestions?

Licensing cost for ColdFusion 12 Enterprise Edition

$
0
0

Hi,

I'd like to know the licensing cost for ColdFusion 12 Enterprise Edition and the compatibility matrix of the same version please.

 

Thanks,

Indradip

Is CFFILE read uses only absolute path or relative path too?

$
0
0

I'm using cffile read to access to my json file. I like to know if cffile only uses absolute path or relative too? If I tried to use relative path, it kept giving me errors about file not exist.

Coldfusion 11 logging PDF output tmp files to logs directory and runtime directory

$
0
0

  I have Coldfusion running on Windows 2008 R2 standard, IIS 7.

 

I went in to check the log files,  as I have been having cfdocument hanging issues, to see if I could see what is going on and I found thousands of "words-_42551637582208396016989565005225560069.tmp" files in the directory that contain the cfdocument xml output like this"

<?xml version="1.0" encoding="UTF-8"?><DocText xmlns="http://ns.adobe.com/DDX/DocText/1.0/">

<TextPerPage>

<Page pageNumber="1">Loan Presentation - Narrative NARRATIVE Description of Business / Management This is a test of Description of Business Management narrative . in the Loan Presentation . Background and History This is a test of Background and History narrative in the Loan Presentation . Current Account Relationships This is a test of Current Account Relationships narrative in the Loan Presentation . Credit Overall Strengths and Weaknesses This is a test of Credit Overall Strengths and Weaknesses narrative in the Loan Presentation . Loan Exceptions test pg Repayment This is a test of Repayment narrative in the Loan Presentation . Ongoing Financial Statement Requirements</Page>

</TextPerPage>

</DocText>"

 

Also the ColdFusion11\cfusion\runtime\work\Catalina\localhost\tmp is full of all the same files. 

 

Has anyone else experienced this? Any ideas? I have spent hours and hours looking for a fix to this. I am wondering if this has something to do with my CFDOCUMENT hanging every few days.


I am ready to just uninstall CF 11 and install 10.


Thanks

64位WIN10 enterprise系统上安装了CF11,也安装了32位SUN JVM,但是进行Data Source和Securitry设置时,弹出面板空白 。

$
0
0

如题,why?

也无法正常使用cftextarea。

Charts COLDFUSION 11?

$
0
0

Hello everyone, I have a problem with my charts after I switced form CF9 to CF11. My previous code in CF 9 was able to handle data with multiple years. After switch to CF11 my code gives me wrong chart. Looks like multiple years are combined together. Here is my photo of CF9 chart:

 

CF9.png

And her is my CF11 chart:

CF11.png

As you can see, in CF11  2015 year is first then 2016, but at the same time blue and yellow bar are in the same box. That should not be that way. Also I lost my time values on my x scale. Here is my code that I used in CF9:

 

<cfchart format="#ffPrint#" xaxistitle="#desc#" yaxistitle="#yTitle#" style="ChartStyle.xml"

  chartheight="700" chartwidth="#graphWidth#" title="#title#"  showlegend="#theLegend#" >

 

  <cfchartseries type="bar" itemcolumn="Spacer" valuecolumn="" seriescolor="white"  >

  <cfoutput>

  <cfloop list="#dataList#" index="i">

  <cfchartdata item="#i#" value="0">

  </cfloop>

  </cfoutput>

  </cfchartseries>

 

  <cfoutput query="getRecords" group="theYear">

  <cfchartseries type="bar" itemcolumn="#theYear#" valuecolumn="theCount" seriescolor="#listGetAt(theColors,colorIndex)#" >

  <cfset colorIndex++>

  <cfoutput>

  <cfchartdata item="#Description#" value="#theCount#">

  </cfoutput>

  </cfchartseries>

  </cfoutput>

  </cfchart>

 

Does anyone know how this can be fixed? Is there any command in CF11 charts to check if data records and handle records with 0 value?

 

Thanks in advance.


An alternative to CFX_ImageCR3

$
0
0

Anybody know of an alternative to CFX_ImageCR3 by Efflare? Efflare appears to have gone out of business and the version of CFX_ImageCR3 seems to require an ever increasing amount of memory.

CF2016 - Alias for /cf_scripts/scripts in the Built-In Web Server

$
0
0

I'm following the lockdown guide here:

http://wwwimages.adobe.com/content/dam/acom/en/products/coldfusion/pdfs/coldfusion-2016-lo ckdown-guide.pdf

 

The guide suggests moving the /cf_scripts/scripts directory, so I did.

The guide also suggests using only the built-in web server for accessing ColdFusion Administrator, so that's how I have it set up.

The guide also states that you should create an alias for the moved directory in the built-in web server.  See page 58 of the PDF.

If you plan on using the built-in web server to access ColdFusion administrator you may need to create an alias for /cf_scripts/scripts if you changed the Default Script Src setting in ColdFusion administrator.

To Create a new Alias for /cf_scripts/scripts in the built-in web server

If you plan to use the built-in web server for accessing ColdFusion administrator then you must also add an alias by adding a Context tag inside the Host tag of server.xml located: /opt/cf11/cfusion/runtime/conf/server.xml

<Context path="/"

docBase="/opt/cf11/cfusion/wwwroot"

Workie="/opt/cf11/fusion/runtime/cone/Catalina/localhost/tamp"

aliases="/coscripts=/opt/cf11/fusion/wwwroot/CFIDE/scripts" />

Restart ColdFusion, then test by visiting /cfscripts/cfform.js on your builtin server.

 

There are a ton of typos in this (Workie vs WorDir, cone vs conf, tamp vs tmp, coscripts vs cfscripts, etc.

This also appears to be referencing the cf11 paths (CFIDE/scripts vs cf_scripts/scripts, and /cfscripts/cfform.js vs cf_scripts/scripts/cfform.js).

 

Further, coldfusion-error.log notes the following:

WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'aliases' to '/cf_scripts/scripts=/cf_scripts/test_scripts' did not find a matching property.

 

The first line isn't an issue, but the second line is.  aliases isn't a valid property of context.

The server.xml file has an example, and it's as follows:

<Context path="" docBase="<cf_home>/wwwroot" WorkDir="<cf_home>/runtime/conf/Catalina/localhost/tmp" >

<Resources>

    <PreResources base="docBase1" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/aliasPath1"/>

    <PreResources base="docBase2" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/aliasPath2"/>

  </Resources>

</Context>

 

This aligns with the Apache docs.

 

I have CF installed on Windows, at F:\CF_2016\ .  This is what I've done to alias the scripts directory (renamed to test_scripts for testing) for the built-in web server:

<Context path="/" docBase="F:/CF_2016/cfusion/wwwroot" WorkDir="F:/CF_2016/cfusion/runtime/conf/Catalina/localhost/tmp">

  <Resources>

    <PreResources base="F:/CF_2016/cfusion/wwwroot/cf_scripts/test_scripts" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/cf_scripts/scripts"/>

  </Resources>

</Context>

 

It seems to work.  Is this correct? Should it be aliased as /scripts or /cfscripts instead of /cf_scripts/scripts ?

 

Why exactly do I need to alias this for the administrator?

 

Thanks

Coldfusion 10 Case Sensitive URLs?!?

$
0
0

I just migrated my CF8 site to CF10 (development only, thankfully!) and noticed that all sorts of issues were occuring with missing images.  It appears that, after over a decade of "test.html" being the same as "TEST.HTML", the adoption of Tomcat has killed that.  A link to "MyImage.jpg" will not bring up "myimage.jpg".

 

Please tell me I'm wrong or, better still, tell me a way to turn off case sensitivity in the Tomcat system.  My application has thousands of templates (each with multiple links) and I'm not very happy about the idea of having to go in, page by page, and standardize their casing.

Notre entreprise possede une Licence valide de Coldfusion 7 MX qoui faire pour faire une mise à jour à Coldfusion 11

$
0
0

Notre entreprise possede une Licence valide de Coldfusion 7 MX qoui faire pour faire une mise à jour à Coldfusion 11

jquery ajax get works but 500 error is thrown

$
0
0

Hi guys, I have this issue where I'm using Jquery to get a simple string from a cfc and although the string is returned correctly I also get a bunch of unwanted HTML code appended to the response. The HTML  code is CF's 500 error page.
It does not happen if I comment out the ajax call but as soon as I put it back it happens.  It's driving me nuts.  There are no errors listed in the logs.  The original application was not written by me and it uses application.cfm and onrequestend.cfm, I've commented out all code in onrequestend.cfm in case that's what's causing it but no change.   I've attached screenshots of the alert pop up where you can see that the response is there at the top.
Been browsing for a solution but cannot find it. Not sure where to start debugging it.  It must be something soo simple that I overlook. Any help would be much appreciated.
Here's my simple JS:

 

var thisEmail = $('#emailAddress').val();

 

$.ajax({

  type: "get",

  url:"cfcs/subscribe.cfc?returnformat=plain&email="+thisEmail,

  data: { method: "doSubscribe" },

  cache:false,

  normalizeJSON: true,

  success: function(data) {

 

  alert(data);

 

  });

 

Here's my simple CFC function:

 

<cffunction name="doSubscribe" access="remote" returntype="any" returnFormat="plain" output="no">

   

  <cfargument name="email" type="string" required="yes">

      

  <cfreturn "test response">

        

   

  </cffunction>

 

 

Capture.PNGCapture2.PNG

Viewing all 5979 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>