Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[#5343] MySQL error sorting users by subscription

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 4 months ago - 9 years 4 months ago #266027 by petekuhn
CB 2.0.9, CBSubs 4.0.0.ci.2015.06.12.00.20, Joomla 3.3.6, PHP 5.5.24

In User Management, if I try to sort by subscription, I get this error:

Error
Database loading error. Check and repair your database in Components / Community Builder / Tools.
SQL Error (visible to super-admins only): Unknown column 'a.subscriptions' in 'order clause' SQL=SELECT a.`id`, b.`name`, b.`username`, c.`session_id`, GROUP_CONCAT( DISTINCT d.`group_id` SEPARATOR '|*|' ) AS `groups`, b.`email`, ( SELECT GROUP_CONCAT( e.`name` ) AS `plan_names` FROM `qujx_cbsubs_plans` AS e LEFT JOIN `qujx_cbsubs_subscriptions` AS f ON f.`plan_id` = e.`id` WHERE ( f.`user_id` = a.`id` ) ) AS `subscriptions`, b.`registerDate`, b.`lastvisitDate`, a.`banned`, b.`block`, a.`confirmed`, a.`approved` FROM `qujx_comprofiler` AS a INNER JOIN `qujx_users` AS b ON b.`id` = a.`id` LEFT JOIN `qujx_session` AS c ON c.`client_id` in (0,1) AND c.`userid` = a.`id` LEFT JOIN `qujx_user_usergroup_map` AS d ON d.`user_id` = a.`id` GROUP BY a.`id` ORDER BY a.`subscriptions` LIMIT 0, 20
Last edit: 9 years 4 months ago by krileon.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 4 months ago #266042 by nant

petekuhn wrote: CB 2.0.9, CBSubs 4.0.0.ci.2015.06.12.00.20, Joomla 3.3.6, PHP 5.5.24

In User Management, if I try to sort by subscription, I get this error:

Error
Database loading error. Check and repair your database in Components / Community Builder / Tools.
SQL Error (visible to super-admins only): Unknown column 'a.subscriptions' in 'order clause' SQL=SELECT a.`id`, b.`name`, b.`username`, c.`session_id`, GROUP_CONCAT( DISTINCT d.`group_id` SEPARATOR '|*|' ) AS `groups`, b.`email`, ( SELECT GROUP_CONCAT( e.`name` ) AS `plan_names` FROM `qujx_cbsubs_plans` AS e LEFT JOIN `qujx_cbsubs_subscriptions` AS f ON f.`plan_id` = e.`id` WHERE ( f.`user_id` = a.`id` ) ) AS `subscriptions`, b.`registerDate`, b.`lastvisitDate`, a.`banned`, b.`block`, a.`confirmed`, a.`approved` FROM `qujx_comprofiler` AS a INNER JOIN `qujx_users` AS b ON b.`id` = a.`id` LEFT JOIN `qujx_session` AS c ON c.`client_id` in (0,1) AND c.`userid` = a.`id` LEFT JOIN `qujx_user_usergroup_map` AS d ON d.`user_id` = a.`id` GROUP BY a.`id` ORDER BY a.`subscriptions` LIMIT 0, 20


Please upgrade to latest CB Nightly - this has been fixed.

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

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 4 months ago #266113 by petekuhn
Replied by petekuhn on topic MySQL error sorting users by subscription
I upgraded to the latest CB 2.0.9 nightly, and I was already at the CBSubs 2015.06.12 nightly build. The problem is still there.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 4 months ago #266140 by krileon
Replied by krileon on topic MySQL error sorting users by subscription
Was able to confirm your issue. Looks like filtering by subscription works, but sorting by subscription doesn't. Have created a bug ticket for further investigation. Press "Clear" to reset the sorting and filters then for now don't use the subscription sorting.

#5343


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.

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 4 months ago #266466 by petekuhn
Replied by petekuhn on topic MySQL error sorting users by subscription
I looked at Joomlapolis Forge to get a sense of when this might be fixed, and I couldn't find the issue at all (even status Any). Am I looking in the wrong place/in the wrong way? Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 4 months ago #266474 by krileon
Replied by krileon on topic MySQL error sorting users by subscription
Our CBSubs tracker is private. You won't be able to monitor CBSubs tickets. It's scheduled to be fixed for next release.


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: beatnantkrileon
Powered by Kunena Forum