Topic-icon Blank Login page after upgrading to JFBConnect 4.2.1

Active Subscriptions:

None
I recently upgraded to JFBC 4.2.1 and my login in page quit working (blank page). After disabling nearly everything in an effort to resolve the issue I finally determined that Gantry-based templates were the cause. I have three installed on my site and tried all of them. Other templates work. Everything worked fine with 4.1.2, including templates using Gantry.

Accessing the login page with 4.2.1 produces the following in the PHP error log:
PHP Notice: Undefined variable: gantry in /Applications/MAMP/htdocs/itasteit16/templates/rt_ionosphere/html/com_users/login/default_login.php on line 14
PHP Fatal error: Call to a member function init() on a non-object in /Applications/MAMP/htdocs/itasteit16/templates/rt_ionosphere/html/com_users/login/default_login.php on line 14

Here are the first few lines of code for the above-referenced default_login.php:
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');

require_once(JPATH_LIBRARIES.'/gantry/gantry.php');
$gantry->init();
gantry_import('core.utilities.gantryjformfieldaccessor');

Ok, so $gantry doesn't exist when this file is loaded, causing the fatal PHP error. Something changed from 4.1.2 to 4.2.1.

NOTE: The SCLogin module works, as does the default Joomla Login module. The issue (blank page) is caused when trying to access the Login form through the menu. Also curious is the fact that, once logged in, I can access the form (no blank page).

Thanks!
The topic has been locked.
Active Subscriptions:

None
Oops! I posted this in the wrong place. Should be in the JFBConnect section.

Can somebody move it for me?
The topic has been locked.
Support Specialist
Topic moved to the Joomla 2.5 area...

Haven't heard of that issue before, but can you try disabling the "Integrate into Joomla Registration:" in the Login/Logout tab of the Configuration section of JFBConnect? Hopefully that should fix it for you.

Let us know if you still have issues!

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

None
Disabling the "Integrate into Joomla Registration:" worked.

With this option I then had to add the {JFBCLogin} tag to my /templates/{gantry-template}/html/com_users/login/default_login.php file. The other option that works is to reenable and use the default com_users instead of the overridden version in the template folder. But then all the template styling and "Gantry-ness" disappears so the first option seems best.

Would be curious why JFBC 4.1.2 + Gantry worked but the new version doesn't...
The topic has been locked.
Support Specialist
The reason it worked in 4.1.2 is simply because that option for "Integrate into Joomla Registration" wasn't a part of the last version. It was introduced only with 4.2.0. Before this release, you had to manually add the tag, like you're doing. It seems there's a problem with that setting and Gantry though, so you'll just need to continue doing that for now.

Thanks for the report.. we will look into it more, but not sure if we'll be able to work around it.

Alex
The topic has been locked.
Active Subscriptions:

None
I have this same issue with a gantry powered template. Disabling the registration integration prevents the blank page but the user really wants the integration.
The topic has been locked.
Support Specialist
Natselect (all),
We haven't done enough debugging of this issue yet, but were actually out with a Rockettheme developer the other day and mentioned the problem. He gave a good suggestion, and we'd love it if you could test it out.

Can you simply re-order the system plugins so that the Gantry plugin is ordered above (lower number) than the JFBCSystem plugin? That will ensure that the Gantry framework is loaded before our JFBCSystem tries to alter the registration area. If that doesn't work, it's worth trying the opposite ordering, but I don't think that will be the fix (ya never know though!)

Let us know how that goes!

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

None
Hi Alex,
Sorry no joy either way. Did the usual clear cache etc just to make sure.

Error reporting shows: Fatal error: Call to a member function init() on a non-object in /home/nsvps2/z25.nswd.co/templates/blackstudios_white16/html/com_users/login/default_login.php on line 15
Line 14 require_once(JPATH_LIBRARIES.'/gantry/gantry.php');
Line 15 $gantry->init();
Line 16 gantry_import('core.utilities.gantryjformfieldaccessor');
The topic has been locked.
Support Specialist
Alright.. We do have it on our task list to look into this, and there's a RocketTheme developer that's interested in helping clear up any issues with JFBConnect and their framework.. which, rare, does happen. Hopefully we'll get to the bottom of it soon.

Until then, leave the setting disabled. You can always add the Login With Facebook button to the Login or Register page of Joomla manually by modifying those template files and adding the {SCLogin} tag, just so you know. If you need more information on how, we can gladly help.

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

None
Definitely a Gantry problem. I'm having the same issue with my RSTickets help desk component by RSJoomla who may be interested in helping solve this. I'll post over at their forum. When JFBC's "Integrate into Joomla Registration:" is set to "no," I'm able to log in through the RSTickets component which runs under "Support" on my main menu. It would be nice if JomSocial would split up their "jomsocialredirect" plugin. There needs to be a way to override the com_user registration process without being forced to redirect to the JomSocial profile every time a user logs in.

Found a nifty plugin that does allow redirect from com_user registration to jomsocial without the redirect to profile at www.joomlaxi.com/downloads/free-products.html

I'm also seeing the white page due to gantry conflict inside Jomsocial when attempting to link to a video on Vimeo.
The topic has been locked.