× Joomla Facebook Connect support forum

Topic-icon JFBCSystem Plugin conflict with JReviews at backend

Active Subscriptions:

None
After updating to JFBConnect v4.0.2, I found the moderation page of JReviews component cannot be shown correctly as the image.
I have tested and found that it's crashed with jfbcsystem plugin as the problem solved when I turn this plugin off.

Please kindly help to solve the problem as the moderation function is critical to my site. Admin access is sent to you via PM. Thanks=]

File Attachment:
The topic has been locked.
Support Specialist
14 years 8 months ago #14037 by alzander
Fixed. Not sure which extension is causing the problem, but I disabled the code to enable the Facebook Page Tab and Canvas functionality in the system plugin, and that got things working again.

You don't look to have Page Tab or Canvas integration enabled, so this shouldn't affect you in a negative way while we investigate more.

If you run into other issues though, just let us know.

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

None
Thanks Alex, it works perfectly.

Acutally, I implemented the Facebook Page Tab before without using JFBConnect, so the changes does not affect my site.
Not sure how many people using JReviews with JFBConnect, but I believe it's better to add a option "Disable Page Tab & Canvas function" in the backend.

However, thanks for your help again. Alex=]

alzander wrote: Fixed. Not sure which extension is causing the problem, but I disabled the code to enable the Facebook Page Tab and Canvas functionality in the system plugin, and that got things working again.

You don't look to have Page Tab or Canvas integration enabled, so this shouldn't affect you in a negative way while we investigate more.

If you run into other issues though, just let us know.

Thanks,
Alex

The topic has been locked.
Support Specialist
14 years 8 months ago #14084 by alzander
There's definitely a few people out there using jReviews with JFBConnect, but you're the first we've heard of this issue. There's no way we'll disable the Page Tab integration for everyone, it was just a good/quick fix for you since you didn't seem to be using it. Before the next release, we'll investigate why things were failing (our plugin really shouldn't be executing in the admin area), and if we can fix it.. we will. If it's due to something jReviews is doing, we'll report it to them.

Thanks again for the feedback, and glad we got you going!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16165 by micpic
Hi, this is an urgent request:

I am encountering the same issue at the moment, the moderation screen in Jreviews is not working either except if I un-publish the system extension. I am not using either the canvas and tab system (although I'd love). - What part of the code should I remove ?

Thanks
Michel
The topic has been locked.
Support Specialist
14 years 6 months ago #16167 by alzander
Michel,
Try the following modification in the /components/com_jfbconnect/libraries/canvas.php file. Around line 40, you'll see:
public function setupCanvas()
    {
        $fbClient = $this->jfbcLibrary->getFbClient();
Simply change that to:
public function setupCanvas()
    {
        return;
        $fbClient = $this->jfbcLibrary->getFbClient();

That should disable the Canvas stuff, for now. Should you want to re-enable that in the future, we can try to investigate further as to exactly what's going wrong and fix it so both work (if we can on our end, and it doesn't require a change to jReviews).

Let us know how that goes,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16168 by micpic
Hi Alex,

Thanks for your prompt reply.

I have done the modification and unfortunately it does not resolve the issue.

This is a copy paste of the modified code:

public function setupCanvas()
{
return;
$fbClient = $this->jfbcLibrary->getFbClient();
...

Michel
The topic has been locked.
Support Specialist
14 years 6 months ago #16170 by alzander
Alright.. well, there's one other code change to make, and we'll see if that fixes it. If not, we may need access to the admin area of your site to diagnose further.

In the /plugins/system/jfbcsystem.php file, around line 55, you'll see:
function onAfterInitialise()
    {
        $app = JFactory::getApplication();
        if (!$app->isAdmin())
        {
            $this->jfbcCanvas->setupCanvas();
        }
    }
Change that to:
function onAfterInitialise()
    {
        /*
        $app = JFactory::getApplication();
        if (!$app->isAdmin())
        {
            $this->jfbcCanvas->setupCanvas();
        }
        */
    }
You're adding a /* and a */ to it, which will effectively disable that code from being called. Let us know how that goes, but again, if it doesn't work, you may just want to Private Message us details to access the site. Beyond this, I won't have any other great suggestions without seeing the problem in action.

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

None
14 years 6 months ago #16171 by micpic
I think the bug is fixed :)
thanks Alex
The topic has been locked.
Support Specialist
14 years 6 months ago #16172 by alzander
Michel,
Thanks for the report. Still very confused as to why the first change didn't fix it, while the 2nd did.. they both do pretty much the same thing.. but obviously not.

Either way, hope this gets you going again, and let us know if this causes you problems in the future.

Best of luck,
Alex
The topic has been locked.