Skip to Content Skip to Menu

[#7831] debug error cb.menu.php

  • ericmuc
  • ericmuc
  • OFFLINE
  • Posts: 390
  • Thanks: 30
  • Karma: 2
  • Add-ons
4 years 9 months ago - 4 years 9 months ago #316430 by ericmuc
[#7831] debug error cb.menu.php was created by ericmuc
Hi,
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
Code:
for ( $i = 0, $pmc = count( $pm ); $i < $pmc; $i++ ) {
to
Code:
for ( $i = 0, $pmc = count((array) $pm ); $i < $pmc; $i++ ) {
solved it.
Best regards
Eric
Last edit: 4 years 9 months ago by krileon. Reason: Added [#7831] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
4 years 9 months ago #316433 by krileon
Replied by krileon on topic debug error cb.menu.php
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.

forge.joomlapolis.com/issues/7831


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.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum