Fatal error: Call to undefined function: geteverybody()

natea

Joined: 2002-09-18
Posts: 3
Posted: Wed, 2002-09-18 16:22

I have installed Gallery and it was working just fine and then yesterday when I go to my gallery at <!-- BBCode Start --><A HREF="http://www.nateaune.com/gallery/" TARGET="_blank">http://www.nateaune.com/gallery/</A><!-- BBCode End --> it gives me this error message:

Fatal error: Call to undefined function: geteverybody() in /usr/www/users/jazkarta/nate/gallery/init.php on line 205

What could possible be causing this error? The only thing I have done to change the site is to use cgiwrap for my Moveable Type install. But that shouldn't affect Gallery should it?

Thanks in advance for any help you can provide.

Nate

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-09-19 04:38

It was working, then you made a change, now it's not working. I'd be suspicious of the change you made.

I'd start by checking classes/UserDB.php to make sure that it has the getEverybody() function.

 
natea

Joined: 2002-09-18
Posts: 3
Posted: Thu, 2002-09-19 22:15

Hi Bharat,

I did as you suggested and checked out the UserDB.php file for the geteverybody() function. It is there as:

function getEverybody() {
return $this->everybody;
}

Can you think of any other reason why it would report this error message? Is it possible that the permissions are set up incorrectly? I was unable to make the user "nobody" the owner of the files, so I had to chmod 777 everything. Could this mess something up?

Thanks,
Nate

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-21 08:19

Hmm. It's unclear to me what's going wrong in your case. My guess is that it's something in your environment (probably having to do with your recent change).

Try temporarily undoing your recent change and see if that affects the problem. If it does, you can start trying to narrow down the causes of the problem.

Alternatively, you can use my <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpWiki&amp;file=index&amp;pagename=Donation%20Based%20Support" TARGET="_blank">Donation Based Support</A><!-- BBCode End --> option.

 
natea

Joined: 2002-09-18
Posts: 3
Posted: Sat, 2002-09-21 23:11

Okay, I renamed my "gallery" directory to "gallery.bak", untarred the gallery.tar.gz file and tried reinstalling Gallery, first using the same Album directory and then a second time with creating a new album directory. In both cases I got an error on the last page of the configuration script (http://www.nateaune.com/photos/setup/index.php). In other words, I never get to the page where it says "Enter your album", because I get the following error message.

Fatal error: Call to undefined function: getorcreateuser() in /usr/www/users/jazkarta/nate/photos/setup/write.inc on line 75

Remember that this is a completely new install taken directly from the gallery tarball. I haven't modified ANY of the files. The only thing I could think of was that it has something to do with the .htaccess files. I renamed them to .htaccess.bak and tried it again, but the same problem.

I'm really stumped here. It was working before and now it's completely hosed, EVEN wth a completely new install. Now why would that be?

Nate

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-23 07:20

I'm at a loss as to why this is happening to you. It's got to be something about your local environment, but there are /so/ many things that could be going on there it's hard for me to tell what's going on. The best I can offer is the donation for support I mentioned in my last post.