CGI.SERVER_NAME on shared hosting

View: New views
3 Messages — Rating Filter:   Alert me  

CGI.SERVER_NAME on shared hosting

by Dave @ VitalPodcasts.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hey Guys,

I have a client that hosts their site on HostMySite.com.  recently
they have been playing around with server names and such, and I think
it messed with the CGI scope, there fore messing up the farcry Admin.


In the application.cfm file in Admin we see this code...
<cfinclude template="/farcry/#stApps[cgi.server_name]#/www/
Application.cfm">


As I can tell cgi.server_name needs to be Farcry_min ( or whatever you
called yours ).  I can also tell that there are many fallbacks to
retrieve the application.cfm file from the project folder...

However if I cfabort after the block of try and catches of the admin
trying to load the application.cfm file... the site just hangs and
hangs until a ROOT CAUSE: java.lang.StackOverflowError  error is
thrown.

So somewhere, somehow it is looping forever...


What is the standard method for loading the Applicaiton.cfm from the
project folder, and has anyone seen something like this?

Thanks,
Dave




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To post to this group, send email to farcry-dev@...
To unsubscribe from this group, send email to farcry-dev-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CGI.SERVER_NAME on shared hosting

by Dave @ VitalPodcasts.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ok I figured this out...

Basically all the checks to load the project folder application.cfm
file failed until it reached the check to include template="/farcry/
application.cfm"  as I stated in my previous post, I am already in
that file trying to load another file... Boom... instant Infinite
loop.

I'm sure that line is in there for certain deployments, and it is why
it is one of the last checks before complete fail...

So I chalk this up to the Hosting company changed some server settings
which affected the CGI scope, or changed the success of a different if
statement and therefore the admin tried as a last resort... and boom
failed.

This also occurs on OnRequestEnd.cfm.  So if you start seeing infinte
loops and java stackTrace dumps... you might be dealing with some
changed settings that is no longer making the 6 or so checksin on the
admin side succeed.

Thanks,
Dave


On Apr 23, 12:41 pm, McGraw_WV <david.mcg...@...> wrote:

> Hey Guys,
>
> I have a client that hosts their site on HostMySite.com.  recently
> they have been playing around with server names and such, and I think
> it messed with the CGI scope, there fore messing up the farcry Admin.
>
> In the application.cfm file in Admin we see this code...
> <cfinclude template="/farcry/#stApps[cgi.server_name]#/www/
> Application.cfm">
>
> As I can tell cgi.server_name needs to be Farcry_min ( or whatever you
> called yours ).  I can also tell that there are many fallbacks to
> retrieve the application.cfm file from the project folder...
>
> However if I cfabort after the block of try and catches of the admin
> trying to load the application.cfm file... the site just hangs and
> hangs until a ROOT CAUSE: java.lang.StackOverflowError  error is
> thrown.
>
> So somewhere, somehow it is looping forever...
>
> What is the standard method for loading the Applicaiton.cfm from the
> project folder, and has anyone seen something like this?
>
> Thanks,
> Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To post to this group, send email to farcry-dev@...
To unsubscribe from this group, send email to farcry-dev-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CGI.SERVER_NAME on shared hosting

by Scott Talsma-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


This is an issue I have had a number of times w/ Farcry v3.  Usually, it is
a problem w/the projects application.cfm.  It includes
/config/serverSpecificVars.cfm.  If you have any code in there that throws
an error, the error handling in /facry/Application.cfm tosses you into an
infinite loop.  I finally added a try/catch in serverSpecificVars.cfm that
aborts if we cannot correctly startup.

-----Original Message-----
From: farcry-dev@... [mailto:farcry-dev@...] On
Behalf Of McGraw_WV
Sent: Thursday, April 24, 2008 8:55 AM
To: farcry-dev
Subject: [farcry-dev] Re: CGI.SERVER_NAME on shared hosting


Ok I figured this out...

Basically all the checks to load the project folder application.cfm file
failed until it reached the check to include template="/farcry/
application.cfm"  as I stated in my previous post, I am already in that file
trying to load another file... Boom... instant Infinite loop.

I'm sure that line is in there for certain deployments, and it is why it is
one of the last checks before complete fail...

So I chalk this up to the Hosting company changed some server settings which
affected the CGI scope, or changed the success of a different if statement
and therefore the admin tried as a last resort... and boom failed.

This also occurs on OnRequestEnd.cfm.  So if you start seeing infinte loops
and java stackTrace dumps... you might be dealing with some changed settings
that is no longer making the 6 or so checksin on the admin side succeed.

Thanks,
Dave


On Apr 23, 12:41 pm, McGraw_WV <david.mcg...@...> wrote:

> Hey Guys,
>
> I have a client that hosts their site on HostMySite.com.  recently
> they have been playing around with server names and such, and I think
> it messed with the CGI scope, there fore messing up the farcry Admin.
>
> In the application.cfm file in Admin we see this code...
> <cfinclude template="/farcry/#stApps[cgi.server_name]#/www/
> Application.cfm">
>
> As I can tell cgi.server_name needs to be Farcry_min ( or whatever you
> called yours ).  I can also tell that there are many fallbacks to
> retrieve the application.cfm file from the project folder...
>
> However if I cfabort after the block of try and catches of the admin
> trying to load the application.cfm file... the site just hangs and
> hangs until a ROOT CAUSE: java.lang.StackOverflowError  error is
> thrown.
>
> So somewhere, somehow it is looping forever...
>
> What is the standard method for loading the Applicaiton.cfm from the
> project folder, and has anyone seen something like this?
>
> Thanks,
> Dave




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To post to this group, send email to farcry-dev@...
To unsubscribe from this group, send email to farcry-dev-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---