1
dalmatino
User info problem
  • 2006/9/18 19:50

  • dalmatino

  • Just popping in

  • Posts: 16

  • Since: 2006/3/17


Please can anybody help me about my userinfo white page??

when i click on my userinfo i see only white page...i was turn on debug report but still nothing...

2
tripmon
Re: User info problem
  • 2006/9/18 20:28

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


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(''''50,
$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

3
dalmatino
Re: User info problem
  • 2006/9/18 21:24

  • dalmatino

  • Just popping in

  • Posts: 16

  • Since: 2006/3/17


Thank you,I deactivate all my modules and I find bug...the problem was in extcal modules...so I deleted that module..

Thnx

Login

Who's Online

577 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 577


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits