× Joomla Facebook Connect support forum

Topic-icon Error in loginregister.php on line 132

Active Subscriptions:

None
14 years 8 months ago #13407 by tgkingston
Hi all,

I have just installed the JFBConnect bundle and am using the component for the first time. I have placed the JFBCLogin module on my site, and after attempting to login to my site through Facebook I get the following error message:

Fatal error: Call to a member function get() on a non-object in /home2/buysynt1/public_html/components/com_jfbconnect/controllers/loginregister.php on line 132
URL: www.syntheticoil.net/component/option,co...k,loginFacebookUser/

Would anyone be so kind as to help with this error?

Thanks!
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #13408 by tgkingston
I should also mention that I have the 4.0.0 bundle installed, the 4.0.1 JFBConnect extension installed, and the 3 required plugins enabled.
The topic has been locked.
Support Specialist
14 years 8 months ago #13409 by alzander
That error is saying that it can't find the Joomla user that you're trying to login with.. which could mean the user wasn't properly created during registration or wasn't properly connected to the user's Facebook account.

Are you creating a new user when you try to login (first time registration), logging in on the left-hand side of the Login/registration form (to connect your Facebook user to an existing account), or something else?

Finally, can you make sure that the JFBConnect User, JFBConnect Authentication, and JFBConnect System plugins are all enabled? Also, check the JFBConnect overview page in the admin area, and see if there are any notices or warnings about your configuration.

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

None
14 years 8 months ago #13412 by tgkingston
Wow, lightning fast reply, thanks!

I checked, and I have the 3 plugins enabled. I am simply trying to login with a new Facebook user who has never logged in to my site. I assumed that it would create the new Joomla user automatically (I have the "User Creation" option set to "Full Joomla User"). I am using the JFCBLogin module. I have also tested with a new article page that uses the {JFBCLogin size=medium logout=true} tag, and I get the same result.

Your help is much appreciated!
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #13413 by tgkingston
The overview page also looks good.
The topic has been locked.
Support Specialist
14 years 8 months ago #13415 by alzander
Yes, JFBConnect should be creating the user automatically.. and obviously, not throwing an error :D And yes, we take support very seriously.

We've honestly not heard of this issue before, so forgive the extra questions. I just looked at your site, and the front-end HTML code look good.. no obvious problems. I see you're using the JFBCFan module too, without issues. Can you let me know:
1) Are you using any of the JFBConnect profile plugins? If so, can you try disabling them and see if that resolves the issue.
2) Do you have anything else installed on your site that may affect how user registration normally is handled? Special plugins to check registering users, or anything like that?
3) Do you have any sort of Joomla firewall or security extensions installed?
4) Can you post (or private message me) the URL to the page with the Login module or {JFBCLogin} tag?

Finally, as mentioned, we haven't seen this issue before, so it's a new one for us. We'll do what we can to help, but if possible, admin access to the site can always help us investigate a lot faster.

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

None
14 years 8 months ago #13418 by tgkingston
Hi Alzander, I've sent you a PM with additional details. Thanks!
The topic has been locked.
Support Specialist
14 years 8 months ago #13419 by alzander
Thanks for the credentials. I just got into the site, and really didn't see too much out of the ordinary. So, I enabled the JFBClogin module you had made (in the right side) and tried to log in. I was brought to the Login/Register page, filled out my username and password, and everything worked as expected. I never saw the error you mentioned. The JFBCLogin module is currently back to disabled.

Of course, that doesn't mean your crazy. There are some things I noticed on your site that you may want to play with, and some other suggestions are below:
1) In sh404SEF, I set it to 'skip' creating pretty URLs for JFBConnect. We only have one URL, and that's the login/register page, and it's not something that needs to be pretty. This is the only change I made on your site.
2) You have a plugin for the Wibya toolbar enabled. I didn't see that bar, but it's caused issues on other sites because of it's Facebook integration. I would recommend disabling this, or at least disabling the Facebook features (Like/Send, etc) of that toolbar.
3) jBotelo, a minifier compressor is installed. We work with jBotelo, and many other compressors, but for debugging and sanity purposes, I would recommend disabling this for now as well.

Another thing to look out for: When you click the Login With Facebook button, and are brought to the next page, you should see "Welcome Bob", or whatever your first name is, at the top. Also, you have it set to hide email addresses, so you shouldn't see the email address field in the form. If your first name, or the email field is showing, that could be a sign that JFBConnect isn't properly pulling your profile or communicating with Facebook. In that case, I'd recommend:
1) Trying a different Facebook user to login with
2) Trying a different browser, at least, and different computer if possible.

Finally, in no way should you ever see that error. We messed up, and I have a note in our bug tracker to test better for the creation of the user and fail more gracefully. Sorry you're running into this issue, but we will get you fixed up.

You can disable my account for now, until I hear back from you at least :D

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #13421 by tgkingston
Thanks for looking into this, Alzander.

I actually was able to figure this out. :) I was testing this 2 days ago when I did not have all the required plugins enabled. I was testing with 2 different Facebook accounts, A & B. I somehow (no clue) was able to get Facebook account A mapped to my admin user (which just so happened to have the e-mail address of Facebook account B). At the time I was not aware of what a "user map" was. Well, tonight, after I had all the plugins enabled, started testing with Facebook account B. I have the "Automatically Link Facebook Users by Email" option enabled, so this then created the havoc. The error must have occurred because it then tried to map to a user that already had a "user map" created. So, I deleted the "user map", and I was then able to login successfully.

Whew!

Thanks again, and I will take into consideration all that you said in you most recent, excellent post!
The topic has been locked.
Support Specialist
14 years 8 months ago #13425 by alzander
Whew is right!

Yes, the plugins are definitely required.. while the error should never be displayed as it is (and we'll be fixing that in the next version), without the plugins enabled during normal operation, it's possible that many strange things could happen.

I'm glad you got it all figured out though, and hopefully, that was all (or at least the worst) of it.

Should you need anything else, don't hesitate to get in touch,
Alex
The topic has been locked.