Hello,
Using joomla 1.0.13 and CB 1.1
I having some major problems after my hosting provider upgraded to PHP5 (from 4.4). My userlist (search list) isn't showing anymore, after 6 days I'm still not able to fix this. My website is about searching with this userlist, so this is my biggest nightmare since the upgrade started to PHP5 (7 days ago..).
It's about de following (original) code from
comprofiler.html.php:
[code:1]function getUserListCell( &$user, &$column, &$fields, $option_itemid ){
$htmlFields = array();
foreach ( $column->fields as $fieldId ) {
$field = $fields[$fieldId];
$name = $field->name;
$title = "";
if ( $column->captions ) {
$title = getLangDefinition( $field->title ) . ': ';
}
$html = getFieldValue( $field->type, $user->$name, $user, $title, 0,
( $field->type=="predefined" ? sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=" . $user->id . $option_itemid ) : null ) );
}
return implode( '<br />', $html );
}[/code:1]
This crashes the site completely.. And after this small change I will manage to get the site back to color, but everything shows "implode" and not an avatar and user data...
[code:1]$user->$name[/code:1]
to..
[code:1]$user->name[/code:1]
And if I put some "echo's" within the code, also in
comprofiler.class.php I see that the output is not what it has to be. somehow he uses completely wrong tables from my database
Joomlapolis team, or somebody else can you please advise me what peace of code I have to change to fix this strange behavior after upgrade to PHP version 5?
Many thanks in advanced!
Regards,
Rstyle
Post edited by: Rstyle, at: 2009/01/14 09:14