Problem After Server Move Problem After Server Move
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problem After Server Move

Started by RVestal, August 10, 2007, 04:31:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RVestal

First post here, so apologies if this is not the right place.  I've done a search but I can't find the exact problem, so I need to ask for some help.

When I decided to integrate Coppermine into my existing site, I set up a test site in a sub-folder of my main site.  Everything went well with the integration, and once I had the new site looking the way I wanted it to, I migrated the test site to the main site yesterday.  Everything went well, except that I can not see the existing images on the main site.  All of the categories and albums from the test site are there, as are the descriptions of the images (file title, keywords, etc.), just no images.

Test Site http://www.cpgulitest.ultimatelightimages.com

Main site http://www.ultimatelightimages.com

On both sites click on "Photo Gallery"

Just as background, the migration was done by following the move gallery instructions; that is, I FTP'ed the test site down to my computer, and then reloaded that back to the main site directory.  I made a backup of the MySQL database first.  Everything is on the same server at the ISP and the path to the database has not changed (and the info in include/config.inc.php in correct).  I've checked the permissions in the Albums directory and all of it's sub-directories and nothing has changed from the test to the main site.

I CAN upload new files and process them using Batch Add and Admin Tools, see example here http://www.ultimatelightimages.com/thumbnails.php?album=1&page=2 for an image that I did after the migration; I just can't see the "old" images.

Obviously, I'm missing something here, but I just can't figure it out and would appreciate any help or suggestions that anybody may be able to offer.

Many thanks, Randy

Joachim Müller

Obviously, you haven't FTPed the pics to the correct location: if I go to http://www.ultimatelightimages.com/index.php?cat=0 and do a right-click, properties on the broken thumbnail "3R8163A.jpg" in the left column, first row (labelled "Song birds"), I'm told that the images is supposed to reside under http://www.ultimatelightimages.com/albums/Uploads/Wildlife/Song%20Birds/thumb_3R8163A.jpg - if I go to that address in my browser I get a "404 not found" error. In fact, there appears to be only the folder http://www.ultimatelightimages.com/albums/, but none of the subfolders. So I wondered what went wrong: one of the most common mistakes Windows-users make is thinking that capitalization didn't matter. That is true on Windows-driven machines, but not on Linxu/Unix-driven machines. On Linux, "File.jpg" ist not the same as "file.jpg" (mind the capitalization). Your web server probably is running under Linux/Unix, so I manually tried browsing to http://www.ultimatelightimages.com/albums/uploads/ (instead of http://www.ultimatelightimages.com/albums/Uploads/) and *surprise, surprise* the folders and files are there.
So how do you fix things? Use your FTP app, go to http://www.ultimatelightimages.com/albums/ and rename the folder "uploads" to "Uploads" and everything should work as expected.
To avoid such issues in the future, you should never user capitalization: always use all-lower-case characters to name folders and files when creating your stuff in the first place. Additionally, you should read up on web-safe names: you shouldn't use spaces in folder names on webservers: although modern operating system are capable to cope with spaces in folder names, web standards (which come from times where spaces in folder names where forbidden on Unix machines) and the way humans interact don't interact nicely. You (as server admin) should try to learn the basics and use a robust naming scheme.

Joachim

RVestal

Yep, that was it....Thank you for spotting this, sometimes you look at something long enough that you can't see the obvious!  :)  I guess we all have a "senior moment" at times.

Final step is to update the files in the Admin Tools menu.  Everything works now.

Resolved....thanks again.

Randy