1
LordPeter
Xoops 2.3.2 user.php blank after yogurt 3..3_RC2
  • 2008/11/27 13:57

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


Hi Guy's

After install yogurt 3.3 rc 2 on to my XOOPS 2.3.2 also in 2.3.1 , when i try to vieuw my account in user menu then it turn blank, when is choose to display errors on webpage it show my the view account page but with 4 errors

Quote:

Warning: MyTextSanitizer::makeTareaData4Show is deprecated in file /class/module.textsanitizer.php line 680

Warning: MyTextSanitizer::makeTareaData4Show is deprecated in file /class/module.textsanitizer.php line 680

Warning: MyTextSanitizer::makeTboxData4Show is deprecated in file /class/module.textsanitizer.php line 646

Warning: MyTextSanitizer::makeTboxData4Show is deprecated in file /class/module.textsanitizer.php line 646



Module.textsanitizer.php lines 644 till 683
Quote:

function makeTboxData4Show($text, $smiley=0)
{
trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text = $this->htmlSpecialChars($text);
return $text;
}

function makeTboxData4Edit($text)
{
trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
return $this->htmlSpecialChars($text);
}

function makeTboxData4Preview($text, $smiley=0)
{
trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text = $this->stripSlashesGPC($text);
$text = $this->htmlSpecialChars($text);
return $text;
}

function makeTboxData4PreviewInForm($text)
{
trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text = $this->stripSlashesGPC($text);
return $this->htmlSpecialChars($text);
}

function makeTareaData4Save($text)
{
trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
return $this->addSlashes($text);
}

function &makeTareaData4Show(&$text, $html=1, $smiley=1, $xcode=1)
{
trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text = $this->displayTarea($text, $html, $smiley, $xcode);
return $text;
}


Does anybody know how to fix this?

Greets,
lp

2
ghia
Re: Xoops 2.3.2 user.php blank after yogurt 3..3_RC2
  • 2008/11/27 14:04

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You meant 2.3.2a?

These are not errors but warnings to the module developers.
They may be ignored by the users.
If you want to get rid of it place them in comment:
function makeTboxData4Show($text$smiley=0)
{
// trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text $this->htmlSpecialChars($text);
return 
$text;
}

function 
makeTboxData4Edit($text)
{
// trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
return $this->htmlSpecialChars($text);
}

function 
makeTboxData4Preview($text$smiley=0)
{
// trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text $this->stripSlashesGPC($text);
$text $this->htmlSpecialChars($text);
return 
$text;
}

function 
makeTboxData4PreviewInForm($text)
{
// trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text $this->stripSlashesGPC($text);
return 
$this->htmlSpecialChars($text);
}

function 
makeTareaData4Save($text)
{
// trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
return $this->addSlashes($text);
}

function &
makeTareaData4Show(&$text$html=1$smiley=1$xcode=1)
{
// trigger_error(__CLASS__."::".__FUNCTION__.' is deprecated', E_USER_WARNING);
$text $this->displayTarea($text$html$smiley$xcode);
return 
$text;
}


I have no explaination of how turning on debugging makes the difference between a white page and showing you your account page, but it concerns me.

3
LordPeter
Re: Xoops 2.3.2 user.php blank after yogurt 3..3_RC2
  • 2008/11/27 14:28

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


Hi ghia,
My current XOOPS version is the 2.3.2 security release.

I notice that when i adjust the userinfo.php in my root with the next value
Quote:

$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();
}

It went blank after 24 houres or something, not sooner, when i dont make any changes in to userinfo.php then there's nothing wrong with viewing my account.

Thanks anyway fot the helpfull temporary solution to get rid off these messages, but surly it's a concern for the mind.
Greets,
lp

4
ghia
Re: Xoops 2.3.2 user.php blank after yogurt 3..3_RC2
  • 2008/11/27 15:16

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
I notice that when i adjust the userinfo.php in my root with the next value
$uid intval($_GET['uid']);
    if (
$uid <= 0) {
    
redirect_header('index.php'3_US_SELECTNG);
    exit();
    }

It went blank after 24 houres or something, not sooner, when i dont make any changes in to userinfo.php then there's nothing wrong with viewing my account.

I do not understand what you modified (from what to what) to solve the problem.
The above code is present in /userinfo.php from 2.3.2a.

5
LordPeter
Re: Xoops 2.3.2 user.php blank after yogurt 3..3_RC2
  • 2008/11/27 18:38

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


i see litle mistake

Quote:

$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();
}
header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);
exit();


Thanks

6
Wonderfish1
Re: Xoops 2.3.2 user.php blank after yogurt 3..3_RC2

Ghia,

Where (in which file) do you find that code?

Thanks,
Tim

[EDIT] meaning the code to comment out the error messages.

[Edit2] I found the file and commented out HEAPS of those error messages - which are the minimum necessary to comment out?

Login

Who's Online

125 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 125


more...

Donat-O-Meter

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

Latest GitHub Commits