I have a problem AND a solution! Woot!
Environment: Joomla 1.0.12 & CB 1.0.2 & Tabs 1.02
My servers are set to strict and show warnings and errors, so this was bugging the heck out of me! I didn't see this in any other thread so I wanted to post the solution I found...
[code:1]Notice: Undefined property: stdClass::$fields in /Users/Sites/girlscouts/administrator/components/com_comprofiler/comprofiler.class.php on line 2976[/code:1]
To fix the above error, find the line, which should be the if statement below:
[code:1]
if($oTab->fields) {
$_CB_OneTwoRowsStyleToggle = $tabOneTwoRowsStyleToggle[$pos];
$oContent[$k] .= $this->_getViewTabContents($oTab->tabid,$user);
$tabOneTwoRowsStyleToggle[$pos] = $_CB_OneTwoRowsStyleToggle;
}
[/code:1]
And change it to look like this one:
[code:1]
if(isset($oTab->fields)) {
$_CB_OneTwoRowsStyleToggle = $tabOneTwoRowsStyleToggle[$pos];
$oContent[$k] .= $this->_getViewTabContents($oTab->tabid,$user);
$tabOneTwoRowsStyleToggle[$pos] = $_CB_OneTwoRowsStyleToggle;
}
[/code:1]
At this point, I do not know why the element was empty, but it is related to something that listtabs is doing.
Also, a similar problem manifested itself in the previous version of CommunityBuilder.
[code:1]Warning: htmlspecialchars() expects parameter 1 to be string, array given in /Users/Sites/girlscouts/administrator/components/com_comprofiler/comprofiler.class.php on line 1740[/code:1]
After updating I thought it went away, but it ended up here on my live server
[code:1]Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/Sites/girlscouts/administrator/components/com_comprofiler/comprofiler.class.php on line 2156
[/code:1]
On this line, when you var_dump($fields), the $fields parameter was a single array element with a structure contained within, rather than just the element.
It looks like the difference is somewhere in the DB because the code has been copied straight from the test machine to the server... If you have a clue what might be different, I'd love to hear of it.
Post edited by: Weatherangel, at: 2007/02/14 05:25
Post edited by: Weatherangel, at: 2007/02/14 05:26