OK, update on this...
I think what was happening is I was getting errors that were being hidden
when trying to display the system tray toggle icon. I'm on shared hosting
and there is a variable accessed in alterType.cfc.getIconPath()
(#application.path.webroot#) that was set to the default
C:\ColdFusion8\wwwroot. This is set in the core application.cfc. I think
this just has to do with the setup of the shared server which I don't have
control over.
Anyway, the fix that I'll be submitting a bug for is in
/farcry/core/packages/farcry/alterType.cfc, add a cftry block around all of
the initial tests and to re-write the logic a bit before returning a value.
There was an error in this code:
ORIGINAL:
<cffunction name="getIconPath" access="public" output="false"
returntype="string" hint="Returns the path for the specified icon.">
<cfargument name="iconname" type="string" required="true" hint="The name of
the icon to retrieve" />
<cfargument name="size" type="string" required="true" default="48" hint="The
size of the icon required" />
<cfargument name="default" type="string" required="false"
default="custom.png" hint="The default icon to use" />
<cfset var thisplugin = "" />
<cfset var icon = lcase(arguments.iconname) />
<cfif not find(".",icon)>
<cfset icon = "#icon#.png" />
</cfif>
<cfif
fileexists("#application.path.webroot#/wsimages/icons/#arguments.size#/#icon#")>
<cfreturn
"#application.path.webroot#/wsimages/icons/#arguments.size#/#icon#" />
</cfif>
<cfif fileexists("#application.path.webroot#/images/icons/#icon#")>
<cfreturn "#application.path.webroot#/images/icons/#arguments.size#/#icon#"
/>
</cfif>
<cfloop
list="#application.factory.oUtils.listReverse(application.plugins)#"
index="thisplugin">
<cfif
fileexists("#application.path.project#/www/#thisplugin#/wsimages/icons/#arguments.size#/#icon#")>
<cfreturn
"#application.path.project#/www/#thisplugin#/wsimages/icons/#arguments.size#/#icon#"
/>
</cfif>
<cfif
fileexists("#application.path.plugins#/#thisplugin#/www/wsimages/icons/#arguments.size#/#icon#")>
<cfreturn
"#application.path.plugins#/#thisplugin#/www/wsimages/icons/#arguments.size#/#icon#"
/>
</cfif>
</cfloop>
<cfif
fileexists("#application.path.core#/webtop/icons/#arguments.size#/#icon#")>
<cfreturn "#application.path.core#/webtop/icons/#arguments.size#/#icon#" />
</cfif>
<!--- If all else fails, check to see if the icon is located under the
image root --->
<cfif fileexists("#application.path.imageRoot##arguments.iconname#")>
<cfreturn "#application.path.imageRoot##arguments.iconname#" />
</cfif>
<cfreturn
"#application.path.core#/webtop/icons/#arguments.size#/#arguments.default#"
/>
</cffunction>
NEW:
<cffunction name="getIconPath" access="public" output="false"
returntype="string" hint="Returns the path for the specified icon.">
<cfargument name="iconname" type="string" required="true" hint="The name of
the icon to retrieve" />
<cfargument name="size" type="string" required="true" default="48" hint="The
size of the icon required" />
<cfargument name="default" type="string" required="false"
default="custom.png" hint="The default icon to use" />
<cfset var thisplugin = "" />
<cfset var icon = lcase(arguments.iconname) />
<cfset var iconReturn = ''>
<cfif not find(".",icon)>
<cfset icon = "#icon#.png" />
</cfif>
<cftry>
<cfif NOT LEN(iconReturn) AND
fileexists("#application.path.webroot#/wsimages/icons/#arguments.size#/#icon#")>
<cfset iconReturn =
"#application.path.webroot#/wsimages/icons/#arguments.size#/#icon#" />
</cfif>
<cfif NOT LEN(iconReturn) AND
fileexists("#application.path.webroot#/images/icons/#icon#")>
<cfset iconReturn =
"#application.path.webroot#/images/icons/#arguments.size#/#icon#" />
</cfif>
<cfloop
list="#application.factory.oUtils.listReverse(application.plugins)#"
index="thisplugin">
<cfif NOT LEN(iconReturn) AND
fileexists("#application.path.project#/www/#thisplugin#/wsimages/icons/#arguments.size#/#icon#")>
<cfset iconReturn =
"#application.path.project#/www/#thisplugin#/wsimages/icons/#arguments.size#/#icon#"
/>
</cfif>
<cfif NOT LEN(iconReturn) AND
fileexists("#application.path.plugins#/#thisplugin#/www/wsimages/icons/#arguments.size#/#icon#")>
<cfset iconReturn =
"#application.path.plugins#/#thisplugin#/www/wsimages/icons/#arguments.size#/#icon#"
/>
</cfif>
</cfloop>
<cfif NOT LEN(iconReturn) AND
fileexists("#application.path.core#/webtop/icons/#arguments.size#/#icon#")>
<cfset iconReturn =
"#application.path.core#/webtop/icons/#arguments.size#/#icon#" />
</cfif>
<!--- If all else fails, check to see if the icon is located under the
image root --->
<cfif NOT LEN(iconReturn) AND
fileexists("#application.path.imageRoot##arguments.iconname#")>
<cfset iconReturn = "#application.path.imageRoot##arguments.iconname#" />
</cfif>
<cfcatch></cfcatch>
</cftry>
<cfif NOT LEN(iconReturn)>
<cfset iconReturn =
"#application.path.core#/webtop/icons/#arguments.size#/#arguments.default#"
/>
</cfif>
<cfreturn iconReturn />
</cffunction>
On Mon, Dec 28, 2009 at 10:23 AM, Jake Churchill <[email protected]> wrote:
> I can't get to the webtop at all. That's my problem. I've done some
> more debugging and found that logging in works fine and all session
> keys get set. However, after the login you get redirected to /
> index.cfm and when I get there, the session is gone. And I mean it's
> immediately gone as soon as I get to onRequestStart in
> application.cfc. Session management is turned on so I'm not sure why
> there would be such an issue.
>
> -Jake
>
> On Dec 28, 3:44 am, Marco van den Oever <[email protected]>
> wrote:
> > So you can in fact go to yoursite/webtop and that works well?
> > In that case i assume it's some permission problem that HMS can help
> > you solve.
> > You might also ask them about logging in and session stuff, if that's
> > all configured well so you can log in like you want.
> >
> > On Dec 28, 8:05 am, Jake Churchill <[email protected]> wrote:
> >
> >
> >
> > > I have a site on FC 5.2.7 using the sub-directory method of the install
> and
> > > mysql 5 working just fine on my local development machine. I moved
> > > everything to hostmysite (FTP'd all current files and imported my db
> dump).
> > > I am able to view the site just fine and all functionality exists
> > > (including custom types) but I am unable to login to the webtop. When
> I
> > > attempt to login, I am returned to the index page as expected without
> the
> > > security bar at the bottom. I'm not getting any session keys set in
> the
> > > process. I'm also not seeing any errors.
> >
> > > Can anyone point me in a direction that might be helpful?
> >
> > > Thanks!
> >
> > > -Jake
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email:
> [email protected]<farcry-dev%[email protected]>
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry