11
sabahan
Re: OK a tough one, personally i quit (user.php and blank page)
  • 2006/12/8 11:37

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


actually, my user.php on my site also display a blank page and it is still blank right now previously i managed to fixed it by removing the empty lines in mainfile.php but now it doesn't solve the problem anymore...

when i turn the debug on (no error) or click my username and my members username on the who's online list/new members block i can access the users profile (userinfo.php) without no problem..

12
sabahan
Re: OK a tough one, personally i quit (user.php and blank page)
  • 2006/12/8 11:43

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


i can access userinfo.php?uid=(useridno) with php debug on or off...

so i'm thinking of modifying the user menu.template..by changing the view account link from /user.php to userinfo.php?uid=()

but i'm stuck on how to retrieve the login user id

13
gerasimos
Re: OK a tough one, personally i quit (user.php and blank page)
  • 2006/12/8 13:35

  • gerasimos

  • Not too shy to talk

  • Posts: 114

  • Since: 2005/4/28


If you take a look in userinfo.php to have an idea? unfortunately i don't know a lot of PHP

14
sabahan
Re: OK a tough one, personally i quit (user.php and blank page)
  • 2006/12/8 14:36

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


no need for me to worry about user.php blank anymore..i use the code below to replace the link for the "view account" in the system_block_user.html template

<a href="<{$xoops_url}>/userinfo.php?uid=<{$xoops_userid}>"><{$block.lang_youraccount}>a>


instead of displaying user.php (=blank page) it will directly show the user profile for the login user..which is accessible in my site..


15
gerasimos
Re: OK a tough one, personally i quit (user.php and blank page)
  • 2006/12/11 8:15

  • gerasimos

  • Not too shy to talk

  • Posts: 114

  • Since: 2005/4/28


Works like a Charm
Thank you Very much

16
ccrstudioweb
Re: OK a tough one, personally i quit (user.php and blank page)

Hi XOOPS users!!!

I have the blank pages as well, but in my case is a little diferent.
When a user posts a article, photo or so on, it will appear a link to the poster's profile as well. But when other user or a visitant clicks on this link the page
http://www.XXXXX.com/userinfo.php?uid=1 (or other #) appears blank.

1- getting out blank spaces on mainfile didi't work.
2- <{$block.lang_youraccount}> from sabahan didn't work


But I have a tip: When I log in as admin, I can see all the userinfos. Other user groups or visitants have the userinfo in a blank page...

Is it some kind of permission to access the userinfos???

Any help is welcome!!!!!!
Thanks!!!!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/

17
snow77
Re: OK a tough one, personally i quit (user.php and blank page)
  • 2007/5/8 21:28

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


I suffer the same symptom in one of the sites I have, I can see everybody elses user page except mine that just goes blank. No errors on debug. I'm thinking it can be the db data that went whacko somewhere cause it's a site that has had a long history of uprades.

18
ccrstudioweb
Re: OK a tough one, personally i quit (user.php and blank page)

When debugging on, I get:

Fatal error: Cannot redeclare class Category in /home/maispira/www/modules/newbb/class/category.php on line 62



This is the entire class of the file:
class Category extends XoopsObject {
var $db;
var $table;
var $groups_cat_access;

function Category()
{
$this->db = &Database::getInstance();
$this->table = $this->db->prefix("bb_categories");
$this->initVar('cat_id', XOBJ_DTYPE_INT);
$this->initVar('pid', XOBJ_DTYPE_INT, 0);
$this->initVar('cat_title', XOBJ_DTYPE_TXTBOX);
$this->initVar('cat_image', XOBJ_DTYPE_TXTBOX);
$this->initVar('cat_description', XOBJ_DTYPE_TXTAREA);
$this->initVar('cat_order', XOBJ_DTYPE_INT);
$this->initVar('cat_state', XOBJ_DTYPE_INT);
$this->initVar('cat_url', XOBJ_DTYPE_URL);
$this->initVar('cat_showdescript', XOBJ_DTYPE_INT);
}

function imgLink()
{
global $xoopsModule;

$ret = "" . "" . $this->getVar(";
return $ret;
}

function textLink()
{
global $xoopsModule;

$ret = "" . $this->getVar('cat_title') . "";
return $ret;
} //THIS IS LINE 62
} //THIS IS LINE 63




Really I've noticed that it beguns after installing the newbb
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/

19
ccrstudioweb
Re: OK a tough one, personally i quit (user.php and blank page)

Quote:
snow77
I suffer the same symptom in one of the sites I have, I can see everybody elses user page except mine that just goes blank.


I, as admin, can see mine and all others. But other people as visitant, user or even moderator can't.
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/

Login

Who's Online

233 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

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

Latest GitHub Commits