Fatal error: Call to a member function on a non-object in c:

vooi

Joined: 2002-08-28
Posts: 1
Posted: Wed, 2002-08-28 07:34

Hi! Firstly, thanks for a great piece of software..

I recently installed Gallery on my Win NT 4.0 server with Apache, PHP..

After a successful installation and configuration I was able to create/delete albums from the NT machine, but once I go to another machine on the intranet, I get the error:

Fatal error: Call to a member function on a non-object in c:phpdevwwwpublicgalleryclassesUser.php on line 155

when I try to delete or create an album.. (well, delete gives me a line 143 error)

any ideas?

Thanks!

Vincent

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-08-29 05:21

This typically means that Gallery is unable to read your album data file for one reason or another. Unfortunately, it's very hard for me to remotely debug this on a Windows box. The:

$ret = $gallery->album->load($gallery->session->albumName);

line in init.php is failing. It may be because $gallery->session->albumName is
not defined correctly (which might be a session problem) or it might be because
the data file is corrupted. Give me the URL to your Gallery and I'll see if I can
examine it remotely.