This is usually caused by a module using a search parameter that interferes with userinfo.php.
Try disabling (not removing) any modules you have added recently... once you find the offender you can decide what to do...
Of course there is another fix, but it will remove the 'posted' info on the userpages. Which means you will be able to see the users information, but not what they have posted to the site. If you go this route, you can likley leave the offending module running with no problems.
This can be remedied by commenting out the last section
of userinfo.php:
it's a cheesy fix, as it will cause userinfo.php to no
longer display the users latest posts, but it will fix a blank page.
All you are doing below is adding the opening and closing comment tags in the proper places... /* and */
find this code in user.php:
/* <=ADD THIS COMMENT ABOVE
$module_handler =& xoops_gethandler('module');
$criteria = new CriteriaCompo(new Criteria('hassearch',
1));
$criteria->add(new Criteria('isactive', 1));
$mids =& array_keys($module_handler->getList($criteria));
foreach ($mids as $mid) {
// Hack by marcan : only return results of modules
for which user has access permission
if ( $gperm_handler->checkRight('module_read', $mid,
$groups)) {
$module =& $module_handler->get($mid);
$results =& $module->search('', '', 5, 0,
$thisUser->getVar('uid'));
$count = count($results);
if (is_array($results) && $count > 0) {
for ($i = 0; $i < $count; $i++) {
if (isset($results[$i]['image']) &&
$results[$i]['image'] != '') {
$results[$i]['image'] =
'modules/'.$module->getVar('dirname').'/'.$results[$i]['image'];
} else {
$results[$i]['image'] =
'images/icons/posticon2.gif';
}
if (!preg_match("/^http[s]*:///i",
$results[$i]['link'])) {
$results[$i]['link'] =
"modules/".$module->getVar('dirname')."/".$results[$i]['link'];
}
$results[$i]['title'] =
$myts->makeTboxData4Show($results[$i]['title']);
$results[$i]['time'] = $results[$i]['time']
? formatTimestamp($results[$i]['time']) : '';
}
if ($count == 5) {
$showall_link = '
href="search.php?action=showallbyuser&mid='.$mid.'&uid='.$thisUser->getVar('uid').'">'._US_SHOWALL.'';
} else {
$showall_link = '';
}
$xoopsTpl->append('modules', array('name' =>
$module->getVar('name'), 'results' => $results,
'showall_link' => $showall_link));
}
unset($module);
}
}
ADD THIS COMMENT BELOW => */
GL