By Volker Glienke on Friday, 26 June 2015
Posted in Technical Issues
Replies 5
Likes 0
Views 721
Votes 0
Dear support! I got the following error message:

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'

My website vu2151.admin.dfse.de worked fine. After the installation and connecting easyblog to jfbconnect and facebook, my site crashed. Deinstalltion of jfbconnect and reinstallation didn't work.

I started the website with a working backup, installed easyblog 5, all worked fine, until installation of jfbcxonnect. After that Easybog 5 crashed again.
hi Volker Glienke,

I am really sorry for the delay of this reply as it is a weekend for us here.

Thanks for getting this helpful info to us, actually I would like to double confirm with this.
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.


I already applied some temporary fix for you, can you give it a try and see how it goes?
And i will consult with our developer regarding this and see which is the better solution for this in the future.
·
Sunday, 28 June 2015 13:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Volker Glienke,

Sorry for late reply to this,

Regarding this error message, it seems like this table -> `cjihv_jfbconnect_user_map` missing this column `fb_user_id` ,

i have do a global search regarding this, I found out this post thread -> https://www.sourcecoast.com/forums/jfbconnect/jfbconnect-joomla-25-support/7108-help-alter-table-__jfbconnect_user_map-modify-column-fb_user_id

Can you consult with Jfbconnect developer regarding this and see is it this table `cjihv_jfbconnect_user_map` do not have this column `fb_user_id` by default?

keep us updated then.
·
Saturday, 27 June 2015 01:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Arlex!

I contacted Sourcecoast and they tryed to help me, they send me the following answer after giving them access to my site and background, but I stil believe I do not understand all of this. But I think there are some informations you might want to know and perhabs can help me with it, because I do not know why there is that query on my website but not on other websites.

Kind regards,
Volker

Re: Error after installation of jfbconnect with easyblog 5
Yesterday 23:59:21

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:
Code:

// 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:
Code:

// 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
·
Saturday, 27 June 2015 21:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex!

I am glad that I can help you with that

Hopefully you can find a solution that can help me and others with the next update.

At the moment all looks to work fine, if you need to test it at my configuration/server, feel free to use your account. I will make backups every day, so nothing will cause any trouble if anything goes wrong.

Good job you are doing there,
Volker
·
Sunday, 28 June 2015 17:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Volker
·
Sunday, 28 June 2015 18:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post