php warning on CB 2.0
- activha
- OFFLINE
- Posts: 2279
- Thanks: 113
- Karma: 13
I have noticed the following warning on CB 2.0 for your info
Warning: key() expects parameter 1 to be array, string given in /Applications/MAMP/htdocs/mysite.com/libraries/CBLib/CB/Legacy/CBuser.php on line 729
Please Log in or Create an account to join the conversation.
- beat
- ONLINE
- Posts: 8176
- Thanks: 528
- Karma: 352
activha wrote: Hello
I have noticed the following warning on CB 2.0 for your info
Warning: key() expects parameter 1 to be array, string given in /Applications/MAMP/htdocs/mysite.com/libraries/CBLib/CB/Legacy/CBuser.php on line 729
At very first glance this seems due to a menu that you are referring to in a CB substitution to display that menu or its link in a given location, but that this menu doesn't exist anymore in CB 2.0. It could be the "About Community Builder" menu, if you didn't personalize that one, it gets removed by the upgrade.
We need to further investigate this warning and will fix it.
I have opened bug tracker #4759 to track this issue.
In the mean time, if you have no idea which menu that could be, you can replace that line 729 by:
to silence the warning. Or to find the menu that is referenced to, echo $cbMenuTreePath.
Wishing you a great end of weekend and Best Regards,
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
Please Log in or Create an account to join the conversation.
- activha
- OFFLINE
- Posts: 2279
- Thanks: 113
- Karma: 13
At very first glance this seems due to a menu that you are referring to in a CB substitution to display that menu or its link in a given location, but that this menu doesn't exist anymore in CB 2.0. It could be the "About Community Builder" menu, if you didn't personalize that one, it gets removed by the upgrade.
That was exactly it !
A menu which added a connection and do not exist any longer in CB 2.0
Debugging with echo was great
Thanks a lot
Jean
Please Log in or Create an account to join the conversation.
- beat
- ONLINE
- Posts: 8176
- Thanks: 528
- Karma: 352
activha wrote:
At very first glance this seems due to a menu that you are referring to in a CB substitution to display that menu or its link in a given location, but that this menu doesn't exist anymore in CB 2.0. It could be the "About Community Builder" menu, if you didn't personalize that one, it gets removed by the upgrade.
That was exactly it !
A menu which added a connection and do not exist any longer in CB 2.0
Debugging with echo was great
Thanks a lot
Jean
Great!
And strange at the same time, CB 2.0 didn't remove the "Add connection" menu. But of course it's available only when it makes sense, as before... Are you sure you didn't have that warning since some time but the errors displays were suppressed on your hosted environment ?
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
Please Log in or Create an account to join the conversation.
- activha
- OFFLINE
- Posts: 2279
- Thanks: 113
- Karma: 13
Anyway thanks for the hint
Please Log in or Create an account to join the conversation.