Topic-icon Facebook Tab Page Error

Active Subscriptions:

None
12 years 8 months ago #12675 by fb_22424954
I'm trying to create a facebook tab page but I'm receiving a problem.

I keep getting the following error on facebook
Fatal error: Call to a member function get() on a non-object in /home/carlva5/public_html/landcontractgr.com/17/libraries/gantry/gantry.php on line 248

When I goto the facebook page
www.facebook.com/landcontractgr
Click Welcome with the green house you can see the error.

Then once you do that if you go back to the site the same error shows! If you clear your cache then the normal site shows no problem.

What's going on?!
The topic has been locked.
Active Subscriptions:

None
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12677 by fb_22424954
Replied by fb_22424954 on topic Facebook Tab Page Error
Sorry; I had tried to delete the post because I thought I had it solved but then realized I didn't so I still need help lol
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12678 by fb_22424954
Replied by fb_22424954 on topic Facebook Tab Page Error
I can point to any other URL and it works perfectly. But if I point to my page I get the Gantry error.
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12679 by fb_22424954
Replied by fb_22424954 on topic Facebook Tab Page Error
It's something to do with the template... If I change from the RocketTheme template to anything else it works perfectly!

File Attachment:
The topic has been locked.
Support Specialist
12 years 8 months ago #12681 by alzander
Replied by alzander on topic Facebook Tab Page Error
Carl,
Not sure what's happening. Can you tell us what RocketTheme template specifically you're using? I'm assuming in the Page Tab . Canvas configuration area you're trying to display a different template when viewed within Facebook. Can youtry setting the Page Tab template to be the RocketTheme template to see if that works. If you already are using the same template, or that doesn't work, let us know.

We'll have to do additional testing with Gantry it looks like. Basically, we instruct Joomla to use a different template than the default, but with Gantry, they may be disregarding (or conflicting) with that request.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17123 by fb_1565926376
I am having this problem as well. I get the following error if I instruct JFBConnect to use the RocketTheme Gantry template.

"Fatal error: Call to a member function get() on a non-object in /libraries/gantry/gantry.php on line 248"

I am using the RocketTheme Radiance template on my site, but I'm instructing JFBConnect to use the free "Gantry Default Template" that comes with the framework: www.gantry-framework.org/download

The error occurs with both RocketTheme templates. If I tell JFBConnect to use a non-RocketTheme template... i.e. Atomic... the site and facebook tab work correctly.

Any ideas on how to solve this?

Joomla 1.7.3
PHP 5.3.5
JFBConnect v4.0.3
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17124 by fb_1565926376
For reference, here is the code that is called out in the error, line 248 of gantry.php...
if ($template->params->get("cache-enabled", 0) == 1)
        {
            $cache = GantryCache::getInstance($app->isAdmin());
            $cache->setLifetime($template->params->get('cache-time', $conf->getValue('config.cachetime') * 60));
            $cache->addWatchFile(JPATH_SITE . '/templates/' . $template_name . '/templateDetails.xml');
            $cache->addWatchFile(JPATH_SITE . '/templates/' . $template_name . '/template-options.xml');
            $gantry = $cache->call('Gantry-' . $template_name, array('Gantry', 'getInstance'), array($template_name));
        }
        else
        {
            $gantry = Gantry::getInstance($template_name);
        }
The topic has been locked.
Support Specialist
12 years 4 months ago #17125 by alzander
Replied by alzander on topic Facebook Tab Page Error
Ryan,
I can't tell exactly what line 248 is there, but I'm assuming it's not the top line. If that's the case, can you try disabling caching in the template to see if that fixes the issue? That inner block that has the offending get (again, assuming that it's not the first line that's actually throwing the error) will be skipped if caching is disabled.

Obviously, that's not an ideal fix as caching is a good thing. However, it may be a good short-term fix until we can find a more permanent solution as well as helping us narrow down possible causes.

Thanks for all the info on how to recreate the error. This is only the 2nd time we've heard of this, and didn't understand the problem enough to be able to debug it last time. We'll gladly help how we can to get past this though.

Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17126 by fb_1565926376
Thanks Alex. I turned off the Gantry cache for both the Default Gantry template and the Radiance template, but the problem still occurs.

I also tried switching the facebook tab template to Radiance, but that did not fix it either.

As soon as I switch the facebook tab template back to Atomic, the site and facebook tab work correctly. Both the System Cache plugin and the Global Cache config are turned off. I also tested with GZip turned off, but it did not have an effect.
The topic has been locked.