1.5 Upgrade problems

nc3d
nc3d's picture

Joined: 2004-04-30
Posts: 16
Posted: Thu, 2005-04-21 18:12

I just tried to upgrade my gallery from 1.4.4-pl2 to 1.5 and I am having two problems. I made a backup zip of my current setup then extracted the new over the top of the old. Upon finding the problems I restored the gallery to what it was.

Problem 1: On Albums.php it shows my five top level albums but the highlight thumbnails are shown twice... See this screenshot:
http://www.nc3d.com/images/ExampleGallery1.5bug.jpg
Any idea what could be causing this double image problem?

Problem 2: When I click on any album I get the following error message:
Fatal error: Call to undefined function: getparentalbums() in /homepages/29/d89713911/htdocs/www_nc3d_com/gallery/view_album.php on line 112

I have done a considerable amount of hacking to my gallery at all levels, but the error in view_album.php on line 112 is before the html and head commands and my closest hacked lines of code are 70 lines further down inside the body.

Thanks for the help.

----
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): http://www.nc3d.com/gallery
Gallery version: 1.4.4-pl2 upgrading to 1.5
Apache version:
PHP version (don't just say PHP 4, please): 4.3.10
Graphics Toolkit: NetPBM
Operating system: Hosted Linux on 1and1.com
Web browser/version (if applicable): Firefox 1.0.3 & IE 6.0

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-21 18:22

Well, as we don't have a clue as to what customizations you have done, it's very hard for us to help you out.

I've moved this to the customizing forum, perhaps someone here can help you out.

 
nc3d
nc3d's picture

Joined: 2004-04-30
Posts: 16
Posted: Thu, 2005-04-21 19:10

Here are my hacks... I don't think any of them are causing this though because the none of the hacks even come close to affecting the thumbnails in albums.php and they hack the body of view_album.php whereas the error on that page is before the head.

albums.php
Line 126 I switched this

}
includeHtmlWrap("gallery.header");

to look like this

includeHtmlWrap("gallery.header");
}

All this hack does is makes the header dissappear when the gallery is embeded within mambo. I have the same change made in view_album.php and view_photo.php

view_album.php
The same hack as above, plus the hack described here:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=16234&highlight=nc3d
This hack allows me to post movie files in gallery with custom thumbnails.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-21 19:16

OK, remove those and see if you still have the same issue. If you do, it looks a lot like and incomplete upgrade. Re-transfer all the G1.5 files and make sure all the old ones get overwritten.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2005-04-21 20:24

I would rename your old gallery directory and upload a clean copy of G1.5. You can then pull out your config.php and maybe .htaccess from your old gallery install, then run the G1.5 config wizard.

 
nc3d
nc3d's picture

Joined: 2004-04-30
Posts: 16
Posted: Thu, 2005-04-21 22:41

I got both of the problems figured out. For some strange reason, even though I copied the whole gallery zip over the top of my old install, it didn't upgrade my albums till about the tenth try. I don't know what I did differently but that's what was causing the fatal error.

The duplicated images were caused by my not being careful enough when copying my hacked lines of code into the new source. I added all of my code but I didn't get all of the original lines removed properly.

The "Gallery 1.5 Released" announcement on the main page really should have let upgraders know in advance about some of the backend changes. I was totally surprised when I first copied the files over and had a bright blue site because the css was re-done. I see a lot of comments about other forum users who were caught off guard by the css change.

My fatal error might have been easier to diagnose if there was an upgrade notice that says something like "After you copy the new files on to your old Gallery you will automatically be re-directed to the configurator." (mine didn't) "In order to proceed you will have to upgrade all of your albums." Since I didn't know the configurator was supposed to be run I thought Gallery had properly upgraded. After all, I did have the right version number showing up on the web page.

Overall, some upgrade notes would have been quite useful to the user community. The FAQ is quite out of date and the forums aren't the place to be letting users know that there's more to upgrading than just copying the files over.

Thanks for the help h0bbel and fryfrog

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-21 22:51

You should be directed to the config wizard, then run through that, and when you finish that off you should see a big red box telling you that you need to upgrade your albums. Not sure why that didn't happen in your case, but I'm glad you got it sorted. :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-04-22 00:50
nc3d wrote:
.....
Overall, some upgrade notes would have been quite useful to the user community. The FAQ is quite out of date .....

We know that we need more people to help with the DOCs but there is nobody to step up to the plate. There was a start here but the guy has not posted for some time and the ball was dropped. Do you have avy body in mind?

Dave