Fatal error: Cannot re-assign $this in ...../modules/gallery/classes/gallery/User.php on line 37

coliseum

Joined: 2002-12-22
Posts: 17
Posted: Mon, 2007-12-24 12:48

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): ..../public_html/modules/gallery/
Gallery version:1.3.3
Apache version:2.0
PHP version (don't just say PHP 4, please):5.2.5
Graphics Toolkit:netpbm
Operating system: linux
Web browser/version (if applicable): mozilla and ie

the database server crashed and when we uploaded the backup, i started getting this error:

Fatal error: Cannot re-assign $this in .../public_html/modules/gallery/classes/gallery/User.php on line 37

when i accessed the site afte the crash, i did find that the permissions were changed. it also seems that the web hosting provider upgraded the server softwares...

Any help is appreciated... i have installed gallery on a number of sites I have, but tis is the first time this happens to me...

i do have a version of Gallery 2 running, but i dont use it because i have 25000 pictures on the G1 application, so migrating is really a nightmare...

thanks

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-12-25 16:59

Hi,

PHP5 is supported by Gallery 1.5.3 and newer.
Your Version is outdated (and has BIG security issues)

So you can choose the pain... Upgrade to a recent G1, or migrate to G2.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
techy

Joined: 2009-03-24
Posts: 1
Posted: Tue, 2009-03-24 11:12

Hi,
I am also facing similar problem

Cannot re-assign $this in /home/xyz/public_html/gallery/classes/Album.php on line 561

My host provider has changed the version of php from 4 to 5. Earlier it was working fine. The version of gallery is 1.69.

I am not able to get login in admin of gallery also.

Please tell me what can I do?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2009-03-24 20:14

Galler 1.69?!?

The latest is either 1.5.10 or 1.6-RC3

Jens
--
Gallery Developer