Skip to Content Skip to Menu

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

[#5336] Error on using Statistics search function

  • jross
  • jross
  • OFFLINE
  • Posts: 63
  • Thanks: 2
  • Karma: 0
  • Add-ons
9 years 4 months ago - 9 years 4 months ago #265893 by jross
Hi, on my client site, using J3.4.1 and the latest versions of CB and CB Subs, I get the following error when doing a statistics search

1054 Unknown column 'a.time_completed' in 'where clause' SQL=SELECT COUNT( DISTINCT b.`time_completed_yearmonth` ) FROM `jos_cbsubs_payment_items` AS a LEFT JOIN `jos_cbsubs_payment_baskets` AS b ON b.`id` = a.`payment_basket_id` LEFT JOIN `jos_cbsubs_currencies` AS c ON c.`currency` = 'AUD' LEFT JOIN `jos_cbsubs_currencies` AS d ON d.`currency` = a.`currency` LEFT JOIN `jos_cbsubs_payment_baskets` AS e ON e.`id` = a.`payment_basket_id` WHERE ( b.`time_completed_yearmonth` > '0000-00' ) AND ( a.`plan_id` = 2 ) AND ( a.`currency` = 'AUD' ) AND ( a.`time_completed` >= '2015-05-31 22:00:00' ) AND ( a.`time_completed` > date_sub(NOW(), INTERVAL 1 MONTH) )

Can you help explain why this is happening and what I should do to fix it?

Thanks, JR
Last edit: 9 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265911 by krileon
Replied by krileon on topic Error on using Statistics search function
Please provide what exact search you're using and on what page (e.g. payments monthly, weekly, sales monthly, etc..). Please also upgrade to the below nightly releases and confirm if your issue persists.

CB 2.x Nightly:
www.joomlapolis.com/downloads/doc_details/640-community-builder-nightly-build

CBSubs 4.x Nightly:
www.joomlapolis.com/downloads/doc_details/671-cbsubs-gpl-nightly-build


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.

  • jross
  • jross
  • OFFLINE
  • Posts: 63
  • Thanks: 2
  • Karma: 0
  • Add-ons
9 years 4 months ago #265922 by jross
Replied by jross on topic Error on using Statistics search function
Hi, I have loaded both nightly builds and still get the error.

I am doing a search using Payment Free Query and then a search on one plan and with a starting date of 1st June, 2015. I have also tried doing searches with Payments Monthly, Sales Monthly, etc. They all lead to a similar error. I have tried searches with a defined start and end date but still get an error.

??

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265924 by krileon
Replied by krileon on topic Error on using Statistics search function
Are there any other filters being used besides the from and up to date filters? Seams to be working fine in my tests. Below is a screenshot of it working fine.



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.
Attachments:

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

  • jross
  • jross
  • OFFLINE
  • Posts: 63
  • Thanks: 2
  • Karma: 0
  • Add-ons
9 years 4 months ago #265946 by jross
Replied by jross on topic Error on using Statistics search function
Yes, try selecting New Membership Subscription from the Plans dropdown. I get an error every time.
Thanks - JR

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265990 by krileon
Replied by krileon on topic Error on using Statistics search function
Ok, it's the Plan filter that's doing it. You can use the date filters, but avoid the Plan filter for now. Have created a bug ticket for further investigation. Logging out will clear the filter.

#5336


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