xoops forums

terrion

Friend of XOOPS
Posted on: 2013/8/27 20:19
terrion
terrion (Show more)
Friend of XOOPS
Posts: 299
Since: 2004/9/19
#1

After 2.5.6 upgrade profile module gives white screen

Last night I updated one of my sites from xoops 2.5.5 to 2.5.6 and now when i try to view someones profile I get a blank white screen. I turned on the inline debugger and got the following error message on the screen:

Fatal error: Cannot make static method MyTextSanitizer::getInstance() non static in class MyAlbumTextSanitizer in /home/content/35/3698335/html/totjf/modules/myalbum/class/myalbum.textsanitizer.php on line 7

Any ideas how to fix this?

redheadedrod

Home away from home
Posted on: 2013/8/27 20:59
redheadedrod
redheadedrod (Show more)
Home away from home
Posts: 1296
Since: 2008/2/26
#2

Re: After 2.5.6 upgrade profile module gives white screen

Did you also update the module to the one included?

Mamba

Moderator
Posted on: 2013/8/27 23:58
Mamba
Mamba (Show more)
Moderator
Posts: 10986
Since: 2004/4/23
#3

Re: After 2.5.6 upgrade profile module gives white screen

go to:
myalbum/class/myalbum.textsanitizer.php

and around line 35 add the word "static" to function &getInstance(), so it looks like this:

static function &getInstance()


or go and download the latest version of MyAlbum...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

terrion

Friend of XOOPS
Posted on: 2013/8/28 5:14
terrion
terrion (Show more)
Friend of XOOPS
Posts: 299
Since: 2004/9/19
#4

Re: After 2.5.6 upgrade profile module gives white screen

Thanks Mamba, that completely fixed my problem.

option

Just popping in
Posted on: 2014/3/12 4:34
option
option (Show more)
Just popping in
Posts: 50
Since: 2006/5/24
#5

Re: After 2.5.6 upgrade profile module gives white screen

Te amo Mamba :)
Quote:

Mamba wrote:
go to:
myalbum/class/myalbum.textsanitizer.php

and around line 35 add the word "static" to function &getInstance(), so it looks like this:

static function &getInstance()


or go and download the latest version of MyAlbum...

guspel

Just popping in
Posted on: 8/2 23:53
guspel
guspel (Show more)
Just popping in
Posts: 12
Since: 2012/2/25
#6

Re: After 2.5.6 upgrade profile module gives white screen

Quote:

Mamba wrote:
go to:
myalbum/class/myalbum.textsanitizer.php

and around line 35 add the word "static" to function &getInstance(), so it looks like this:

static function &getInstance()


or go and download the latest version of MyAlbum...


Thanks you very much. Mamba