[spoiler title=1. Fix für Joomla 1.5 + CommunityBuilder 1.2.1]
Fehlermeldung im Frontend und Backend war:
Warning: call_user_func_array() expects parameter 2 to be array, string given in /users/XYZ/www/administrator/components/com_comprofiler/plugin.foundation.php on line 1523
Ich habe mir jetzt hier nicht alle Seiten durchgelesen, aber wollte nur mal meinen persönlichen Fix zumindest hier mal hinschreiben. Ob dadurch andere Probleme entstehen kann ich noch nicht sagen.
Joomla Files:
/libraries/joomla/document/document.php
function addStyleSheet($url, $type = 'text/css', $media = null, $attribs = array())
{
$find = '.css';
if (is_array($url)) {
while ($urlpos = current($url)) {
if (strpos($urlpos, $find)) {
//echo key($url).'<br />';
//echo "URLPOS: ".$urlpos;
$urlfound = $url[key($url)];
//echo $urlfound;
}
next($url);
}
if ($urlfound) $url = $urlfound;
}
$this->_styleSheets[$url]['mime'] = $type;
$this->_styleSheets[$url]['media'] = $media;
$this->_styleSheets[$url]['attribs'] = $attribs;
}
Community Builder Files:
/administrator/components/com_comprofiler/plugin.foundation.phpfunction _tryCmsDoc( $type, $params ) {
if ( $this->_cmsDoc ) {
if (is_string($params)) {
//HACK PHP 5.3
$params = func_get_args();
array_shift($params);
foreach($params as $k => &$param){
$params[$k] = &$param;
}
}
call_user_func_array( array( $this->_cmsDoc, $type ), $params );
return true;
}
return false;
}
/administrator/components/com_comprofiler/plugin.class.phpfunction drawListBody( &$users, &$columns, $tableContent, $listid, $allow_profilelink ) {
$this->users =& $users;
$this->columns =& $columns;
$this->tableContent =& $tableContent;
$this->listid = $listid;
$this->allow_profilelink = $allow_profilelink;
return $this->draw( 'Body' );
}
INFO (DEBUG)
UPDATE Fix für Joomla 1.5 + CommunityBuilder 1.2.1 + PHP 5.3
Ich habe hier eine neue gefixte "plugin.foundation.php", welche nun hoffentlich besser funktioniert bzw. richtig und auch die nötigen Styles richtig hinzufügt.
Zusätzlich habe ich mal eine DEBUG-Version der Datei beigelegt, daran sieht man, was VORHER an die Funktion übergeben wird un was NACHHER nach dem Bearbeiten rauskommt. Nur für Analysezwecke gedacht.
[/spoiler]