paulw

Joined: 2003-09-10
Posts: 37
Posted: Tue, 2004-07-27 08:30

Thanx for the help upgraded ok this morning. The only issue that I have (well not an issue) is that all the albums that I have now have to be updated individually. As an administrator is there a way of updating all the albums on my server at once by some batch / script file ???

Thanx

P.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-07-27 09:27

When you are logged on as Admin, you should see an "upgrade all albums" link on the album upgrade page.

 
bwschwarz

Joined: 2004-09-10
Posts: 2
Posted: Fri, 2004-09-10 17:42

I have a similar problem, in that when I select "Upgrade" I get the text without any action buttons. In other words, the html source looks like what you see below. Any ideas on why I'm not getting the action buttons? I see the same behavior whether or not I use IE or Firefox. I'm using V1.4.3-pl2. I recently upgraded from 1.4.2. I have tried setting all of the permissions on the album to 777 as recommended in another post without any apparent result.

I'm also seeing something similar when I try to move some (but not all) photos to new albums. I get the drop down boxes but no button to commit the changes. Some pictures have the button, some don't.

Is there any way to force an album upgrade, perhaps from a shell script? I'm guessing something went wrong in the upgrade process that the Gallery software isn't recognizing.

Any suggestions on what to try next (or even what questions to ask next)?

Thanks,

Brian

**begin quoted source**

Quote:
<html>
<head>
<title>Upgrade Albums</title>
<link rel="stylesheet" type="text/css" href="http://www.brightrock.com/gallery/skins/bgreen/css/embedded_style.css">
<link rel="stylesheet" type="text/css" href="http://www.brightrock.com/gallery/skins/bgreen/css/standalone_style.css"></head>
<body dir="ltr">
<center>
<span class="title">
Upgrade Albums</span>
</center>
<p>

The following albums in your gallery were created with an older version of the software and are out of date.
This is not a problem!
We can upgrade them. This may take some time for large albums but we'll try to keep you informed as we proceed.
None of your photos will be harmed in any way by this process.
Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.

<p>

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-09-10 18:38

bwschwarz, anything in your apache error logs?

 
bwschwarz

Joined: 2004-09-10
Posts: 2
Posted: Fri, 2004-09-10 19:43
Quote:
anything in your apache error logs?

h0bbel ,

Thanks for the response. You seem to have pointed me in the right direction, but I'm uncertain of how to proceed from here.The problem appears to be this error
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted

Any thoughts on how to address this? Is the gallery just too big (~260 images)? I wouldn't think so, I've had some pretty big galleries before. The line number appears to refer to this function in Album.php:

      function loadPhotosFromFile($filename) {
              $tmp = unserialize(getFile($filename));
              if (!is_Array($tmp)){
                      $tmp = unserialize(getFile($filename, true));
                      if (!is_Array($tmp)){
                              return 0;
                      }
              }

the full text of the error:

Quote:
[client x.x.x.x] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 32 bytes) in /home/websites/www.example.com/gallery/classes/Album.php on line 706, referer: http://www.example.com/gallery/view_album.php?set_albumName=burningman2004&page=6 [client x.x.x.x] PHP Fatal error: Allowed memory size of 8388608 bytes e xhausted (tried to allocate 48 bytes) in /home/websites/www.example.com/gallery/classes/Album.php on line 706, referer: http://www.example.com/gallery/view_album.php?set_albumName=burningman2004
 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-09-10 19:46