Albums all messed up after migrating to new version.

106 views
Skip to first unread message

botzen67

unread,
Apr 30, 2020, 10:25:08 PM4/30/20
to Gallery 3 Users
I recently upgraded to 3.1.2 and now all of my albums are messed up.  The thumbnails and resized photos are all wonky.  Many are in the wrong orientation.  Is there a way to force a rebuild of all thumbnails and resized images?

Brad Dutton

unread,
Apr 30, 2020, 10:33:15 PM4/30/20
to Gallery 3 Users
In the admin area under maintenance there are some rebuild and repair jobs you can run. What version did you upgrade from?

botzen67

unread,
Apr 30, 2020, 10:35:15 PM4/30/20
to Gallery 3 Users
I tried running the admin rebuild and repair jobs but none of them fix the problem.

I believe I was running 3.0.4.

Brad Dutton

unread,
Apr 30, 2020, 10:47:27 PM4/30/20
to Gallery 3 Users
The following SQL this will flag all of your thumbnails for rebuilding:
UPDATE `items` SET `thumb_dirty` = '1';
You can then go into the admin area and run the job that says the images are out of date.

Do you have the same modules installed after the upgrade? I've used some exif modules that rotate the images, perhaps something like that isn't enabled?

botzen67

unread,
May 1, 2020, 12:24:10 AM5/1/20
to Gallery 3 Users
I think I figured it out.  I found a "rebuild images" module that does the same thing (marks things as needing to be rebuilt).

I also changed the image package from ImageMagick to GD which I think is what solved my problem.  It's still a pain that I have to go back through every album and rebuild the images but at least I have a solution.

botzen67

unread,
May 1, 2020, 8:56:16 AM5/1/20
to Gallery 3 Users
OK new problem.  Somehow the  "rebuild images" job now gets stuck every time I go to run it. 
I was going to try rebooting the server, but unfortunately this instance is installed on a shared server and I don't have access to reboot it.
Before I put in a support ticket with the hosting provider, any suggestions for getting the job unstuck?

botzen67

unread,
May 1, 2020, 11:33:43 AM5/1/20
to Gallery 3 Users
OK seems the problem had to do with switching to GD for Graphics.  Of course when I switch back to ImageMagick my thumbnail orientation problems come back.  Grrrr!!!

JR

unread,
May 1, 2020, 8:17:39 PM5/1/20
to gallery...@googlegroups.com

Um... ah... I recall back 7 years ago when Gallery 3.0.9 was released that many people in the forums were reporting problems using either ImageMagick or GraphicsMagick under php 5.4 and up. The consensus recommendation at the time was that GD was really the only way to go. I suspect that if the original development team issued another release they might have completely pulled the option to use ImageMagick or GraphicsMagick from the dashboard and setup.

Brad, maybe you want to consider doing this at some point? Or perhaps instead include the most recent version of those programs in the installation package (I see both have 2020 release versions now)? For that matter, GD Library also has a 2020 release version as well ... and their website has changed from the one cited in the Gallery 3 dashboard. It is now:   https://libgd.github.io/

-- J.R.

--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
 
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
 
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/f5bea094-dc2f-4a60-9594-29899c2c47ec%40googlegroups.com.

miktrain

unread,
May 2, 2020, 8:35:09 AM5/2/20
to Gallery 3 Users

Check that the original file has the right orientation, it may have been uploaded and then rotated via gallery, I had some like that on a server change. If it is the problem just download the file, rotate it, save and then upload it. If you have server access you can do it directly in the album folder (var/albums/"owner"/"name of folder" via ftp

Tony
https://ozfreemo.com

On Friday, May 1, 2020 at 12:05:15 PM UTC+9:30, botzen67 wrote:
I tried running the admin rebuild and repair jobs but none of them fix the problem..

botzen67

unread,
May 2, 2020, 1:19:13 PM5/2/20
to Gallery 3 Users
OK I've gone back to using GD and it fixes the images properly.  Now I need to run it against my entire set of images since they are messed up sporadically throughout.  I've set the dirty flag in the database and tried running the "Rebuild Images" job.  The problem I'm having is the job hangs every few minutes after processing a few hundred images.  I can "Pause" and then "Restart" the job which keeps it going, but this is painful because I have 8000+ images to get through.  Is there any way to run the "Rebuild Images" job from the command line?

JR

unread,
May 3, 2020, 1:13:26 PM5/3/20
to gallery...@googlegroups.com

Sounds like you need to adjust your PHP configuration settings... specifically transaction timeout settings, maybe a couple of others.

-- J.R.

--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
 
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
 
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.

botzen67

unread,
May 3, 2020, 1:15:26 PM5/3/20
to Gallery 3 Users
OK, how does one do that?  I can probably figure it out by digging around, but a pointer in the right direction would be much appreciated.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery...@googlegroups.com.

Andrew D. Arenson

unread,
May 3, 2020, 2:01:56 PM5/3/20
to gallery...@googlegroups.com
PHP configuration settings are found in the php.ini file. Often
you'll find php.ini under /etc/php/<version>/apache2, but to find
your exact location you could create a phpinfo file on your webserver.

HOW CAN I CREATE A PHPINFO.PHP PAGE?
https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page

Where is my PHP php.ini Configuration File Located?
https://devanswers.co/ubuntu-php-php-ini-configuration-file/


Knowing where your php.ini file is only gets you to the first step. Within php.ini there are many settings that can be changed. I can't advise you on precisely which ones to change.

Andy


On Sun, May 03, 2020 at 01:13:20PM -0400, JR wrote:

> Sounds like you need to adjust your PHP configuration settings...
> specifically transaction timeout settings, maybe a couple of others.
>
> -- J.R.
>
> On 5/2/2020 1:19 PM, botzen67 wrote:
> >OK I've gone back to using GD and it fixes the images properly.??
> >Now I need to run it against my entire set of images since they
> >are messed up sporadically throughout.?? I've set the dirty flag
> >in the database and tried running the "Rebuild Images" job.?? The
> >problem I'm having is the job hangs every few minutes after
> >processing a few hundred images.?? I can "Pause" and then
> >"Restart" the job which keeps it going, but this is painful
> >because I have 8000+ images to get through.?? Is there any way to
> >run the "Rebuild Images" job from the command line?
> >
> >On Thursday, April 30, 2020 at 10:25:08 PM UTC-4, botzen67 wrote:
> >
> > I recently upgraded to 3.1.2 and now all of my albums are messed up.?? The thumbnails and resized photos are all
> > wonky.?? Many are in the wrong orientation.?? Is there a way to force a rebuild of all thumbnails and resized images?
> >
> >--
> >WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY
> >TO LIST or REPLY TO ALL so your reply goes out to everyone in the
> >group. If you click REPLY or REPLY TO SENDER Google will *only*
> >send your reply to the original author (not recommended).
> >
> >To post a NEW MESSAGE to the group, send an new email to:
> >gallery...@googlegroups.com
> >
> >To view or sign in to this group on the web, use this URL:
> >https://groups.google.com/forum/#!forum/gallery-3-users
> >---
> >You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
> >To unsubscribe from this group and stop receiving emails from it,
> >send an email to gallery-3-use...@googlegroups.com
> ><mailto:gallery-3-use...@googlegroups.com>.
> >To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/7a2711ac-c7d4-4ccf-b6cc-e732c0ce26bc%40googlegroups.com <https://groups.google.com/d/msgid/gallery-3-users/7a2711ac-c7d4-4ccf-b6cc-e732c0ce26bc%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
>
> To post a NEW MESSAGE to the group, send an new email to:
> gallery...@googlegroups.com
>
> To view or sign in to this group on the web, use this URL:
> https://groups.google.com/forum/#!forum/gallery-3-users
> --- You received this message because you are subscribed to the
> Google Groups "Gallery 3 Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/83074724-c432-d9bb-92c9-50f9158c95fc%40thepostalzone.com.


--
Andrew D. Arenson (he/him) H 317.964.0493
arenson (at) spatzel.net C 317.679.4669

JR

unread,
May 5, 2020, 12:39:50 AM5/5/20
to gallery...@googlegroups.com

Andrew already mentioned that it is very handy to have a "phpinfo.php" file on your server so you can quickly see what your host's PHP configuration is.  To actually change those settings you will need admin access to your hosting account/server. Often this is done through the administrator CPanel on shared hosting accounts. If you're unsure about how to do this this, call your server's tech people and ask how to do it. Make changes to the PHP settings carefully (and usually only one change at a time and test the effect).

Now there are a whole lot of PHP settings -- as a general rule the default values set will work fine for most things, but if you are doing something intensive, like rebuilding thousands of thumbnails from original images (often large-size images) a few of the default settings may need to be increased.

Here's are links to a few group discussions that might provide some insight:

https://groups.google.com/forum/#!searchin/gallery-3-users/php$20timeout%7Csort:date/gallery-3-users/zSQYpGlz7eg/t8OkQQwjAQAJ

https://groups.google.com/forum/#!searchin/gallery-3-users/php$20configuration|sort:date/gallery-3-users/6_vHyUpYGig/aph8h_fPEAAJ

-- J.R.

Message has been deleted

botzen67

unread,
Jul 29, 2025, 7:39:57 PMJul 29
to Gallery 3 Users
Back again ... after 5 years!   I had to migrate my gallery3 to a new server (for reasons I won't get into).
The new server has PHP8.4 so I had to move up to 3.1.5 to get anything working.
Now I'm stuck again with no images, thumbnails or otherwise.
When I look in /var/logs I'm getting something like:

2025-07-29 05:21:32 +00:00 --- error: File not found: file_proxy%2F1998%2F.album.jpg

for every single file.

Any ideas?   Seems like that "file_proxy" bit at the front might be wrong?


Adrian London

unread,
Jul 29, 2025, 7:49:55 PMJul 29
to Gallery 3 Users
Are you using something called NGINX?

If so, stick  "file_proxy" nginx into google and there should be some useful hits.

-- 
Adrian

botzen67

unread,
Jul 29, 2025, 8:15:28 PMJul 29
to Gallery 3 Users
I'm using Apache2 on Unbuntu.
​I figured it out.  The root cause was the .htaccess files.  Once I renamed them in a few key directories all the images showed up as they are supposed to.
Reply all
Reply to author
Forward
0 new messages