CF’s CreateObject() on GoDaddy

The fact that GoDaddy disable the ColdFusion CreateOject function is a real pain. I’ve previously blogged about it, as have a number of others. Scott Pinkston does a good summary of how to code around it.

It continues to annoy people who then vent about it on Sean’s lengthy CF GoDaddy blog entry. And fair enough too.

Here’s the good news… CreateObject(“component”,…) works just fine on the Linux hosting! No really it does.

Here’s the working ModelGlue Widget example (Reactor version). That would never run if CreateObject was barred.

What about the Transfer version of that example? Well that ain’t going to work properly. It uses CreateObject(“java”,…) which is still blocked. Let’s check the ORM scoreboard… Reactor 1 – Transfer 0.

Finally, CF8 is just around the corner. It has a number of features that address these issues, like; Optionally restricting access to runtime/system java classes. Per application settings (think custom tag paths and mappings).

How long it will take GoDaddy to upgrade to CF8? A fricken long time is my guess :(

7 Responses to “CF’s CreateObject() on GoDaddy”

  1. Scott P says:

    I wonder if you just got lucky and found a box with reduced settings?

  2. MrBuzzy says:

    I was wondering about that too. Maybe someone will corroborate my story…

    I wonder how much manual intervention happens at GoDaddy. Setting up cf datasources is hit and miss. Sometimes they work and most times not.

  3. Marc Pinke says:

    While they do have CreateObject() disabled I noticed that you can use tags instead to run the methods in ur objects ;)

    Unless of course u need to maintain the instance u created.

    But I guess it’s not so bad when ur paying $1.95 a month for CF hosting LOL

  4. MrBuzzy says:

    Well, it’s disabled on Windows. I haven’t heard of anyone not being able to use it for CFC’s on the Linux hosting.

  5. Brad says:

    Yeah… I haven’t been able to get any createObject(“component” to work. I tried the very basic Coldspring install with a single line and it failed. I’m on linux with Godaddy for about a year now. I wish I wasn’t so cheap or I’d go get a real host. ;-)

  6. MrBuzzy says:

    Hi Brad,
    Feel free to email me on mrbuzzy AT gmail. I’d be happy to help you out. I’m interested to see if we can get it working for you.

  7. John says:

    Thanks for your help. I have had nothing but trouble with goDaddy’s CF hosting. The link to the code getting around the CreateObject works great. Saved my @$$.

    Thanks again.

Leave a Reply