Skip to Content Skip to Menu

Fatal Error foreach() on User List after Upgrading

11 years 9 months ago #209913 by mattchew61
Hi!

I have a Joomla 1.5.26 site and upgraded Community Builder from 1.3.1 to 1.8.1. It seems to have worked except for a fatal error in all the user lists I set up.

With debug mode turned off, the page shows this error:

Warning: Invalid argument supplied for foreach() in /home/westlake/public_html/new-westlake/administrator/components/com_comprofiler/library/cb/cb.lists.php on line 347
There is an error in the database query. Site admin can turn site debug to on to view and fix the query.

With debug mode turned on, the page shows the errors in the attached screenshot.

Not sure how I can troubleshoot this issue, as I'm very new to Community Builder, PHP & MySQL.

Thanks for your help!

Matthew
Attachments:

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 47949
  • Thanks: 8170
  • Karma: 1434
11 years 9 months ago #209921 by krileon
Looks like cb_expirationdate is in _users and _comprofiler. Please delete this column from _users. It should not be in 2 tables at the same time that are commonly joined together. As for the foreach (when no users are returned) this is a known issue; please see below bug ticket.

forge.joomlapolis.com/issues/3675


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.

11 years 9 months ago #209948 by mattchew61
Thanks for the reply, Kyle!

What database is the _users table in? I am trying to remove the column cb_expirationdate per your instructions but can't find it. Please tell me the the database and full table name where the column is located.

Thanks!

Matthew

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 47949
  • Thanks: 8170
  • Karma: 1434
11 years 9 months ago #209970 by krileon
It's in your Joomla database. The only way it would've been added to _users is if you added it manually or some sort of 3rd party extension/plugin did. Do not remove it from _comprofiler. If it's not present in _users then that's not the issue. I'm guessing you've added this as a filter to your userlists; try the following advanced filter instead.

ue.`cb_expirationdate` > NOW()


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.

11 years 9 months ago #209984 by mattchew61
I added the advanced filter script you wrote, but unfortunately the error message is the same.

Also, my host admin could not find the cb_expirationdate in the database westlake_westl1 or the table westlake_west1.jos_users per your instructions. So probably thats not the problem as you said.

Ready for the next step in troubleshooting!

Thanks, Kyle!

Matthew

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

11 years 9 months ago #209986 by mattchew61
I should add that this problem did not appear until we upgraded from CB 1.3.1 to CB 1.8.1.

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

Moderators: beatnantkrileon
Powered by Kunena Forum