Skip to Content Skip to Menu

[#7997] Some Communiy Builder Running which does not clear

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
4 years 6 months ago #318393 by krileon

Is is this file right: pkg_communitybuilder_2.4.5+build.2020.05.07.21.35.06.e8f8a6125.zip

Yes.

Does the other plugins require updates as well?

Nope, issue with that query was entirely in core CB.


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.

4 years 6 months ago #318408 by edmundcheong
Replied by edmundcheong on topic Some Communiy Builder Running which does not clear
Code:
if ( $_CB_database->isDbCollationCaseInsensitive() ) { $query .= "\n WHERE ( u." . $_CB_database->NameQuote( 'username' ) . " = " . $_CB_database->Quote( trim( $username ) ) . ' OR c.' . $_CB_database->NameQuote( 'alias' ) . ' = ' . $_CB_database->Quote( trim( $username ) ) . ' )';

Just checked comprofiler.php, it seems that this look like the original. This one doesn't require to be changed? Near line 1126..

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
4 years 6 months ago #318410 by krileon
The check in performCheckUsername within comprofiler.php was changed. Are you sure your install has the latest build installed? I've manually downloaded it and reviewed its files and appears 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.

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

4 years 6 months ago - 4 years 6 months ago #318415 by edmundcheong
Replied by edmundcheong on topic Some Communiy Builder Running which does not clear
I have checked the mysql process list and the following code is still stacking up in the queue.
Code:
SELECT u.`id` FROM `#_comprofiler` AS c INNER JOIN `#_users` AS u ON u.`id` = c.`id` WHERE ( u.`username` = 'xxxxx' OR c.`alias` = 'xxxxx' ) LIMIT 0, 1

My CB is 2.4.5+build.2020.05.07.21.35.06.e8f8a6125
Last edit: 4 years 6 months ago by edmundcheong.

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

4 years 6 months ago - 4 years 6 months ago #318423 by edmundcheong
Replied by edmundcheong on topic Some Communiy Builder Running which does not clear

krileon wrote: The check in performCheckUsername within comprofiler.php was changed. Are you sure your install has the latest build installed? I've manually downloaded it and reviewed its files and appears fine.


Below is the where statement from comprofiler.php at performCheckUsername
Code:
if ( $function == 'testexists' ) { if ( $_CB_database->isDbCollationCaseInsensitive() ) { $query .= "\n WHERE u." . $_CB_database->NameQuote( 'username' ) . " = " . $_CB_database->Quote( trim( $username ) ); } else { $query .= "\n WHERE LOWER( u." . $_CB_database->NameQuote( 'username' ) . " ) = " . $_CB_database->Quote( strtolower( trim( $username ) ) ); } } else { if ( $_CB_database->isDbCollationCaseInsensitive() ) { $query .= "\n WHERE ( u." . $_CB_database->NameQuote( 'username' ) . " = " . $_CB_database->Quote( trim( $username ) ) . ' OR c.' . $_CB_database->NameQuote( 'alias' ) . ' = ' . $_CB_database->Quote( trim( $username ) ) . ' )'; } else { $query .= "\n WHERE ( LOWER( u." . $_CB_database->NameQuote( 'username' ) . " ) = " . $_CB_database->Quote( strtolower( trim( $username ) ) ) . ' OR LOWER( c.' . $_CB_database->NameQuote( 'alias' ) . ' ) = ' . $_CB_database->Quote( strtolower( trim( $username ) ) ) . ' )'; } } $_CB_database->setQuery( $query, 0, 1 );

when you say manually download it, meaning you downloaded the pkg_communitybuilder_2.4.5+build.2020.05.07.21.35.06.e8f8a6125.zip?

There's no comprofiler.php in that zip file.
Last edit: 4 years 6 months ago by edmundcheong.

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
4 years 6 months ago #318425 by beat
Just install the latest CB package and it will upgrade your CB including that file, which is in a folder inside a zip inside a folder of the zip (standard disclaimer: backup before as usual).

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: edmundcheong

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

Moderators: beatnantkrileon
Powered by Kunena Forum