Topic-icon Error after installation of jfbconnect with easyblog 5

Active Subscriptions:

None
Dear support!

All works fine on my website, I made a backup and installed JFBConnect 6.4 After that I switched to easyblog 5 An got the following message on an error 1054 page :-(

Unknown column 'fb_user_id' in 'field list' SQL=SELECT `fb_user_id` AS `id` FROM `cjihv_jfbconnect_user_map` WHERE `j_user_id`='42'

I don't know what to do.

Please help,
Volker
The topic has been locked.
Support Specialist
8 years 10 months ago #53803 by mel
I am currently working on getting a bug fix release for EasyBlog5 issues.

If you have the 'Open Graph - EasyBlog' plugin enabled, please disable it until we have the bug fix release out (hopefully in the next few days). If you don't have that plugin enabled, we'll need more information to reproduce your issue, such as a specific URL where we can see the behavior in progress, steps to make the error happen, etc.

-Melissa
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #53805 by VolkerG
Hi mel,

we have our website on vu2151.admin.fdse.de If you register I can give you SuperUser rights.

We haven't enabled the plugin so far. If you need an account created by me, please tell me ho to send you this on a secure way.

Kind regards,
Volker

P.S.: You can test everything on my website, if this helps you to find the error.
The topic has been locked.
Support Specialist
8 years 10 months ago - 8 years 10 months ago #53806 by mel
I attempted to create a user on the front end and when I tried to click the activation link in my email, it brought me to a 403-forbidden page. If you can create an account, please click on the little envelope icon under my avatar to send me a private message with the credentials. [Edited to add]I would say to just delete the account that I attempted to create, unless you have a way to reset the password enabled on the front-end.

How are you encountering the error? Upon registration, login, or connecting an existing account to a social network? Any other details would be helpful.

-Melissa
Last edit: 8 years 10 months ago by mel.
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #53809 by VolkerG
Dear Melissa!

I activated your account. All should work fine now. At the moment we are activating the accounts manually.

Kind regards,
Volker
The topic has been locked.
Support Specialist
8 years 10 months ago #53811 by mel
Thanks for letting us have access to the admin area. It definitely helped narrow down where the problem lies. EasyBlog now has some code to integrate with JFBConnect to display the user's avatar. The problem is that it seems like that code isn't working properly on your site, and I can't really see why.

The problem code is in the administrator/components/com_easyblog/includes/avatar/adapters/jfbconnect/client.php, starting at line 34:
// Set the default column
$query 	= 'SELECT ' . $db->quoteName('fb_user_id') . ' AS ' . $db->quoteName('id');

// If it is new version
if (isset($columns['provider_user_id'])) {
	$query = 'SELECT ' . $db->quoteName('provider_user_id') . ' AS ' . $db->quoteName('id');
}
That code is setting up a MySQL query to get some data out of the JFBConnect table. The first line is for a very old version of JFBConnect, whereas the the second $query line is for the most recent versions of JFBConnect from the last 2 years. For some reason, your site is trying to use the first line, which is throwing the SQL query error.

The quickest fix is to edit the code above to simply look like:
// Set the default column
$query = 'SELECT ' . $db->quoteName('provider_user_id') . ' AS ' . $db->quoteName('id');
Basically, removing most of it.

Of course, that's not a good long term solution as future upgrades to EasyBlog will need to be re-edited. I looked at your system configuration, and you're running Linux with MariaDB, which should be fine.

Accessing EasyBlog5 on our development site, we can't see the same query (either correct or incorrect) being called. I'm not sure why it's being called on yours but not ours (or others that we've heard of). Do you know if you have any features in EasyBlog configured to use JFBConnect? I haven't seen options like that before, but it's possible some setting is causing the problem.

Please let us know anything you find and we'll gladly help investigate... and report whatever we find to the EB developers.

Thanks,
Melissa
The topic has been locked.