Help! Strange Behavior in Production

11 views
Skip to first unread message

Richard Mueller

unread,
Feb 11, 2012, 2:10:12 PM2/11/12
to cfwh...@googlegroups.com
Hi - I just release my first Wheels app into the wild and I'm getting
an error, which I'll list below.

http://www.texassheepdogassoc.org

On a mobile device, if you take off the www. you get the error, with
it pulls up fine. However in IE9 and Safari on a desktop/Mac, it only
pulls up without the www. (http://www.texassheepdogassoc.org will not
display)

I assume this may have something to do with URLRewriting?

web.config:

<?xml version="1.0" encoding="UTF-8"?>

<!-- this file can be deleted if you're not planning on using URL
rewriting with IIS 7. -->
<!-- you can add your own files and folders that should be excluded
from URL rewriting by adding them to the "pattern" below. -->
<!-- please read the online documentation on http://cfwheels.org for
more information about URL rewriting. -->

<!-- SET ENABLED TO TRUE BELOW TO TURN ON THE URL REWRITING RULES -->

<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ColdFusion on Wheels URL Rewriting" enabled="true">
<match url="^(.*)$" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_NAME}" negate="true"
pattern="^/(flex2gateway|jrunscripts|cfide|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm)($|/.*$)"
/>
</conditions>
<action type="Rewrite" url="/rewrite.cfm/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>


here is the error:

Could not find the included template ../../root.cfm.

Note: If you wish to use an absolute template path (for example,
template="/mypath/index.cfm") with CFINCLUDE, you must create a
mapping for the path using the ColdFusion Administrator. Or, you can
use per-application settings to specify mappings specific to this
application by specifying a mappings struct to THIS.mappings in
Application.cfc.
Using relative paths (for example, template="index.cfm" or
template="../index.cfm") does not require the creation of any special
mappings. It is therefore recommended that you use relative paths with
CFINCLUDE whenever possible.

The error occurred in internal.cfm: line 433
Called from internal.cfm: line 542
Called from cfml.cfm: line 174
Called from cfml.cfm: line 27
Called from public.cfm: line 127
Called from request.cfm: line 163
Called from D:/home/texassheepdogassoc.org/wwwroot/wheels/index.cfm: line 1
Called from D:/home/texassheepdogassoc.org/wwwroot/rewrite.cfm: line 1
Called from D:/home/texassheepdogassoc.org/wwwroot/wheels/events/onrequest.cfm:
line 1

Richard Mueller

unread,
Feb 11, 2012, 2:19:03 PM2/11/12
to cfwh...@googlegroups.com
I have tried turning off URLRewriting to no avail. BTW everything
works fine in Chrome

rm

Richard Mueller

unread,
Feb 11, 2012, 2:42:32 PM2/11/12
to cfwh...@googlegroups.com
ok I was able to fix this by adding this rule:

<rule name="Redirect domain.com to www" patternSyntax="Wildcard"
stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="texassheepdogassoc.org" />
</conditions>
<action type="Redirect" url="http://www.texassheepdogassoc.org/{R:0}" />
</rule>

Richard Mueller

unread,
Feb 13, 2012, 9:05:10 AM2/13/12
to cfwh...@googlegroups.com
ok, maybe I spoke too soon. I'm still getting reports of the error
happening intermittently. Updating the web.config seemed to help on
most mobile devices. Here is the error again:

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

Could not find the included template ../../root.cfm.


Any thoughts on what this could be? I'm on 1.1.6. Should I update to .7?

Thanks!

Richard

Reply all
Reply to author
Forward
0 new messages