Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all 14291 articles
Browse latest View live

Can't download ColdFusion Server 11 without Akamai Download Manager??

$
0
0

WTF, Adobe??

 

Why are you insisting that I use the Akamai Download Manager (which I never trust download managers) in order to download anything???

 

Based upon advice of others, I have attempted to bypass it by clicking on the "File 1 of 1" link.  But that doesn't give me the CF 11 installation file.  It still links to "Adobe ColdFusion 11 - AkamaiDLM.exe".

 

WHY CAN'T I DOWNLOAD ANYTHING WITHOUT THE DLM????????????????????

 

^_^


ColdFusion Builder 3 - Open a large file causing CF Builder 3 to Hang

$
0
0

When I try to open a large file having 2700 lines of code in CF Builder 3, it becomes completely unusable and in the task manager showing Not Responding.

You have attempted to dereference a scalar variable of type class java.lang.String as a structure wi

$
0
0

You  have  attempted to dereference a scalar variable of type class  java.lang.String as a  structure with members

Hi

 

 

I receive the error in the title bar as a result of the following code but I can't see what I'm doing wrong:

 

<cfcomponent hint="sets background colour to help users see where they are during booking">

 

<cffunction name="cellcolour" returntype="struct">
<cfargument name="progressstage" type="string" required="true">
<cfset var stagecol="StructNew()">

 

<cfset oncolour="red">
<cfset offcolour="white">

<cfswitch expression="#progressstage#">
<cfcase value="progressstage1">
<cfset stagecol.colour1="#oncolour#">
<cfset stagecol.colour2="#offcolour#">
<cfset stagecol.colour3="#offcolour#">
<cfset stagecol.colour4="#offcolour#">
<cfset stagecol.colour5="#offcolour#">
</cfcase>

 

........... etc

 

Thew line where the error occurs is <cfset stagecol.colour1="#oncolour#">.

 

Thanks in advance for any advice

 

Dave

Error with cfdiv and database query

$
0
0

I meet a weird error,

this is my first page.

 

<cfform>

<table>

<tr>

<th colspan="2">

<h2>Find a location</h2>

</th>

</tr>

<tr>

<td>

Location:<br />

<cfset State = createObject("component", "location").getState()>

<cfselect name="StateID"

  query="State"

  required="yes"

  message="Please select a location."

  display="State"

  value="State_ID"

  queryposition="below">

<option value="">Select State</option>

</cfselect>

</td>

<td>

Area:<br />

<cfselect name="LocationID"

  bind="cfc:location.getAreas({StateID})"

  display="Area"

  value="Location_ID">

 

</cfselect>

</td>

</tr>

<tr>

<td colspan="2" abbr="center">

<input type="submit" value="Search">

</td>

</tr>

</table>

<table>

<tr>

<td>

<cfdiv bind="url:location_result2.cfm?StateID={StateID@change}&LocationID={LocationID@change}">

</td>

</tr>

</table>

 

</cfform>

 

------------------------------------------------------------------------------------------ -----------------------

and this is my cfc file

 

<cfcomponent>

<cfset ds = "Reservation">

<!--- Get array of ratings types --->

<cffunction name="getState"

access="remote"

returntype="Query"

hint="Get State for Ajax SELECT">

 

<!--- Define variables --->

<cfset var ta="">

 

<!--- Get data --->

<cfquery name="ta" datasource="#ds#">

SELECT State_ID, Trim(State) AS State

FROM State

ORDER BY State

</cfquery>

 

<!--- And return it --->

<cfreturn ta>

</cffunction>

 

<!--- Get films by rating --->

<cffunction name="getAreas"

access="remote"

returnType="Query"

hint="Get area by rating for AJAX select">

<cfargument name="LocationID2"

type="numeric"

required="true">

<!--- Define variable --->

<cfset var ta="">

 

<!--- Get data --->

<cfquery name="ta" datasource="#ds#">

SELECT Location_ID, State_ID, Trim(Area) AS Area

FROM Location

WHERE State_ID  = (#ARGUMENTS.LocationID2#)

ORDER BY State_ID

</cfquery>

<cfreturn ta>

</cffunction>

 

<cffunction name="sendFeatures"

returntype="Query"

access="public">

<cfargument name="StateID" type="any"  default="">

<cfargument name="LocationID" type="any"  default="">

<cfset var data ="">

 

<cfquery datasource="#ds#" name="data">

SELECT s.State_ID, s.State, l.Location_ID, l.Area, l.State_ID, r.Name, r.Location_ID

FROM State s, Location l, Restaurants r

WHERE 0=0

AND r.Location_ID = l.Location_ID

AND l.State_ID = s.State_ID

<cfif (#ARGUMENTS.LocationID#) IS (#ARGUMENTS.StateID#)>

AND l.State_ID = (#ARGUMENTS.LocationID#)

<cfelse>

AND l.Location_ID = (#ARGUMENTS.LocationID#)

</cfif>

</cfquery>

<cfdump var="#arguments#">

<cfreturn data>

</cffunction>

</cfcomponent>

 

------------------------------------------------------------------------------------------ -------------

i keep get this error.

Error Executing Database Query.

The error occurred in E:\wamp\www\Test\location2.cfc: line 61
Called from E:\wamp\www\Test\location_result2.cfm: line 11
Called from E:\wamp\www\Test\location2.cfc: line 61
Called from E:\wamp\www\Test\location_result2.cfm: line 11
59 :           AND l.State_ID = (#ARGUMENTS.LocationID#)
60 :           <cfelse>61 :                AND l.Location_ID = (#ARGUMENTS.LocationID#)
62 :           </cfif>
63 :           </cfquery>

 

but when i continue click and the select, at the end i can get the result which i want.

Can please give me some tips to avoid this error ?

ColdFusion 11 ODBC service

$
0
0

People who installed coldFusion 11 on our server didn't select the option "ODBC Service".

Is there a way to install the ODBC service without re-installing coldFusion ?

CF10 Flash Remoting

$
0
0

Hi all,

 

upgraded to CF10 from 9 this week and just realised that Flash Remoting is no longer working.  Any idea how I enable it within CF10?

 

Thanks

How to restart ColdFusion 10 programatically

$
0
0

Hi,

 

Does anyone have the code (CFSCRIPT/CFML) to restart a CF10 instance?

 

The code that worked for us in CF 7 and 8 no longer works on v10.

 

Regards,

Mark

SMS Gateway losing Connection

$
0
0
Hi

I have a coldfusion 8 server connecting to an SMS Provider and the binding works great, sending messages works most of the time but the bind to the server drops randomly and regularly.

It seems like i can push messages through then it will hang and drop the bind then re-establish the bind and work again.

I have done a bunch of google searches for a similar problem with no success. Has anyone seen this same issue and if so how did you overcome it? Any input/suggestions/whatever would be greatly appreciated.

Thanks

Sporadic issue with ODBC on localhost

$
0
0

I'm brand-spanking new to MySQL, using ColdFusion, and I'm having sporadic issues with queries on localhost. Sometimes they work, and sometimes they throw an error. If I reload the page executing a query five times, it might display the page correctly only one or two of those times. The execution times for the pages range from 5 to 15 seconds, whether there's an error or not. Works the same in two different browsers. The behavior is the same, whether I pass a username/pw to the database or not. Pages with no queries execute in the normal millisecond range.

MySQL Server 8.0.13 Windows 64 bit ODBC datasource (AptMaps2), which is referenced from within Coldfusion administrator, where I created a CF DSN with a different name (AptMaps). ColdFusion2018

You can see from the error text, even if the page sends back an error, the variable gets passed properly.

I have no understanding why, but I suspect there is a problem in how I've configured my DSN. Thoughts?


Error Executing Database Query. [Macromedia][SequeLink JDBC Driver]TCP/IP error, connection refused.

The error occurred in C:/ColdFusion2018/cfusion/wwwroot/pages/map.cfm: line 45

43 : SELECT *
44 : FROM Maps
45 : WHERE MID = #url.id#
46 : ORDER BY MID
47 :

SQLSTATE 08S01
DATASOURCE AptMaps
VENDORERRORCODE 2306

 

SQL SELECT *
FROM Maps
WHERE MID = 110
ORDER BY MID

Security in the cloud

$
0
0

Hi,

 

We are on a cloud server with CF2018 Enterprise. We want to implement access restrictions to specific folders for certain user IP addresses and, of course, CGI variables such as REMOTE_ADDR are useless since we just get our cloud proxy address. CGI.REMOTE_ADDR has bit more promise as I am not sure it can be easily spoofed, but has anyone tackled such a problem and what technique did you use?

 

We also have CGI.X_FORWARDED_FOR and this does have the client's IP address, but again I am not sure as to its "spoofability". If we ensured that the X_FORWARDED_FOR was the IP we wanted and the REMOTE_ADDR was our proxy gateway address, would that be sufficient to allow/disallow users to certain folders to run .cfm scripts?

 

Thanks,

Mark

CFWINDOW problem

$
0
0
Can't figure out why in two cfwindows created from main page, calendar in cfinput type="datefield" behaves differently depending on ORDER in which they created. Calendar icon became inactive in the second window if the first one was called and then closed. (The input field is still active for manual data entry). But if main page refreshed it's active again. In the first window the calendar active at any time without refreshing main page and when called in any order. These 2 windows are identical. Bahavior is the same with any settings of cfwindow attriburtes like refreshOnShow (true or false) and others. And if to switch the order of windows creation in main page, the calendar in the other pop-up window became frozen and first one previously inactive works fine. Is it a bug in CF8?
This is code in main page:
<cfajaximport tags="cfwindow, cfform, cfinput-datefield">
<cfwindow title="WindowName1"
name="MyName1"
height="380"
modal="false"
refreshOnShow="true"
initShow="false"
source="../MySource1.cfm"/ >

<cfwindow title="WindowName2"
name="MyName2"
height="380"
modal="false"
refreshOnShow="true"
initShow="false"
source="../MySource2.cfm"/ >

Calles for pop-up windows:
<a href="#" onclick="javascript:ColdFusion.Window.show(MyName1);">Title 1</a>
<a href="#" onclick="javascript:ColdFusion.Window.show(MyName2);">Title 2</a>

in called windows:
<cfform>
<cfinput type="datefield" name="FieldName1">
.......
</cfform>

<cfform>
<cfinput type="datefield" name="FieldName2">
.......
</cfform>




Local Copy of CF10 Documentation

$
0
0

Hi,

 

When I installed CF10, I selected the option in the installer to install the documentation.  However I cannot see any sign of it on my PC.

 

Where does it put it?  I realise I can access it online, but I have always found it much more efficient to have an offline copy running on my local server.

 

Alternatively, is it possible to download the docs as a zip file and install them locally?

 

Regards,

Andrew.

ImageCrop suddenly stopped working

$
0
0

I have a cfm file that has been working for years on a remote shared server, which saves an uploaded image, crops it, resizes it and then saves it to a different folder as a thumbnail.

 

The upload save, get image metadata, resize, and save of resized file all work fine, but if I include the imageCrop line, then it fails silently at that point with no error.

 

It looks as though the imageCrop function is failing to load the image to manipulate it. But since everything else works, I can't think how this could be.

 

Anyone got any clues where I can look.

 

Doug

Tomcat ISAPI_redirect.log errors - normal?

$
0
0

Hi,

 

We have a mixture of CF10 and CF11 servers running on Windows 2012, IIS 8/8.5. On one CF10 server we have these errors consistently throughout the day in the isapi_redirect.log file:

 

[Tue Nov 18 08:58:50.130 2014] [10776:11284] [error] isapi_write_client::jk_isapi_plugin.c (1400): WriteClient failed with 1229 (0x000004cd)

[Tue Nov 18 08:58:50.281 2014] [10776:11284] [info] ajp_process_callback::jk_ajp_common.c (2089): Writing to client aborted or client network problems

[Tue Nov 18 08:58:50.356 2014] [10776:11284] [info] ajp_service::jk_ajp_common.c (2795): (cfusion) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)

[Tue Nov 18 08:58:50.416 2014] [10776:11284] [info] HttpExtensionProc::jk_isapi_plugin.c (2603): service() failed because client aborted connection

 

The connector is set to debug level INFO, yet we see INFO, WARN and ERROR status messages. We had this issue on CF10 update 12 and update 14.

 

Appreciate it someone could check their isapi_redirect.log log to see if they get these errors too. Are the errors normal (people closing connections with ESC key etc) or is there tuning to do, or is there a problem? Curiously, some of our servers have no such errors at all, except for the ISAPI connector starting up and shutting down and showing the number of connections etc. The only significant difference between the website with the errors and the ones without is that it uses more AJAX requests. Be grateful for any pointers.

Help with date query needed

$
0
0

Hi,

 

We have a database with dates stored as day, month and year fields and need to build a query that returns a recordset for only those dates that fall within the current date. For some reason the query returns records that are always a day too late or a day too early. Has anyone got a better way of writing this query? We are on MSSQL 2008r2. The query we have so far is:

 

    select * from mydatabase where

    DATEADD( day, -1, CAST(CAST(DateFromYYYY AS varchar) + '-' + CAST(DateFromMM AS varchar) + '-' + CAST(DateFromDD + 1 AS varchar) AS DATETIME) ) <= GETDATE() AND

    DATEADD( day, -1, CAST(CAST(DateToYYYY   AS varchar) + '-' + CAST(DateToMM   AS varchar) + '-' + CAST(DateToDD AS varchar) AS DATETIME) ) >= GETDATE()

 

The fields we have are DateFromYYYY, DateFromMM amd DateFromDD and DateToYYYY, DateToMM amd DateToDD and they are varchars. We can't change the fields in the database as this is a legacy system. Basically we build each date string on-the-fly and then compare to see if it falls within the current date using GETDATE(). Our results are never accurate unfortunately. Any help appreciated.

 


ColdFusion 10 silent installation and configuration

$
0
0

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 mode

2) create additional servers instances

3) 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

ColdFusion 2018 Developer Edition on Windows Case Sensitivity

$
0
0
0

 

 

I just installed ColdFusion 2018 Developer Edition on my Windows 10 laptop and configured it to use the built-in web server. Previously I was using ColdFusion 10.

Now I have a case-sensitivity problem. For example, all css and js references are now case-sensitive, whereas they weren't when I was using ColdFusion 10. The same is true for calls to images and plain html files.

I modified the context.xml file (in the /cfusion/runtime/conf folder) to include <Context AllowLinking="true" caseSensitive="true"> (and yes, I also tried caseSensitive="false") and have restarted several times, but no luck yet.

The 404 error messages specify Apache Tomcat.

Any ideas on how to restore case-insensitivity? Thanks in advance for any help.

Is ColdFusion dead, six feet under, pushing up daisies?

$
0
0

The security team here at the University seems to think ColdFusion is dead. Is it? I'm getting tired of trying to defend it. Do you have any resources to help? List of Companies perhaps?

 

Just so we're all on the same page, Adobe chat support's official response to this question was;

"... we don't have option for that, however if you are facing any technical issue you can contact our expert in technical team."

 

And calling tech support I was presented with the response;

"We can't help you. Go to the forums."

 

When I asked tech support to route me to a supervisor he said, "Adobe doesn't care if you discontinue use of their product" Yep. He actually said that to me

cfexecute security issue

$
0
0

Hi All,

I have the next command cfexecute in CF11

<cfexecute name="#app_dir#resources\oracle_instantclient\sqlldr.exe" timeout="10"

                        arguments='userid=sampleDB/\"mypass\"@//10.230.44.7:1521/sampleDB control=#app_dir#upload\importME.ctl log=#app_dir#upload\importME.log'

                        errorVariable="errorReport">

                    </cfexecute>

The sql loader is working but I have an issue with security because i am including the DB password in my cfc page.

Is there a way to use the CF admin data source Oracle connection here? Or

Is there a way to encrypt the password in the cfexecute?

Thanks

 

Johnny

Variable PROCESSSERVER is undefined in Enterprise manager

$
0
0

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 13

Called from /cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/serverlist.cfm: line 1

Called from /cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/index.cfm: line 327

11 :

12 :

13 : <cfset servers=processServer.doList()>

14 :

15 : <cfset clusters=clusterManager.getClusters()>

....

 

 

Stack Trace

at cfserverlist2ecfm1056828963._factor9(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/admi nistrator/entman/serverlist.cfm:13) at cfserverlist2ecfm1056828963.runPage(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/admin istrator/entman/serverlist.cfm:1) at cfindex2ecfm1080657480.runPage(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administrator/entman/index.cfm:327)

 

coldfusion.runtime.UndefinedVariableException: Variable PROCESSSERVER is undefined.

at coldfusion.runtime.CfJspPage._get(CfJspPage.java:455)

at coldfusion.runtime.CfJspPage._get(CfJspPage.java:421)

at coldfusion.runtime.CfJspPage._get(CfJspPage.java:400)

at cfserverlist2ecfm1056828963._factor9(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/admi nistrator/entman/serverlist.cfm:13)

at cfserverlist2ecfm1056828963.runPage(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/admin istrator/entman/serverlist.cfm:1)

at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262)

at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:729)

at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565)

at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:4082)

at cfindex2ecfm1080657480.runPage(/cfdisk/coldfusion2018/<instance>/wwwroot/CFIDE/administra tor/entman/index.cfm:327)

.....

Viewing all 14291 articles
Browse latest View live


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