Provider changed php, I tried to upgrade...

lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 00:26

My provider changed their php config which caused a 500 Internal Server error when accessing gallery. I emailed to ask them about it and thiswas their response.

Quote:
It is possible that your site is down because it is using register_global which is now disable completely by PHP because of the rising security problem with it. You will need to recode the gallery to make it work again. If it is using .htaccess to enable register_global, you need to remove the line to make the site back online. However, the codes that rely on global variable will not work.

I followed some directions I found elsewhere on this forum and deleted my .htaccess and it worked. I then decided to upgrade to gallery 1.4.3-pl2 and now I'm getting this error when I try to go into the configuration wizard. Please help!!!

Quote:
Fatal error: Cannot redeclare gallery_languages() (previously declared in /home/pgeeks/public_html/gallery/lib/lang.php:384) in /home/pgeeks/public_html/gallery/setup/functions.inc on line 567

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.prairiegeeks.com/gallery
Gallery version: 1.4.3-pl2 (from 1.3-pl2)
Apache version: 1.3.31 (Unix)
PHP version (don't just say PHP 4, please): 4.3.8
Graphics Toolkit: imagemagick
Operating system: Linux
Web browser/version (if applicable):

 
lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 13:10

Well,I've gotten it fixed by copying the setup file from another gallery I have, but now I get lock file errors...

I'm assuming this is from their changes. Any ideas on how I can fix this? If you go to the page, you can see what's going on

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-07-21 13:16
 
lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 15:58

I get this error for all albums and pictures when I try to run the chmod....

Quote:
chmod: changing permissions of `albums/reunion2004/photos.dat': Operation not permitted
chmod: changing permissions of `albums/reunion2004/album.dat.lock': Operation not permitted
chmod: changing permissions of `albums/reunion2004/album.dat': Operation not permitted
chmod: changing permissions of `albums/reunion2004/photos.dat.bak': Operation not permitted
chmod: changing permissions of `albums/reunion2004/album.dat.bak': Operation not permitted
chmod: changing permissions of `albums/reunion2004/DSCN0929.thumb.jpg': Operation not permitted
chmod: changing permissions of `albums/reunion2004/DSCN0929.highlight.jpg': Operation not permitted
chmod: changing permissions of `albums/reunion2004/DSCN0929.sized.jpg': Operation not permitted
chmod: changing permissions of `albums/reunion2004/DSCN0928.jpg': Operation not permitted

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-07-21 16:46

lilepad, and still the same issue? In that case, you need to ask your host to do it for you.

 
lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 20:41

I'm sorry I keep bugging you. I got my host to give me permissions (they were assigned to nobody) and I got everything running EXCEPT that you can't view my pics!! I keep getting the "upgrade" message when I go to an album and I even did the "upgrade all at once" and it's done with no errors but I can't view any pictures or the contents of any albums. Again, my URL is http://www.prairiegeeks.com/gallery

Thanks so much! :)

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-07-21 20:50

Not sure what is going on there, i'll note the developers of this.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-07-21 21:27

It looks like the issue is the same... FAQ Gallery:c.15

The upgraded files are not being saved because they aren't allowed.

According to FireFox, the highlight images don't display because they contain errors.

 
lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 21:50

I performed that action again and it still is not working. I am getting notes next to the albums that say "Note: This album is out of date!" even though I upgraded it. Do you still think that's the problem?

 
lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 22:03

Ok, I've messed things up further now. :( I want to give up and start all over but nothave to re-upload all of my images. Is there any way I can do this? Remove the gallery dir and just reinstall it?? I wanna cry. :cry:

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-07-21 22:08

Removing Gallery won't do much good, since it's the albums dir that's the issue, and that's where the photos are. What is the issue, now?

 
lilepad

Joined: 2004-07-21
Posts: 9
Posted: Wed, 2004-07-21 22:58

Now when I go to the site I get the "Gallery needs to be configured" error. I go through the entire config wizard and get the following error when I try to set it up

Quote:
Warning: mkdir(): No such file or directory in /home/pgeeks/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir:
Fatal error: Call to a member function on a non-object in /home/pgeeks/public_html/gallery/classes/gallery/UserDB.php on line 110

Sorry to be so dramatic....It was so much easier to set up than to upgrade! :D

 
gregmen

Joined: 2004-07-23
Posts: 11
Posted: Fri, 2004-07-23 08:05

Hi, have you got it sorted out? If yes, could you please advise what you did since I got the same problem with completely new albums directory.

Warning: mkdir(): No such file or directory in /home/gregmen/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir:
Fatal error: Call to a member function on a non-object in /home/gregmen/public_html/gallery/classes/gallery/UserDB.php on line 110

I also found a thread with the same issue:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=17994&highlight=userdb+php&sid=434f9e06280672fc7917e05f562658c1

thanks

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-23 08:19

gregmen, FAQ Gallery:c.15

Also, edit your config.php file and make sure that these are set to valid paths:
$gallery->app->albumDir
$gallery->app->userDir

albumDir needs to exist and be chmod 777. Gallery will create the userDir at the end of the config wizard.