Skip to Content Skip to Menu

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

[SOLVED] : Error 500 when connection to Admin

  • BO-Samson
  • BO-Samson
  • OFFLINE
  • Posts: 28
  • Thanks: 5
  • Karma: 0
11 years 9 months ago - 11 years 9 months ago #219630 by BO-Samson
Replied by BO-Samson on topic Re: Error 500 when connection to Admin
Hello,

now I found on cbactivity.class.php the following code:
Code:
$query = 'SELECT ' . $_CB_database->NameQuote( 'id' ) . "\n FROM " . $_CB_database->NameQuote( '#__comprofiler_members' ) . "\n WHERE " . $_CB_database->NameQuote( 'memberid' ) . " = " . (int) $userId . "\n AND " . $_CB_database->NameQuote( 'referenceid' ) . " = " . (int) $myId . "\n AND " . $_CB_database->NameQuote( 'accepted' ) . " = 1" . "\n AND " . $_CB_database->NameQuote( 'pending' ) . " = 0";

I think this should be the query.

I hope this can help solving the problem.

Regards
Samson
Last edit: 11 years 9 months ago by BO-Samson.

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

  • BO-Samson
  • BO-Samson
  • OFFLINE
  • Posts: 28
  • Thanks: 5
  • Karma: 0
11 years 9 months ago - 11 years 9 months ago #219645 by BO-Samson
Replied by BO-Samson on topic Re: Error 500 when connection to Admin

Try running the query below directly in phpmyadmin and see what happens.

Code:
SELECT `id` FROM `akdvi_comprofiler_members` WHERE `memberid` = 473 AND `referenceid` = 506 AND `accepted` = 1 AND `pending` = 0

Edit: I see the issue. The "id" column does not exist in the database table. I've no idea where this query is coming from though. I've searched all of CB and don't see a such a query being made in source. Do you have a CB Query Field setup to do such a query? Perhaps a 3rd party module that's displayed on the userlist?


For answering your question: phpByAdmin says how expected: "#1054 - Unknown column 'id' in 'field list'"

But for me it seems, as this query comes from CB-code. See previous post, please. How will we go on? I really hope, we can solve this.
Last edit: 11 years 9 months ago by BO-Samson.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago - 11 years 9 months ago #219658 by krileon
Replied by krileon on topic Re: Error 500 when connection to Admin
I see, that's in the access check; good find. Please make the following change and see if issue continues.

FROM:
Code:
'SELECT ' . $_CB_database->NameQuote( 'id' )
TO:
Code:
'SELECT COUNT(*)'

I've made this change already 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.
Last edit: 11 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219671 by krileon
Replied by krileon on topic Re: Error 500 when connection to Admin
CB Activity 2.2.0 has released with this fix already applied. Also new to 2.2.0 it comes pre-packaged with an activity module.


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.

  • BO-Samson
  • BO-Samson
  • OFFLINE
  • Posts: 28
  • Thanks: 5
  • Karma: 0
11 years 9 months ago #219674 by BO-Samson
Replied by BO-Samson on topic Re: Error 500 when connection to Admin
Wow, that was fast! Your changes seem to work great. We do a "big" test (12 users) at this moment. I will report, if any errors appear.

Can I install CB Activity "over" the existing one or should I deinstall the old version?

Thank you for your help!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219677 by krileon
Replied by krileon on topic Re: Error 500 when connection to Admin

Can I install CB Activity "over" the existing one

Yup, all your configuration will remain as well.


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