Topic-icon Error 500 (View not found [name, type, prefix]: jfbconnect, html, jfbc

Active Subscriptions:

None
When going to the frontpage (drinkedin.net) or any page with JFBConnect on it... I often get this error message when it tries to log into FB or G+ (haven't tested TW). This is not 100%... but probably half the time this occurs.

I know this is strange and if I can't consistently reproduce it, it's difficult for you to debug this. Any clues what could be causing this? I'm using EasySocial.
The topic has been locked.
Support Specialist
I went to your site and the Facebook auto-login feature kicked in, as expected. I was then redirected to the page you mention with the error. I haven't seen this before and am investigating what could be causing it.

We're looking into what failure paths during authentication/login could cause the redirect to a view in JFBConnect (which doesn't exist). I'll let you know what we find.

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

None
Any news here? I'm still getting this on occassions... sometime even after actual login via social network.

Could this be a jquery issue?
The topic has been locked.
Support Specialist
We've been doing some investigation, and can see a way that that error occurs, but it honestly shouldn't be happening in normal operation (obviously, since it's an error).

Can you tell me if you're using any SEF extensions on your site, or just the built-in Joomla SEF?

We're hoping to have a minor code fix that should, at the least, prevent that error from showing.. however, the underlying problem may still be there where a user isn't being logged in properly. That's what we're trying to figure out, and it seems to be happening if some extensions are altering JFBConnect URLs improperly.

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

None
I don't use a separate SEF extension - just the built-in Joomla SEF settings (including rewrite).

Also - it seems that the FB button is not even popping up a small window to obtain the user's FB credentials (or just log him in if already in FB and approved in the past). Right now, nothing happens when we click on the FB icon. Suggestions?
The topic has been locked.
Support Specialist
I've never seen an issue like I see on your site right now. The inclusion of the Facebook Javascript file from JFBConnect looks like:

//connect.facebook.net//all.js

That should have the locale/language in it, like:

//connect.facebook.net/en_GB/all.js

I know you have some multi-lingual stuff working on your site, and all I can guess is that JFBConnect is receiving a blank language string when asking Joomla what language to use. Again, we've *never* seen that in 5 years of development, so something's definitely odd.

The easiest fix would be to use the "Locale Override" setting in the Configuration -> Facebook area of JFBConnect. Set that to "en_GB" (or en_US or whatever you want) and that should get things going. It means on the Spanish version of your site, for instance, the Like button, login popup and other features would be in English.. but at least they'd work.

Let me know if that helps fix this issue. It's very possible this is the cause of some of the issues above as well.

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

None
Thanks - the manual override of the language does work. However, the multilingual "stuff" is basically a reverse proxy to automatic translation. Only English is pulled off the site... when served via the reverse proxy (e.g. in Spanish), it's translated on the fly (credit goes to GTranslate). So the site itself is actually only a single language.

However, that still doesn't solve the problem that G+ and TW want to go straight to component/jfbconnect which gives the 500 Error. I already reinstalled version 5.2.1.... so I hope I can get the patch you guys are brewing up...
The topic has been locked.
Support Specialist
Is it possible to send us FTP access to your server? We'd love to do a little more investigation into the 500 error. It's very odd. Since we've only heard of it on one other site, it's also very difficult to know if what we're trying to fix is the right problem. Access would greatly help that.

As for the reverse proxy, I'm not sure why or how that's affecting the Joomla language. I know your site worked with Facebook before, so something changed. For our code, we call:
$lang = JFactory::getLanguage();
            $locale = $lang->getTag();
As I mentioned above, that's just asking Joomla, "Joomla, what's the language for this site?" For your site, for some reason I've never heard of before, it's now returning an empty string. Very strange, and glad we could work around it.. but you should know that in case other problems with languages arise (in JFBConnect or elsewhere).

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

None
credentials sent via PM.
The topic has been locked.
Support Specialist
The FTP credentials you sent didn't seem to work. I get an "Authentication failed" error. Can you double-check and test them?

As for the rest of your PM, you mentioned:

We are running Varnish (with patch from MassiveScale) as the only change to the core (but that's mostly to ignore the sessions from a guest user) on this Joomla 3.2 site.

I'm not sure what would happen with JFBConnect if sessions aren't available. We have to store quite a few variables at different stages along the login/registration path. One specific variable is the return URL for the user when they are logging in. If sessions can't be stored and you have the redirection set to "Same Page", that's likely where the problem is coming from.

Can you update your New User and Returning User Redirections to be to a 'real' menu item and not *Same Page*? That may be all that's required to get you going.

Please let me know if that changes the behavior or not. If not, if we get into FTP, we'll continue to investigate.

Thanks,
Alex
The topic has been locked.