By Rebel of Oz on Friday, 05 December 2014
Posted in Technical Issues
Likes 0
Views 553
Votes 0
Since upgrading to Joomla 3.3 five days ago, when I click on 'profile' on my Jomsocial toolbar (http://therebel.website/en/profile) I get the following SQL error message:

1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (221,406,682,990,1067,1123,1127,1255,1285,1306,1730,1799,2109) ) ) OR ( (a.`p' at line 1 SQL=select a.*, b.`title` AS


The Jomsocial engineers have established that that query error message belongs to EasyBlog.

select a.*, b.`title` AS `category`
from `j25_easyblog_post` as a
LEFT JOIN `j25_easyblog_category` AS b
ON a.`category_id` = b.`id`
where a.`created_by` = '2098'
and a.`published` = 1
AND ( (a.`private`= 0 ) OR ( (a.`private` = 20)
AND ('2098' > 0 ) ) OR ( (a.`private` = 30)
AND ( 1 = 2 ) ) OR ( (a.`private` = 40)
AND ( a.=2098) ) )
order by a.`created` DESC
LIMIT 5

Explain
Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=2098) ) ) order by a.`created` DESC LIMIT 5' at line 1 SQL=EXPLAIN select a.*, b.`title` AS `category` from `j25_easyblog_post` as a LEFT JOIN `j25_easyblog_category` AS b ON a.`category_id` = b.`id` where a.`created_by` = '2098' and a.`published` = 1 AND ( (a.`private`= 0 ) OR ( (a.`private` = 20) AND ('2098' > 0 ) ) OR ( (a.`private` = 30) AND ( 1 = 2 ) ) OR ( (a.`private` = 40) AND ( a.=2098) ) ) order by a.`created` DESC LIMIT 5
Hello Andrew,

Can you provide us your backend and FTP access so we can have a better look on your issue here? Please advise.
·
Friday, 05 December 2014 10:49
·
0 Likes
·
0 Votes
·
0 Comments
·
I've just resubscribed for EasyBlog Pro, downloaded and installed the latest version. However, I stilll get this:

http://awesomescreenshot.com/0803yv8ud8

when I try to open the Jomsocial Profile page.

That's on top of the problem I have with both the EasyBlog (http://therebel.website/en/blog) and the EasyForum component (http://therebel.website/en/blog) which are both timing out or producing blank pages most of the times. Even if they open, it takes much, much longer than with all the other components (Joomla Content, K2, HD Videoshare, DocManager, Jomsocial) All the other other pages on the site open with reasonable speed (5 - 10 sec). I've provided site details in the tabs below. I have logged that timing out/http 500 error problem in a separate thread.
·
Friday, 05 December 2014 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

I've fixed it for you in this file: ../plugins/community/easyblog/easyblog.php. Please have a look.
·
Friday, 05 December 2014 16:09
·
0 Likes
·
0 Votes
·
0 Comments
·
I still get the following SQL error in Jomsocial when clicking on the profile link in the jomsocial menu.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (221,406,682,990,1067,1123,1127,1255,1285,1306,1730,1799,2109) ) ) OR ( (a.`p' at line 1 SQL=select a.*, b.`title` AS `category` from `j25_easyblog_post` as a LEFT JOIN `j25_easyblog_category` AS b ON a.`category_id` = b.`id` where a.`created_by` = '42' and a.`published` = 1 AND ( (a.`private`= 0 ) OR ( (a.`private` = 20) AND ('42' > 0 ) ) OR ( (a.`private` = 30) AND ( a. IN (221,406,682,990,1067,1123,1127,1255,1285,1306,1730,1799,2109) ) ) OR ( (a.`private` = 40) AND ( a.`created_by` = 42) ) ) order by a.`created` DESC LIMIT 5


This error message is obviously EasyBlog related and I don't understand how it gets into the Jomsocial component.
·
Monday, 08 December 2014 15:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

I've tried to login to your site but I got this: http://screen.stackideas.com/2014-12-08_1648.png . However, I've fixed it for you. Please have a look. You got this error in Jomsocial page is because, you are using Easyblog plugin to display blog post in the profile.
·
Monday, 08 December 2014 16:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for fixing this. So why doesn't the Easyblog plugin work for jomsocial work?
·
Monday, 08 December 2014 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

The issue is because some of the code in the plugin is not run well in your site. I've made some changes and it should be working now.
·
Monday, 08 December 2014 17:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, mate. It's fine now. You can close the ticket. Thanks for your help.
·
Wednesday, 10 December 2014 05:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

You are welcome.
·
Wednesday, 10 December 2014 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post