Skip to Content Skip to Menu

🎉 Black Friday Sale! Great savings on Professional and Developer Memberships! Get 25% off now with code BLACK-FRIDAY-2026!

GroupJive 4.0.0: SQL 1064 viewing another member's profile (duplicate AND)

  • mjl1817
  • mjl1817
  • OFFLINE
  • Posts: 58
  • Thanks: 7
  • Karma: 1
1 month 2 weeks ago #344636 by mjl1817
Hi Kyle,

We tried to submit this through the GroupJive bug tracker, but forge.joomlapolis.com/login returned “Forbidden”, so we are reporting it here instead.

After installing CB GroupJive 4.0.0, build 2026-10-12, we found a reproducible SQL error when a signed-in member views another member's CB profile with the GroupJive Communities tab enabled.

The profile fails with MySQL error 1064, with the error pointing near:
AND ( g.`user_id` = ... OR ( g.`published` = 1 AND ...

Reproduction:
1. Install GroupJive 4.0.0 and enable its profile Communities tab.
2. Sign in as an ordinary frontend member.
3. Open another member's profile.
4. The profile fails while GroupJive loads its community rows.

In library/Tab/GroupTab.php, around line 286, the row-query permissions condition is added to $queryWhere with a leading "AND ( g.". Around line 303, the array is joined using implode(" AND ", $queryWhere), producing a duplicate conjunction (AND AND).

The minimal change is:
Code:
Before: "AND ( g." After: "( g."


The corresponding count-query condition earlier in the same file already begins with "( g.", without the extra AND.

We confirmed the defective line is present in the unmodified supplied GroupJive 4.0.0 ZIP and that our installed file matched that source before applying the temporary one-line correction. No permission predicates were removed. PHP syntax validation passed, and profiles then loaded successfully for signed-in viewers, including an ordinary member viewing their own and another member's profile.

Environment: Community Builder 2.12.0, GroupJive 4.0.0 (2026-10-12), PHP 8.3.33. Activity 7.1.1 and Gallery 4.1.3 are also installed.

Could you confirm this and include the correction in the next release? We have kept the original file and can provide the patch if useful.

Thanks!

I wish I knew, Then we would both know.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50838
  • Thanks: 8711
  • Karma: 1475
1 month 1 week ago #344639 by krileon
Was able to confirm. Have created a bug ticket. Thank you for letting us know!

forge.joomlapolis.com/issues/9963

It is also now fixed in latest CB GroupJive build release. I've also rebuilt and re-released 4.0.0 stable for anyone that has yet to install it. Will prepare a 4.0.1 probably end of week after collecting any remaining feedback.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beat, nant, krileon
Powered by Kunena Forum