Fatal error: Cannot re-assign $this in .../public_html/gallery/classes/gallery/UserDB.php on line 67

lwist

Joined: 2009-11-27
Posts: 9
Posted: Mon, 2011-09-26 02:48

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard). I can't run the configuration wizard. Get error below.
Gallery URL (optional but very useful): http://wist.org/gallery/setup/
Gallery version: Trying to upgrade to 1.5.10 from 1.4.2 (I believe)
Apache version:
PHP version (don't just say PHP 4, please): Just upgraded to 5
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

I started getting "Fatal error: Cannot re-assign $this in /home/wist002/public_html/gallery/classes/Album.php on line 604" when trying to view my gallery. After looking through the help files, I tried upgrading to 1.5.10 (before migrating to version 2), but now I am getting this error:

Fatal error: Cannot re-assign $this in /home/wist002/public_html/gallery/classes/gallery/UserDB.php on line 67

When I open UserDB.php line 67 says this:

$this = unserialize($tmp);

I saw another user had the same problem and the technician asked for this information:
* $Id: UserDB.php,v 1.26.6.1 2004/02/02 22:47:30 beckettmw Exp $

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2011-09-27 19:13

Hi,

probably me :-)

Nevertheless, it seems your upgrade was not complete?
That file version looks like 1.4.2, but not the upgraded 1.5.10.

Should be: * $Id: UserDB.php 17801 2008-08-05 23:10:49Z JensT $

Jens
--
Gallery 1.5.10 Developer

 
lwist

Joined: 2009-11-27
Posts: 9
Posted: Fri, 2011-09-30 17:37

By George, you're right on both counts! :-)

I re-upgraded and had to find a build of netpbm to upload too. It started updating my albums but seemed to have a hard time. Wasn't sure if it just needed more time, then discovered I should set some netpbm permissions to be executable. Most of the albums still don't have thumbnails, but some do:
http://wist.org/gallery/wist

The ones that do have a weird square showing at the corners:
http://www.wist.org/gallery/tahoe-2009

Not sure if I should go directly to the 2.0 upgrade or try to get everything processed in 1.5.10 first?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2011-10-01 11:20

Hi,

glad you could solve it.

You can recreate all thumbnails.

What do you mean with "weir square showing"?

Go to latest Gallery 2 (not 2.0), no need to fix visual things in 1.5.x

Jens
--
Gallery 1.5.11 Developer