× Joomla Facebook Connect support forum

Topic-icon JFBCSystem Plugin kills joomgallery and gcalendar

Active Subscriptions:

None
Hi,

I really like this plugin and would love to keep it running on my site if i could figure out why i cant run my images (Billeder) on the frontpage and gcalender (Menu -> Kalender). Both just stop working or never loads anything when the system plugin is enabled.

I would really appreciate if you could help me out.. The site www.wakecoach.dk is offline now, but you can login with: tester / tester . I will be more that happy to supply you with a admin user also if you think you can help me.

I have an active subscribtion by the way, dont know if its right to post through my fb login.

Thanks alot!

/Lars
The topic has been locked.
Support Specialist
15 years 3 months ago #8113 by alzander
Lars,
We want you to continue using JFBConnect as well! I just took a look at your page, and can see what the issue is pretty quickly. Fixing it may be very easy or annoyingly difficult.

The Facebook Share button that your Calendar is trying to use has been deprecated by Facebook, and is no longer recommended to be used. It actually conflicts with their own Facebook Connect library in such a way that it can cause Javascript (in general) to hang on the site altogether. I can't be certain that this is the issue, but if there's an easy way to disable the Share button, it'd be the first step to test out. For more information on the current state (or lack thereof) of the Share button, see:
www.sourcecoast.com/extensions/jfbconnec...tions#share-conflict

Hope this helps, and let us know your results!
The topic has been locked.
Active Subscriptions:

None
Hi Alex

Thank you for the reply.. The share button never caused be trouble before though, i removed it from frontpage and the gcalender page to rule it out. But i already know how to "fix" the problem. If i disable the JFBCSystem Plugin both images and calendar loads fine. Images are loaded by CB joomimg module. You can try it out yourself, will PM admin login. But again.. would really like to keep it ;-)

Thanks!

/Lars
The topic has been locked.
Support Specialist
15 years 3 months ago #8150 by alzander
Ahhhhhhhhhhhh HA! Something you said just rang a bell in my head...

I think I know what your problem is. There's 2 things that you can try, if you would. The problem is due to a minor issue we have in the JFBConnect System plugin where a PHP warning can be spit out. While it's bad behavior on our part, it's normally not an issue because errors shouldn't be enabled on production sites.. but not all sites are in production. Anyways, PHP warnings can screw up AJAX calls. To fix, try:
Temporary solution (easy): Turning off Error Reporting. To do so, follow the instructions below, and set it to None:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

Permanent fix (harder): If that fixes your problem, and you still want to leave error reporting enabled, then edit the /plugins/jfbcsystem.php file. At line 40, change the following three lines like so:
if (preg_match('/\<body.*?\>/', $body, $matches)) {
            $newBody = str_replace($matches[0], $matches[0] . $fbApiJs, $body);
            JResponse::setBody($newBody);
}
Basically, you're adding an if (xxx) { to the top line, and closing it with a } at the bottom.

If that's too confusing for you, feel free to send us super admin credentials to your site, and we can make the change.

This issue has already been fixed in our 3.2 release, due to be released later this month. We didn't put out an updated release for 3.1.x because this affects a minority of users.

Very sorry for the inconvenience, and please let us know how it goes.
The topic has been locked.
Active Subscriptions:

None
Perfekt thanks! i was getting worried...because the error was starting to look sporadic.. which is the worst kind right ;-) Turned out i switched off error reporting this morning without knowing.. and that fixes it! Ill handle the code.. no worries!

Thanks for super fast response!

/Lars

Btw.. i was not refering to keeping my admin login in the previous post.. i wanted to keep JFBConnect ;-)
The topic has been locked.
Support Specialist
15 years 3 months ago #8159 by alzander
Lars,
So happy we got it figured out. Sorry for the troubles, and again, this will be fixed in the 3.2 release, so you shouldn't have to worry about this going forward. Best of luck to you, and if you run into any other problems or have any other feedback, let us know!

Finally, if you use JFBConnect, please post a rating and a review at the Joomla! Extensions Directory:
extensions.joomla.org/extensions/social-...ook-integration/7215
The topic has been locked.