Topic-icon Fatal error: Class 'JFBCFactory' not found

Active Subscriptions:

None
12 years 9 months ago #36503 by sp1der
Hi There,

I have onboard to jfbconnect 5.1.1. In my environment I also have jfusion with vbulletin.
What jfusion does is to auto authenicate both of my forum and joomla.

Joomla logout works fine, so far.
Now the problems comes when I click on the logout button from vbulletin. It prompt me a fatal error as below.

Fatal error: Class 'JFBCFactory' not found in public_html/plugins/user/jfbconnectuser/jfbconnectuser.php on line 31

I am toying around the components settngs > configuration > login / logout > login setting option
still the fatal error appear every time.
The topic has been locked.
Support Specialist
12 years 9 months ago #36516 by alzander
Sounds like something we hadn't anticipated. The JFBCSystem plugin should be loading the JFBCFactory class that's required for all of our functionality. My guess is that JFusion is bypassing lots of Joomla and just calling the user plugin directly.

To fix, I'd recommend editing the /plugins/user/jfbconnectuser/jfbconnectuser.php file. Around like 30, you'll see:
// Tell Facebook to delete session information stored for this user.
        JFBCFactory::provider('facebook')->client->destroySession();
Update that with the following 2 lines which should get things setup properly:
$factoryFile = JPATH_ROOT . '/components/com_jfbconnect/libraries/factory.php';
        require_once($factoryFile);

        // Tell Facebook to delete session information stored for this user.
        JFBCFactory::provider('facebook')->client->destroySession();
Let me know how that goes. We have a 5.1.2 release scheduled for later this week and will get this in there.. but it'd be great to have your feedback as well.

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

None
12 years 9 months ago #36534 by sp1der
Hi Alex,

things are back to normal now. No more error shown. Good job~
The topic has been locked.
Support Specialist
12 years 9 months ago #36538 by alzander
Awesome! Glad to hear that worked, and thanks for the feedback. This change will definitely be in the upcoming v5.1.2 release.

Thanks,
Alex
The topic has been locked.