Topic-icon VIrtuemart integration problem

Active Subscriptions:

None
13 years 7 months ago #27635 by Alchemian
My software:
Joomla 2.5.8 + Virtuemart 2.0.12f + JFBConnect 4.2.5 + VM2 profile integration
My problem:
The user clicks on the "Login with Facebook" button, the popup window shows, asking the user to enable the application. Ok.
Then, the window closes the user is not redirected, is not subscribed, nor logged in, nothing.
My site application appears in the FB user's application, but the user never logged in and there is no user listed in the user map.
What step did I miss?
The topic has been locked.
Support Specialist
13 years 6 months ago #27639 by alzander
You have multiple extensions that are including the Facebook Javascript library on your site. You'll need to disable the other extension that is including that library, or at least disable it's Facebook's integration. That's causing a conflict that is preventing registration from working.

I can't tell from looking at the code on your site what extension is including the library. It may be a part of your template, a module, or other component. You'll need to narrow it down and remove anything that is including the "all.js" file, which you can see if you open the HTML on your page and search for that file.

If you use the Autotune Configuration tool, it should have also pointed out the extra library inclusion. If there are any other warnings it's presenting, those should be fixed as well.

Hope that helps, but if you need more information, just let us know.

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

None
13 years 6 months ago #27741 by Alchemian
Thank you for you response.
I previously inserted that call to "all.js" in the template, to publish tyhe facebook bullet.
I removed the call and now you can see there is only one call to all.js, which I think is from JFBC plugin.
Still I get no redirection after logging in through facebook. I get the popup, authorize the app, the popup closes and I'm still on my home page, neither logged nor redirected.
I have no plugin about facebook, except from JFBC.
Autotune: the first steps show everything OK.
Instead, JFBConnect Remote Error Check reports as follows:
Error: Could not fetch page. Server returned:
Error Code: 303 - Page Moved.

I'm afraid this is a collision with the default joomla multilanguage system.
Is there any way to fix this incompatibility?
The topic has been locked.
Support Specialist
13 years 6 months ago #27751 by alzander
I'm not exactly sure what's causing the conflict, but you have some Javascript errors on the page which are preventing our Javascript from executing the actual login process. When the page loads, the following comes up:
Uncaught TypeError: Object  has no method 'addEvent'  -- modal.js
Uncaught TypeError: Object [object Window] has no method 'getStyle'  -- mootools-core.js
Again, I don't know what extensions or what in general is causing those issues, but they aren't related to JFBConnect. Once the Javascript errors occur though, it can prevent future Javascript from executing, which is the problem you're running into.

What I'd try is:
* First, test with a different template to see if the issue goes away.
* Then, try disabling any Javascript heavy extensions you may have

Once you narrow things down, we can help further or hopefully you can contact the developer of whatever extensions are causing the Javascript issues.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 6 months ago #28498 by Alchemian
After a lot of investigation I found 1 module conflicting with yours.
Disabling the module, the facebook login works fine. And that's a good starting point.
That module is mod_vm_nb_ajaxsearch, an ajax vm product search.
Inside that, I can't find the call to mootools-core.js or modal.js, but I identifyed the js file responsible for the conflict.

Can I send you the .js file? Can you please check that?
The topic has been locked.
Support Specialist
13 years 6 months ago #28505 by alzander
Alchemian,
The problem isn't that that file is directly conflicting with JFBConnect. The problem is that the file has Javascript errors which are preventing other Javascript in general from operating. That's not something we'd be able to debug. You'd need to contact the developer of that extension, mention the error messages that the extension is causing, and have them figure out how to correct them. Once there are no Javascript errors in their file, the login functionality should work.

Basically, that Javascript is blocking other Javascript from operating, and likely not just JFBConnects Javascript and needs to be fixed.

Hope that makes sense,
Alex
The topic has been locked.