Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all 6243 articles
Browse latest View live

Do we use yum to groupinstall X Window System to enable PDF in CF11

$
0
0

Hi

this is my first install on a linux box, and we are intending to use PDF features of CF11

my linux server area has asked the following question:

 

after searching around a bit, I think Adobe wants yum -y groupinstall "X Window System" for that one.  Could you verify this with Adobe tech support?

 

so here i am.

 

anything else anyone wants to add would be greatly appreciated...

 

Ken

 

 

[i love CF, been using it since its first version at macromedia...  perhaps its time i plug into the community for jobs, etc??]


Encrypt Decrypt Problem

$
0
0

I am suddenly getting an error in a script that has been working for years where I encrypt an html file so that is can't be accessed via a browser and then decrypt it for later reference

 

The encrypting scheme is very basic:

<cfset archivefile="<HTML><BODY>" & paynowbutton & invoiceheader & invoicebody & "</body></html>">

<cfset tempinvoice=encrypt(archivefile,session.key)><!---session.key is a 4 digit PIN number--->

<cffile    action = "write"  file = "#application.LocalRoot#\invoices\#brokerid#_invoice.html"  output = "#tempinvoice#">

 

THEN TO UNENCRYPT

<cffile action="read"    file = "#application.LocalRoot#\invoices\#form.brokerid2#_invoice.html"  variable="invoice">

<cfset invoice=decrypt(invoice,session.key)>

 

THEN THE ERROR WHICH HAS BEEN INCREASING IN FREQUENCY

An error occurred while trying to encrypt or decrypt your input string: The input and output encodings are not same


ANY IDEAS??

I am receiving the following error: "cfgridapplet.class not found" when trying to use my website that is coded with ColdFusion.

$
0
0

What is the problem?  Java version maybe?  IE Version?

Does anyone have any troubleshooting hints?

 

I am not a ColdFusion Programmer, but am pretty tech savvy.

Any help is greatly appreciated.

server file extensions .css

$
0
0

Working with coldfusion developer edition.

 

Any file extension, such as .html or .css, throws a 404 error.

 

Of course, I need to be able to read a .css file into a template, so how do I do that?

What the heck is Adobe thinking?

$
0
0

I’ve been a long-time advocate for ColdFusion. There have been several threads prematurely referencing ColdFusion’s demise that I have chimed in. But now in dealing with our Adobe account management representative, I am left dumbfounded.

 

Background: We have purchased and are using 40+ Standard CF licenses. These license purchases and use started with CF5 when Allaire still owned CF and have been upgraded to mostly CF9 but just starting CF11 -- and then the wheels fell off.

Like idiots, we wanted to determine if Enterprise pricing might now work for us as were starting to incorporate a VM environment (from an all pizza box environment). In asking some simple questions our sales rep is now claiming that we are violating the acceptable usage portion of their license agreement:

 

2.6.4 Prohibited Use. Except as expressly authorized through a separate custom hosting agreement, Licensee is prohibited from: (a) using the Software on behalf of third parties; (b) renting, leasing, lending, or granting other rights in the Software including rights on a membership or subscription basis; (c) providing use of the Software in a computer service business, third party outsourcing facility or service, service bureau arrangement, time sharing basis, or as part of a hosted service; or (d) using any component, library, or other technology included with the Software other than solely in connection with its use of the Software. For more information about how to obtain a custom hosting agreement, please see: http://www.adobe.com/go/ColdFusion_Hosting_Agreement.

 

Apparently, since our customers are businesses, CF cannot be used -- any business that sells products or services to other businesses is considered a service bureau -- EVEN IF THEY ARE NOT A HOSTING PROVIDER. This requires a custom hosting provider agreement in place even if you don’t provided hosting services, and I’m assuming at additional “negotiated” fees -- but we have not got that far because we’re not a hosting provider.

 

Right now I’m actively researching ColdFusion alternatives which is very disappointing.

 

I’ll post updates if this thread does not get deleted but for now, CF users beware: If you sell to businesses you are probably in violation of the Adobe license agreement -- at least our sales rep’s view.

Sigh...

When serving a file with CFcontent, all processing stops

$
0
0

I'm creating a PDF with cfpdf, then using cfhttp, cfheader, and cfcontent to open up a save dialog.  How do I get the page to move to another page after the save dialog is shown?  As soon as I add cfcontent to the page, all other processing is stopped (the save dialog pops up, but I can't create a button to move to the next page, or move there automatically).

 

<cfhttp url="http://XXX.com/#variables.GeneratedPDFName#"

        method="get"

        getAsBinary="yes" />

 

<cfheader name="Content-Disposition" value="attachment; filename=File.pdf" />

<cfcontent type="application/pdf" variable="#cfhttp.fileContent#" />

 

Thanks

Coldfusion 10 ODBC Services

$
0
0

I have a server with an installation of ColdFusion 10 however the ODBC Services did not get installed with the initial installation. Is there a simple, manual method for installing ODBC Services without uninstalling CF and then reinstalling with that option selected? I have tried running the installation over the current one but with the Configure Installer window, it has Server Configuration greyed out as it has found a current installation. It then gives an option of either EAR file or WAR file in the JEE configuration. Not sure which to choose so that's why I ask the question of a manual install.

 

Thanks in advance. This is running on a Windows Server 2008 R2 64-bit box.

 

Dave

After cfcontent

$
0
0

Hello,

I raisethe discussion onCFCONTENT.

Indeed,after the downloadof the object,I wish I couldputa message of thanks.

Do you have a solution ?for now,CFCONTENTignore otherlines of code.

Thank you


ODBC 32Bit cannot connect to Colfusion 2016

$
0
0

Hi All,

 

 

I have installed Colfusion 2016 in my Windows 10 pc, and I have some problem setting the data source on ODBC 32Bit.

 

 

Regards,

 

Sonny

AutoSuggest Issue

$
0
0

We just upgraded to CF 11 from CF 9 and since the upgrade a custom built AJAX search feature does not work correctly- the SQL works as expected, and running AJAX debugger outputs the expected returned values yet when i start to type the auto suggest does not populate the correct information

 

For example on CF 9 if i search Form i am returned over a dozen results that either start, end , or have the word form in them, in CF 11 i get nothing back- i feel like this has to be a issue with the autosuggest as the debugger is returning the values, but not displaying the output

Thank you!

 

cf119.PNG

 

 

below is the code and the debug:

 

 

AJAX DEBUGGER - CF 11

 

 

info:http: Invoking CFC: /LinksFinder.cfc , function: GetURL , arguments: {"search":"form"}

info:http: CFC invocation response: //" Risk Downtime Form,2015 Plan Information,901 Upgrade Information,Accessing ESS From Home,Appeal Form,Authorization for Disclosure of Protected Health Information,Benefit Enrollment Tip Sheet,Benefits Information,Best Of Southwest FAQ,Blood Transfusion Documentation,Blue Sky Green Fields,Cafeteria Menu,CarePoints Information,CDC Parasitic Reference,Conference Room Instructions,Conference Room Schedule,Contact Info \/ Privileges,Corp Compliance FAQs,Definitions,Drug Information Service,Emergency Department Forms,Employee Mammogram Form,Employee Self Appraisal,Employee Self Service,Equipment Reference Material,ESA REMS Form,Exit Interview Information,Exposure Forms Non-Associate,Falls Incident Investigation,FDA MedWatch Voluntary Reporting Form,Fisher Scientific,Flu Clinic Dates,For Patients,FT Exempt PAM Instructions,FT Exempt PAM Tip Sheet,Glossary of Terms,Guidelines for Establishing A New Cost Center,Health Information Release Form,Hospital Forms,Hospital Formulary - Formulary,IBS Office Supplies,Infection Control Manual,Infection Control Manual,Info Sheets,Interventional Preferences Maintenance,IPOC - Interdisciplinary Plans of Care,JC Findings,Kronos System Access Form,Leave\/Disability Information For Employees,LifeWorks,Manager Self Service Manual,Med Watch FAQs,Medical Staff Monthly Calendar,Non-Grandfathered Healthcare Reform Preventive Services,Office Compatibility Pack,Order Form - Administrative,Order Form - Clinical,Order Form - Physical Therapy,Order Uniforms,OrderSet Reference Guides,PAH Patient Placement Flow Control,Performance Manager,Phase 1 Wayfinding Map,Phase 2 Wayfinding Map,Phase 3 Wayfinding Map,Premier Safety,Prescription Refill,Printing Certificate,Professional Development,Pt Relations Downtime Form,Quality Flyers,Quick Reference,Reference Guide - Investigation,Reference Guide - Pt Relations,Reference Guide - Reporting,Reference Manuals,Referral Bonus Listings,Registration Information,Report Infection Control Infraction\/Concerns,Report Violation \/ Follow Up,Resident City Tax Form,Safety Climate Survey,Safety Manual Policies,Scheduling Change Form,Scheduling Encumbrance Form,Seidman Forms,SSO Self-Service,Standards of Performance,TIGR StaffConnect,UH Radiology Radflow,W9 Form,Workforce Timekeeper"

info:http: HTTP GET /LinksFinder.cfc?method=lookupLink&_cf_ajaxproxytoken=&returnFormat=json&argumentCollecti on=%7B%22search%22%3A%22f%22%7D&_cf_nodebug=true&_cf_nocache=true&_cf_rc=0

info:http: Invoking CFC: /LinksFinder.cfc , function: lookupLink , arguments: {"search":"f"}

info:widget: Fetching data for autosuggest id: PageName , current value: 'f'

info:LogReader: LogReader initialized

info:global: Logger initialized

 

 

 

CF 11 CODE

<td colspan="2"><!---Quick Search Feature ---><cfform name="LinkFinder" method="post" format="html">

      <cfinput type="Text"

  name="PageName"

         id="PageName"

  autosuggest="cfc:LinksFinder.lookupLink({cfautosuggestvalue})"

  maxlength="250"

  style="background-color:C1E0FF;"

         size="19">

      <input type="submit" name="Go" id="Go" value="Go" OnClick="Jump(); return false;" >

      <cfinput type="text" name="test" bind="cfc:LinksFinder.GetURL({PageName})">

      </cfform><!--- End of Quick Search ---></td>

 

 

 

CFC FILE

 

<cfcomponent>

<cfset ds="Links">

<!--- Function to get the web pages from the database. Used for the Auto-Suggest --->

<cffunction name="lookupLink"

  access="remote"

  returntype="String"

  hint="Lookup method for Ajax auto-suggest">

  <cfargument name="search"

  type="any"

  required="false"

  default="">

<cfset var data="">

 

 

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

SELECT PageName

FROM dbo.IntranetUpdated

WHERE UPPER(PageName) LIKE UPPER('%#ARGUMENTS.search#%')

ORDER BY PageName

</cfquery>

 

 

<cfreturn ValueList(data.PageName)>

 

 

</cffunction>

<!--- Function to get the URL from the database. Populates the hidden text box on the page and used in Javascript to go to the uRL --->

<cffunction name="GetURL"

  access="remote"

  returntype="String"

  hint="Gets URL of Page - used for binding">

  <cfargument name="search"

  type="any"

  required="false"

  default="">

<cfset var data="">

 

 

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

SELECT URL, PageName

FROM dbo.IntranetUpdated

WHERE UPPER(PageName) LIKE UPPER('%#ARGUMENTS.search#%')

ORDER BY URL

</cfquery>

 

 

<cfreturn data.URL>

</cffunction>

 

 

</cfcomponent>

Is it possible to manually set HTTP_REFERER?

$
0
0

Does anyone if it is possible to manually set the CGI.HTTP_REFERER? If so, how do I accomplish it?

cfgrid in model-glue form scope is empty

$
0
0

I have a coldfusion 10 model-glue application with an html cfgrid. select mode is set to row. Submitting the form to the action page the form scope is empty. The same code works in CF 8. It's a win 2008 r2 server, 64 bit.

 

I'm out of ideas, anyone encounter this?

 

Thanks.

Upgrade CF10 to CF11 - Serial/Covered under maintenance contract

$
0
0

Hi All,

 

I am fairly new to the Adobe community though I have been the administrator for our CF10 Instances for a while and I update it every once in a while.

I have been tasked by my management to seek out upgrading our CF10 environments to CF11.  We do have a yearly maintenance contract in place with Adobe for ColdFusion.

Do you know if the standard maintenance contract includes free upgrades or must we purchase new versions or is each contract "unique?"

 

Also, the environments were upgraded from CF9 to CF10 a couple years back.  When I upgrade to CF11, would I need to request a new serial number from Adobe through our software liason or would it accept our CF10 license and update it to the new one after I migrated the environment?

 

Thanks in advance!

Ben Compton

National Security Technologies, LLC

A contractor to the US Department of Energy

Coldfusion 11 for the developer

$
0
0

Hello,  Can I get a free version of ColdFusion 11 for download? There is a developer version link on the web. Where I click it. It is said 30 days trail.

Why would the variable "Error" be undefined in my error handling document?

$
0
0

I'm encountering an issue where I get, what appear to be, frequent exception errors.  Each says "Variable 'Error' is undefined" in line 73 of my application.cfm -- which is the same line that I'm calling for `<cfdump var="#error#" label="Error">`.

 

That cfdump is being sent to me via email so I can address errors, but the error message really doesn't reveal anything helpful, because it appears that the coldfusion variable "error" (a built-in variable) isn't being established.

 

I'm using application.cfc and error.cfm as my two main files to handle errors and can attach the code, but wanted to know if someone had a possible solution that was obvious based on what I've shared.

 

Thanks for your help.


Cf 9.0.2 multi server config, IIS site is using wrong connector, how to change the connector to point to its own CF instance

$
0
0

Hello,

Yesterday I found that an IIS website that is supposed to be connected to its own CF instance is actually connected to another CF instance. Our configuration is this

Windows Server 2008 R2, Coldfusion 9.0.2 Multi server Enterprise edition, IIS 7

Coldfusion instances: P1, P2,  V1

Clusters: Primary1: contains P1 & P2

IIS website site1 is connected to Cluster Primary1

IIS website site2 is  connected CF instance V1

 

I stopped CF instance V1 but the IIS website V1 was still up and running. After much digging I found that website V1 is actually connected to CF instance P1, not CF instance V1. I used the web config tool to connect site1 to CF instance V1. In IIS the JWildCardHandler for site1 points to \JRun4\lib\wsconfig\3\jrun_iis6_wildcard.dll. JWildCardHandler for site2 points to the same directory \JRun4\lib\wsconfig\3\jrun_iis6_wildcard.dll. Here in lies my dilemma. How do I get site2 JWildCardHandler to point to its own folder under \JRun4\lib\wsconfig, say 14 instead of 3. I do not want to use the web config tool becauseI do not know if it will remove the folder ...\webconfig\3 if another site is still using it. I have seen the web config tool remove the folder when you remove that connector in the tool.

 

So I thought I would try to configure the connectors manually. This is what I did

copy folder wsconfig\3 to wsconfig\14

in ...\wsconfig\wsconfig.properties - made sure site2 existed and referenced CF instance V1

...\wsconfig\14\jrun_iis6_wildcard.ini

           serverstore=/JRun4/lib/wsconfig/14/jrunserver.store

           bootstrap=127.0.0.1:51007 - 51007 is the proxy port that JRun Management Console says is for CF instance V1

...\wsconfig\jrunserver.store

           proxyservers=    (this variable in folder #3 is set to the proxy ports for P1 & P2)


I then went into IIS and changed site2's JWildCardHandler to \JRun4\lib\wsconfig\14\jrun_iis6_wildcard.dll instead of \JRun4\lib\wsconfig\3\jrun_iis6_wildcard.dll. After restarting IIS neither of the sites site1 nor site2 came up. I went back in and reverted site2's JWildCardHandler back to \JRun4\lib\wsconfig\3\jrun_iis6_wildcard.dll and they both came up. I think I restarted CF both times but really forget as I was in a bit of panic mode.


Does this sound like it should work? Does anyone know of any files that I missed when trying to configure site2 to point to CF instance V1? Any ideas are appreciated.


Joe


After upgrading to CF10, the selected row of my cfgrid is no longer passed on form post.

$
0
0

I have a cfform which contains a cfgrid and prior to the 9 to 10 update, upon submission of the cfform, the selected row of the grid was passed/posted to my form action page as:

 

__CFGRID__gridForm__renewalGrid

 

This contained all the data from the selected row, I.e.:

 

__CFGRID__COLUMN__=PROJECTID; __CFGRID__DATA__=T01081002AP; __CFGRID__COLUMN__=APPLICATIONS; __CFGRID__DATA__=PQFD; __CFGRID__COLUMN__=OWNERUID; __CFGRID__DATA__=HT2008; __CFGRID__COLUMN__=TEAM; __CFGRID__DATA__=Roberts; __CFGRID__COLUMN__=ROLE; __CFGRID__DATA__=AASBOAPMX; __CFGRID__COLUMN__=REGION; __CFGRID__DATA__=Southwest; __CFGRID__COLUMN__=EXISTING; __CFGRID__DATA__=K8045F; __CFGRID__COLUMN__=SOD; __CFGRID__DATA__=0; __CFGRID__COLUMN__=INITIALEMAILDATE; __CFGRID__DATA__=01/28/2013; __CFGRID__COLUMN__=MESSAGEDATE; __CFGRID__DATA__=; __CFGRID__COLUMN__=SECONDEMAILDATE; __CFGRID__DATA__=; __CFGRID__COLUMN__=ESCALATIONDATE; __CFGRID__DATA__=; __CFGRID__COLUMN__=COMPLETEDBY; __CFGRID__DATA__=TH2878; __CFGRID__COLUMN__=COMPLETIONDATE; __CFGRID__DATA__=02/06/2013; __CFGRID__COLUMN__=MONTHPULLED; __CFGRID__DATA__=Jan2013; __CFGRID__COLUMN__=TOTALITEMS; __CFGRID__DATA__=2; __CFGRID__COLUMN__=RELIEVINGPSA; __CFGRID__DATA__=; __CFGRID__COLUMN__=MODIFIEDBYTS; __CFGRID__DATA__=02/06/2013; __CFGRID__COLUMN__=MODIFIEDBY; __CFGRID__DATA__=T228Y8; __CFGRID__COLUMN__=CREATEDBY; __CFGRID__DATA__=KV3M36; __CFGRID__COLUMN__=CREATEDTS; __CFGRID__DATA__=01/28/2013; __CFGRID__COLUMN__=NEWSA; __CFGRID__DATA__=; __CFGRID__COLUMN__=DELEGATESTATUSNOTE; __CFGRID__DATA__=Access; __CFGRID__COLUMN__=STATUS; __CFGRID__DATA__=Completed; __CFGRID__COLUMN__=DATATYPE; __CFGRID__DATA__=Appl New

 

 

After upgrading to CF10, and with no changes to the code, performing this same process, __CFGRID__gridForm__renewalGrid is still passed in the form scope to my action page, but now it is empty.

 

I have not yet uninstalled CF9, so I brought it up on a different port, and I can run the same code as CF9 or CF10 and watch... in 9 the selected row is passed, in 10 it is empty.

 

Is this a bug? Is there a work around? Please help.

500 Error

$
0
0

Hi There,

 

Does anybody know how I can fix this? All was going great, then this happened and I don't know why.

I am running Mac OS X 10.11.3, java version "1.8.0_65" Using ColdFusion 2016 & ColdFusion Builder 2016. In the ColdFusion 2016 Builder the Launch Server Monitor & Launch ColdFusion Administrator are greyed-out, and can't be clicked on.

 

I would rather fix this instead of having to re-install ColdFusion!

Here is the coldfusion-error.log

 

Please ask anything that I might have left out.

 

Thank you,

Johnny

Screen Shot 2016-02-24 at 8.53.47 PM.png

QoQ division with zero

$
0
0

Hi All,

I have an issue with QoQ when the division is zero. I usually use nullif in oracle queries but it is not allow in QoQ.

How can I go around this issue?

Code example:

<cfquery name="qrySum" dbtype="query">

            select 'Item01' as DESCR

            <cfloop from="2011" to="2016" index="y">

                ,sum(FY_#y#)     as FY_#y#

                ,sum(COST_#y#) as COST_#y#

                ,sum(COST_#y#) / sum(FY_#y#) as PERC_#y#

            </cfloop>

            from qryItems

            group by DESCR

        </cfquery>

where for a year 2014 the sum(FY) = 0  and sum(COST)= 0

Thanks,

 

Johnny

Scheduled Task gets 403 error - Windows 2003 CF9

$
0
0

My test server is Windows 2003, IIS 6 and CF9.0.2 with SQL Server 2008.

About 3 months ago, I got some pushback from security about the ownership of the directory I had installed CF on.  So I had to change the ownership of the drive.  Not a big deal.

About 4 weeks ago, I started receiving a "Error while executing task 403 Forbidden" in the scheduler.log file every time I ran a job via the scheduler.  So, I figured it had something to do with my recent change in ownership.  I uninstalled and re-installed CF9.  Still getting the same problem.  Not a big deal I figure just a test server and I an due to upgrade in March, production is on Windows 2008, will upgrade to Windows 2012, CF11, etc. . . . . .

 

Come today and I have a production problem and I need to run a test file via scheduler.  I forgot that the scheduler is throwing "Error while executing task 403 Forbidden" when any job is running.  I go out to search the Windows logs, and low and behold, security had expired the passwords on the IUSER_machinename and IWAM_machinename accounts!  So, I have gone ahead and changed the passwords on these accounts, but still am receiving the "Error while executing task 403 Forbidden" error.  Any suggestions?  Permissions had not changed after I re-installed CF.

 

Thanks.

 

Libby H

Viewing all 6243 articles
Browse latest View live


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