Topic-icon Custom module conflict when logged on

Active Subscriptions:

None
10 years 2 months ago #57636 by philmenu
Hi,

I just upgraded my JFBConnect to the latest version just to be sure the behavior is the same: I have made a custom module, which generaly works fine with all browsers and allows for displaying contents out of an external DAM web site that I resell in Canada into Joomla pages. When I am not logged on as a Joomla User, everything works fine.

When i logon to my site through JFBConnect, the following happens:

-If i use Google or Twitter, the CanDAM Fotoweb 8 custom module and top Revolution slider presentation module both work fine
-If I use facebook button, nothing seems to happen, although the autotune was just rerun and found everything to be OK
-If I use the linkedIn login, I am presented with twice the login Window, one of them asking me (the customer potentially) if he authorizes me to post in his company pages! Then when i finally authenticate after the double authentication windows, my CanDAM custom Module and the Revolution slider module disappear. A debug shows that the InitFW() routine which is supposed to fire on Documenty ready and is present in the code in firebug does not fire. A firebug breakpoint shows that it never reaches the instructions. There are no JFBC or CanDAM module related errors in the javascript console.

I have tried to enable the debug mode, then disable it, I have tried disabling the Jquery library load, I have tried force the load of the Joomla Jquery framework and bootstrap in the template, nothing changes, the behavior stays strangely the same.

Can you please help?

Public site is www.candam.com the login button appears on home page top right and popup is fired as expected.
The topic has been locked.
Support Specialist
10 years 2 months ago #57642 by alzander
Starting from the top:
* Great! Glad to hear 2 work :)
* Facebook - I just authenticated with Facebook using Chrome without issue. If you're seeing problems though, it's likely due to the browser running into Javascript errors and preventing further execution. When there is a Javascript error, it can prevent further (even unrelated) Javascript from executing. The 2 Javascript errors I'm seeing (unrelated to JFBConnect) are:

Uncaught ReferenceError: EB is not defined --- calendar-widget:157
Uncaught TypeError: Cannot read property 'init' of undefined --- calendar-widget:369

Once I logged in with Facebook, the slider at the top worked for me.
* LinkedIn would only be asking to post to your Company Pages if you setup a LinkedIn Channel for that user. It wouldn't ask that permission from everyone, just that specific user that you've configured in the Channels area.
As for authentication with LinkedIn, I'm attaching an image of what I see when I've just logged in with LinkedIn, as you can see in the message. The slider looks to be working for me:
File Attachment:

If you're seeing something different, can you let us know what browser you're using? Also, if you're using privacy add-ons to the browser that are meant to block social networks or other 'tracking', please disable them as they can cause various problems like you describe.

On a final note, when I authenticated/registered, the following messages showed up:

Notice
SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Message
Facebook profile successfully connected.

The Facebook message is from us. The SMTP one is likely since we're trying to send the new user email, but you'll need to fix that on your server.

Thanks,
Alex
The topic has been locked.