Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Server Administration / April 2009



Tip: Looking for answers? Try searching our database.

CF Mapping not working on linux

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bert.d - 03 Apr 2009 20:01 GMT
We installed CF8 on linux, and my app ran fine. Then *something* happened, and
now CF mappings are not getting recognised. I am not the admin for the box, and
unfortunately there was a delay betwen it getting broken and me being able to
look into it. Subsequently, no-one can remember doing anything which might have
caused this.

I have in index.cfm which includes a test include.cfm file using a CF mapping.
But instead of including the include.cfm the index.cfm includes itself.

Here's my mapping, which points to the webroot:
[b]/testmapping1        
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-something-/ [/b]

The contents of the webroot:[b]
[bdawson@cfusion-tng -wvr-en-something-]$ pwd
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-something-
[bdawson@cfusion-tng -wvr-en-something-]$ ls -l
-rwxrwxrwx 1 bdawson likewise   59 Apr  2 09:53 Application.cfc
-rwxrwxrwx 1 bdawson likewise   59 Apr  2 09:53 include.cfm
-rwxrwxrwx 1 bdawson likewise  301 Apr  2 10:26 index.cfm
[/b]
Application.cfc and include.cfm both contain the following:[b]
<br>>>><br>
<cfoutput>#getcurrenttemplatepath()#</cfoutput>
<br><<<<br>[/b]

index.cfm has:[b]
<cfoutput>

<cfparam name="request.counter" default="0">

<cfset request.counter = request.counter + 1>

<cfif request.counter GT 3>
    <br>Aborted in #getcurrenttemplatepath()# to prevent infinite loop
    <cfabort>
</cfif>

<br>>>><br>
#getcurrenttemplatepath()#
<br>
<cftry>
    include #request.counter#: <cfinclude template="/testmapping1/include.cfm">
    <cfcatch><cfdump var="#cfcatch.message#"></cfcatch>
</cftry>
<br><<<<br>

</cfoutput>
[/b]

And here's the output i get:
[b]

/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/Application.cfc
<<<

/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
include 1:

/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
include 2:

/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
include 3:
Aborted in
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm to
prevent infinite loop
[/b]

It looks like the file is being not found, but in stead of throwing an
exception it is including the index.cfm

If I change the cfinclude to be <cfinclude
template="testmapping1/include.cfm"> then it throws a file not found exception
as expected.
GArlington - 06 Apr 2009 13:40 GMT
> We installed CF8 on linux, and my app ran fine. Then *something* happened, and
> now CF mappings are not getting recognised. I am not the admin for the box, and
[quoted text clipped - 54 lines]
>  >>>
>  /home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
It looks like you have some very strange rewrite rule somewhere...
>  include 1:
>  >>>
[quoted text clipped - 10 lines]
>  It looks like the file is being not found, but in stead of throwing an
> exception it is including the index.cfm
You did NOT specify your index.cfm as (global?) error handling
template, did you?

>  If I change the cfinclude to be <cfinclude
> template="testmapping1/include.cfm"> then it throws a file not found exception
> as expected.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.