Thumbnail/Image display problems after server IP change.

prdaley

Joined: 2006-02-20
Posts: 40
Posted: Wed, 2014-01-29 20:45

Gallery URL = http://www.patrickdaley.com/gallery2/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.24 cgi-fcgi
Webserver = Apache
Database = mysql 5.0.96-log, lock.system=database
Toolkits = ImageMagick, Exif, Ffmpeg, ArchiveUpload
Acceleration = none/3600, none/3600
Operating system = Linux p3nlhg421.shr.prod.phx3.secureserver.net 2.6.32-358.18.1.el6.nfsfixes.x86_64 #1 SMP Wed Sep 4 14:07:10 MST 2013 x86_64
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36
Rows in GalleryAccessMap table = 419
Rows in GalleryAccessSubscriberMap table = 3583
Rows in GalleryUser table = 3
Rows in GalleryItem table = 3582
Rows in GalleryAlbumItem table = 195
Rows in GalleryCacheMap table = 0

My server IP address changed and I did not follow the guide on moving servers. My site is Wordpress with Gallery and I just plain forgot. Totally dumb on my part.

After updating my database path I can get in and things are working...sort of.

It's hit or miss as to which thumbnails and images are displaying. On some albums there's no highlight being displayed, but some of the thumbnails display inside the album. On other albums it's showing nothing. Yet on some everything looks fine.

Things I've tried:

- Empty all caches via the "Gallery Support" link for my install
- Uninstall, delete, reinstall all image plugins and verify they are working again
- Rebuild thumbnails/resizes from Site Admin; I've done this about three times and even though it finishes it seems to have had a marginal impact and creates a debug list a million miles long
- Create a new album and upload pictures (this worked fine)
- Debug mode in general creates such a huge amount of output I don't even know where to start

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2014-01-29 22:53

directly edit gallery2/config.php to make sure the paths and urls are correct?

Also consider the .htaccess files and are they rewriting correctly

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
prdaley

Joined: 2006-02-20
Posts: 40
Posted: Wed, 2014-01-29 23:01

I figured out what's wrong, but I'm not sure if I know how to fix it (yet).

It's a problem with symlinks. When I first started my Gallery installation (like 8 years ago) I was using a different folder than I am now so I have a bunch of symbolic links, if that makes sense. After my server changed IP the links have become invalid.

When I figure out a solution I'll post back (unless someone wants to beat me to it!)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2014-01-30 01:58

I'm thinking the filesystem path to symlink items would be stored in the db. A simple db query should reveal.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
prdaley

Joined: 2006-02-20
Posts: 40
Posted: Thu, 2014-01-30 03:14

I can't find any references to the old server in the database. For busted images they only show up under g2_FileSystemEntity. I can see the symlinks via SSH and FTP, but if I try to download or edit I get a "file not found" error". The file viewer in my hosting control panel displays an "invalid symlink" notice.

I'm not sure how I would relink everything via MySQL. (If it's not obvious already, I am not a DBA by trade.)

This might just end up being a manual rebuild, which isn't the end of the world since the albums are all there and my images are still on my server.