Mobile breaks when BlogCFC not in web root.

68 views
Skip to first unread message

Scott Stroz

unread,
Mar 7, 2011, 4:52:35 PM3/7/11
to blo...@googlegroups.com
I just noticed that the mobile functionality is not working on my
blog, whenI fixed it locally I got the following error:

Could not find the ColdFusion component or interface org.camden.blog.utils.

Ensure that the name is correct and that the component or interface exists.

The error occurred in
/Users/scott/Sites/boyzoid.com/wwwapp/www/blog/mobile/components/blogMobile.cfc:
line 4
2 :
3 : <!--- Load utils immidiately. --->
4 : <cfset variables.utils = createObject("component",
"org.camden.blog.utils")>
5 :
6 : <!--- cfg file --->

It is an easy work around, but I think we should try to make it 'just
work' out of the box, regardless of where the blog actually sits
relative to web root.

--
Scott Stroz
---------------
You can make things happen, you can watch things happen or you can
wonder what the f*&k happened. - Cpt. Phil Harris

http://xkcd.com/386/

Scott Stroz

unread,
Mar 7, 2011, 5:08:25 PM3/7/11
to blo...@googlegroups.com
Also, can someone please hit my blog with a mobiel device to see if
its working for them (it is not working for me on my Android device).

Thanx!

Jason Dean

unread,
Mar 7, 2011, 5:22:36 PM3/7/11
to blo...@googlegroups.com

Redirect is not working. But if I go to /blog/mobile it works fine.

Jason

jason

lahue

unread,
Apr 4, 2011, 3:38:01 PM4/4/11
to BlogCFC
I am getting the same error. My blog can be seen at
http://www.cba.uni.edu/dbweb/prp/blog/ Is there a simple way to
remove the mobile function?

On Mar 7, 5:22 pm, Jason Dean <deanj...@gmail.com> wrote:
> Redirect is not working. But if I go to /blog/mobile it works fine.
>
> Jason
>
> jason
> On Mar 7, 2011 4:08 PM, "Scott Stroz" <boyz...@gmail.com> wrote:> Also, can someone please hit my blog with a mobiel device to see if
> > its working for them (it is not working for me on my Android device).
>
> > Thanx!
>

Raymond Camden

unread,
Apr 4, 2011, 4:40:35 PM4/4/11
to blo...@googlegroups.com
Go into Application.cfm and remove the <CFIF> block that pushes people.

To be clear, the error exists when a) your blog is not in site root
and b) people hit your blog via the mobile site first?

--
===========================================================================
Raymond Camden, ColdFusion Jedi Master

Email    : r...@camdenfamily.com
Blog      : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with Android news: http://www.androidgator.com

Joshua Cyr

unread,
Apr 4, 2011, 5:01:58 PM4/4/11
to blo...@googlegroups.com

Works fine on my xoom

infot...@gmail.com

unread,
Oct 26, 2013, 9:33:49 PM10/26/13
to blo...@googlegroups.com, boy...@gmail.com
I changed the line to blog.org.camden.blog.utils and it works. My new blog is www.echemusic.com/blog/

-- Simone

MichaelEvangelista

unread,
Oct 29, 2013, 2:50:03 PM10/29/13
to blo...@googlegroups.com
>>  Is there a simple way to 
>> remove the mobile function? 

At the top of [webroot]/Application.cfm 
add this line

<cfparam name="url.nomobile" default="true">

session.nomobile will be true for all user-agents

Raymond Camden

unread,
Oct 29, 2013, 3:01:44 PM10/29/13
to blo...@googlegroups.com
Or just remove the code at the *bottom* which does the redirect.


--
You received this message because you are subscribed to the Google Groups "BlogCFC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blogcfc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
===========================================================================
Raymond Camden, Adobe Developer Evangelist

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
Reply all
Reply to author
Forward
0 new messages