[#7831] debug error cb.menu.php

2 months 1 week ago - 2 months 1 week ago #316430 by ericmuc
by switching on the debug in Joomla, I got this error:
Warning: count(): Parameter must be an array or an object that implements Countable in /www/htdocs/w0177c07/www/realswap.net/components/com_comprofiler/plugin/user/plug_cbmenu/cb.menu.php on line 1575

changing from
for ( $i = 0, $pmc = count( $pm ); $i < $pmc; $i++ ) {
for ( $i = 0, $pmc = count((array) $pm ); $i < $pmc; $i++ ) {
solved it.
Best regards
2 months 1 week ago #316433 by krileon
Issue is with the default assignment of $_menus in CBs plugin class. It's initialized as null and should be an empty array. Have added a bug ticket to fix.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
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 EST to 4:00 PM EST. 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.
The following user(s) said Thank You: nant
Moderators: beatnantkrileon
Time to create page: 0.417 seconds

Facebook Twitter LinkedIn