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

ColdFusion admin password

$
0
0

Where can I find the ColdFusion administrator page password in the server (in which folder I can find it) and how to view it (if it is cryptic).


structKeyExists() vs IsDefined()

$
0
0


On a self submitting form (like a Contact Us)...

 

Why is <cfif structKeyExists(form, "submitform")> preferred over <cfif IsDefined('FORM.submitform')>?

 

What is the advantage/benefit of structKeyExists?

 

 

 

Thanks

cfcalendar does not work in chrome

$
0
0

Hi All -

 

I am using cf 9 version and cfcalendar. This does not seem to be working only on chrome. The date value is not getting passed to the next page. I get the following error in chrome console

 

Uncaught ReferenceError: updateHiddenValue is not defined

 

And in network tab of chrome, the following returns 304 not modified cfform.swc.cfswf

 

Does anybody have an idea why this could be happening?

 

Thanks.

Performance Monitor Will Not Work

$
0
0
The checkbox for Enable Performance Monitoring under the debugging options tab in my CF8 install will not stay checked. Also when I try to use the performance monitor to monitor CF8 it does not work. Any ideas?

How to find first and last day of previous month?.

$
0
0
Based on current month, I want to find start and end day of previous month.
For example,
For august, Start date is July 1st and End date July 31st.

How can i get first of previous month as start date and last day of the previous month as end date?.


Same way,
i want to find start date of current month and end date of next month.
Example:
For august,
i want to get start date, august 1st and end date : september 30.

How can i do this from current date or now().


I am looking for best and easy way to find start and end dates..

Thanks

Coldfusion 2018 - Error Executing Database Query

$
0
0

 

Hello,

   I am using Coldfusion 2018 with Oracle Database. One of my pages in the application gives me an error as shown below

How can this be resolved ?   I am not getting the same error on Test server where the same version of Cold fusion 2018 is installed.

Thanks

IQ

 

Error Executing Database Query.

  ORA-01858: a non-numeric character was found where a numeric was expected   
  The error occurred in C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 134
Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 1
Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 134
Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 1
132 :        and dd.data_date = TO_DATE(<cfqueryparam 133 :                                   value="#time1#" 134 :                                   cfsqltype="VARCHAR" 135 :                           maxlength="28">,'YYYY/MM/DD hh24') 136 :        WHERE lu.IPN in (304305,304350,304354,304352,304309,304310,304311,304312, 304313, 304314)

and dd.data_date = TO_DATE(<cfqueryparam

133 : value="#time1#"

134 : cfsqltype="VARCHAR"

135 : maxlength="28">,'YYYY/MM/DD hh24')

136 : WHERE lu.IPN in (304305,304350,304354,304352,304309,304310,304311,304312, 304313, 304314)

 

How to create multiple datasources in application.cfc

$
0
0

I am using ColdFusion 11 and having an issue creating data sources to more then one database.

The application works when I have one data source in the application.cfc, but when I add a second data source the second one does not work and I receive an error "Datasource main_db2 could not be found". 

 

Can anyone provide me with sample code on how to set up two or more data sources using application.cfc ?

 

 

Current code that works for one data source in application.cfc.

 

// Application.cfc
component {
        this.name = "DSNTest";
        this.datasources = {
                main_db1 = {
                    database = "CUS124",
                    host = "C008945DE.us.int444.com\WWGRRD06",
                    driver = "MSSQLServer",
                    username = "abc123x",
                    password = "password123" }
                };

   this.datasource = "main_db1";
   }

Error Executing Database Query

$
0
0

I have a web application written in CF8 with Oracle 11g as the back end. This application has been used very often for more than 6 years. Currently I am moving to CF10 and did only a little modification to the CF codes. When I ran the new application in my test server, everything seems to be working just fine except when it calls an Oracle Package. This action produces an error:  Error Executing Database Query The strange thing is everything work before and after calling the procedure, I tested using cfabort This Oracle Package is still working in production server (CF8)  but not when it is called by CF10. My question is: Is there any changes for CF10 when calling a procedures? or is there any hotfix that I'm not aware of? The code is as follow:   SELECT case trim(to_char(SYSDATE, 'DAY')) WHEN 'MONDAY' then '1' else '2' end AS TodaysDate                 from dual     

            SELECT Count(other_id) AS NoRecFound     FROM gl_dup_ids_ssns     WHERE Trim(create_date) = 

            SELECT Count(other_id) AS NoRecFound     FROM gl_dup_ids_ssns     WHERE Trim(create_date) =         CF codes to Stop the process and email admin                                                             

              Error Executing Database Query shows up when it hit to run cfstoredproc. The codes are exactly the same as in CF8, this template was not modified. Exceptions 14:03:53.053 - Database Exception - in /home/space/users/www/GL/glproc.cfm : line 93     Error Executing Database Query. 


How to disable http TRACE method in jetty 9.4?

$
0
0

Coldfusion 11. I use server monitoring, which is configured on jetty.port.How to disable http TRACE, OPTIONS methods on jetty.port?

Running CF in distributed mode with IIS inside Docker Container

$
0
0

We are moving CF applications to Docker containers from Windows Server 2016 servers. We are using Windows authentication so have to rely on IIS for the webserver. I am trying to configure the IIS with 64bit version of isapi_redirect.dll under mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 but getting the following error:

 

HTTP Error 500.0 - Internal Server Error

Calling LoadLibraryEx on ISAPI filter "C:\ColdFusion\config\wsconfig\1\isapi_redirect.dll" failed

 

Error details in Win Events:

TimeCreated                     Id LevelDisplayName Message

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

8/7/2019 8:29:30 PM           2268 Error            Could not load all ISAPI filters for site 'DEFAULT WEB SITE'.  Therefore site startup aborted.

8/7/2019 8:29:30 PM           2214 Error            The HTTP Filter DLL C:\ColdFusion\config\wsconfig\1\isapi_redirect.dll failed to load.  The data is the error.

 

isapi_redirect.properties file has the following contents:

extension_uri= /jakarta/isapi_redirect.dll

log_file= C:\ColdFusion\config\wsconfig\1\isapi_redirect.log

log_level= info

worker_file= C:\ColdFusion\config\wsconfig\1\workers.properties

worker_mount_file= C:\ColdFusion\config\wsconfig\1\uriworkermap.properties

iis_buffer_enable= true

auth_complete= 1

iis_skip_custom_errors_enable= false

 

The connector is not creating any logs. The connector and configuration work fine on the Win2019 host but never inside the container. I have tried the tomcat connector and it's working fine just the CF connector is not working. Any help would be highly appreciated.

An error occurred during service invocation

$
0
0

I am seeing a lot of "An error occurred during service invocation" errors for Flash Remoting calls in our Win2003 IIS6 CF8ent server. In IIS request log those Flash Remoting calls show 302 HTTP status.

 

Does anyone have any idea what is causing this error or how I could fix this?

RDS "For input string" Error

$
0
0

I have ColdFusion 11 U4 running as a Amazon EC2 instance from Adobe's Windows AMI.

 

I am trying to connect via ColdFusion Builder 3 (mine) and ColdFusion Studio (client's). At first I got the dreaded 404 error, so I added in /CFIDE/main/ide.cfm as an empty file so IIS would find it.

 

Now the error has changed to: 'Unable to contact the RDS Server... For input string: ""' in CF Builder.

 

In ColdFusion Studio the error was "server operation failure". After debugging was turned off it changed to "unhandled error, use logging enabled clients if possible."

 

I had HTTP filter restrictions in place for CFIDE directory stuff, but removed all that, no change. I have also tried all three options for user authentication for RDS.

 

I also tried it on my local machine but after I resolved the 404 error I get a 405 error for method not allowed. So that's no help either.

 

Here's the settings:

Description: {client name}

Host name: {IP Address}

Port Number: 80

Timeout: 30s

Context Root: empty

User Name: {user name}

Password: {password}

 

Thanks in advance.

Handler "cfmHandler" has a bad module "IsapiModule" in its module list

$
0
0

I'm trying to install the Developer version of ColdFusion using IIS... I have all the proper things turned on for Windows Install - ASP (all versions) CGI, etc.  Using a local IP will read regular html files - they load and display properly.  The cfm handlers appear to be in place and in the correct directories but I am still getting the error above.

 

HELP!  Thanks in advance.

 

 

Capture.JPG

Multiple CF Standard, single SOLR Collection

$
0
0

We want multiple CF Standard servers to use the same index for searching.  But if we try to make multiple CF servers use the same SOLR collection, it'll bet corrupted or CF Ad Ons Service stops running.

 

- Is it possible for multiple CF Standard servers to use a single SOLR collection hosted on a file server?

 

- If not, can one CF server be made into the main search engine and have other CF servers point to it for search via some API?

determining how many Tuesdays there are in a month

$
0
0

I have a date/time column named date_entered. I am trying to query hom many Tuesdays form any given month that have been entered, such as determining how many Tuesdays are in the month of April.

 

I tried using

<CFQUERY NAME="update" datasource="#application.database#">
select date_entered
from quarterly
where Month(date_entered) = 4 and dayofweek(date_entered) = 3
</cfquery>

 

Then I was trying to use #update.recordcount# to give me the amount of Tuesdays for that month.

 

but I keep getting an error that date_entered is undefined.

Any ideas why?


CF 2018 Admin Console Shows Indestructible Search Bar

$
0
0

When I login to CF 2018 admin console and this shows up... The close button is not working, neither search nor close it. Restart WebLogic server and reopen console both are not helpful. How to fix this? I never have this issue using CF console before this.

cf.PNG

Downloading Adobe ColdFusion 16 (broken link error)

$
0
0

Hi,

 

I am trying to download the trail for Adobe ColdFusion 16, but when I fill out the information for which version I want to download (32-bit | English) I get this broken link error.

 

It says to send an email to report a broken link, but there is none available for me to use to contact Support.

 

adobe_error.PNG

animate cc and data

$
0
0

Can animate cc receive data from a server via network socket.

ColdFusion won't display unicode (utf-8) characters

$
0
0

I have a very basic page with some unicode characters in it. ColdFusion won't properly display them. If I resave the page as .html (so the coldfusion server doesn't process it), the characters display fine.

 

Below is my page. Notice that the charset is set to utf-8.

 

I'm using Dreamweaver CS5.5. Running IIS 7 and CF 9.

 

The text "why isn’t this working" has a smart apostrophe that DOES NOT DISPLAY PROPERLY when run through CF. I've searched around and all I see is that CF has unicode "turned on by default" but no where can I find where to make sure it is set.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Untitled Document</title>

</head>

 

 

<body>

why isn’t this working?

</body>

</html>

cfhttp and setting the content-type for a request

$
0
0

Hi,

 

I am trying to set the content-type for a cfhttp request like this (on coldfusion 9):

 

<cfhttp redirect="no" method="get" timeout="120" url="http://10.0.0.1/test2.cfm">

    <cfhttpparam type="HEADER" name="Content-Type" value="application/json; charset=utf-8">

</cfhttp>

 

// coding on test2.cfm:

<cfset x = GetHttpRequestData()>

<cfdump var=#x#>

 

// Output on test2.cfm

 

content [empty string]
headers
struct
Accept-Encoding deflate, gzip, x-gzip, compress, x-compress
Connection TE
Host 10.0.0.1:80
Proxy-Connection close
TE trailers, deflate, gzip, compress
User-Agent ColdFusion
X-REWRITE-URLhttp://10.0.0.1:80/test2.cfm
method GET
protocol HTTP/1.1

 

As you can see no content-type is send through. I also tried the sniffer.exe:

 

GET http://10.0.0.1:80/test2.cfm HTTP/1.1

Host: 127.0.0.1

Proxy-Connection: close

Connection: TE

TE: trailers, deflate, gzip, compress

User-Agent: ColdFusion

Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress

 

Here you can also see that no content-type was passed through. The sniffer should report back

 

GET http://10.0.0.1:80/test2.cfm HTTP/1.1

Host: 127.0.0.1

Proxy-Connection: close

Connection: TE

TE: trailers, deflate, gzip, compress

User-Agent: ColdFusion

Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress

Content-Type: application/json; charset=utf-8

 

But is does not, what do i need todo to set the content-type in a cfhttp request.

 

Kind regards,

Nebu

Viewing all 14291 articles
Browse latest View live


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