Album Images Not Showing After Move Album Images Not Showing After 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

Album Images Not Showing After Move

Started by nowordneeded, March 23, 2019, 12:31:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nowordneeded

I'm running the current stable release of 1.6.05 here: http://tamara-braun.com/gallery

I had to move my entire site due to my former host paring down disk size. So I found another host and began the move of my site. It all went well with the exception of one album here:

http://tamara-braun.com/gallery/thumbnails.php?album=1249

I tried running the update thumbs and everything in the admin tools but the images are still not showing up. I also reuploaded the files into the appropriate album. Those include the normal size, thumbs and original file sizes. What do I need to do to get the images to show up or do I need to delete all the files, reupload, and then add to the gallery again?

Thanks.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Try renaming the directory:
uploads/TAMARA IN FILM/1997 - SOUL FOOD/Screencaps
to:
uploads/TAMARA IN FILM/1997 - SOUL FOOD/SCREENCAPS
(all uppercase 'Screencaps')

nowordneeded

Ron:

That worked. Now why did that work?

Thanks.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Quote from: nowordneeded on March 23, 2019, 01:42:54 AM
That worked. Now why did that work?
Directories and file names are case sensitive. You cannot name a directory Screencaps when it is already expected to be SCREENCAPS (as it was in your DB).

phill104

Just a question, what method is you use to move your site? Usually when we see this sort of problem it suggests you went somehow via a Windows system.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

Phil:

I copied all files via Filezilla FTP to an external drive, then transferred the domain to my new host then reuploaded. Exported databases via Phpmyadmin then imported to new host and fixed all entries in the config.php file of both my Wordpress and Coppermine sections. I do have Windows 8.1. I've moved about a dozen sites the same way and never had this issue happen. Funny thing is the "Screencaps" directory worked fine on my old host, but somehow didn't fair so well on the new. That's why I posted.

NWN
Sometimes my musings are too confusing for someone not inside my head.

ron4mac


nowordneeded

I know the servers on both hosts are Apache. Don't know if that makes a difference.
Sometimes my musings are too confusing for someone not inside my head.

phill104

#8
Your explanation shows the problem. When you copied to your external drive windows does not respect the cases. See it a lot. Best method for future reference is to compress the files on the old server using tar or zip. This way when you copy via windows the archive will remain in tact respecting cases and permissions etc. You up,pad the archive to your new host and unpack it there. It also saves time and bandwidths.

Just as an example of what happens, on your server create two files. Call one TEST.txt and the other Test.txt . Put them in the same directory and in Linux they will be treated as separate files. Using FileZilla download both to your windows machine in the same directory and you will find there will be only the one file present, probably the latter. You lose one file as windows cannot differentiate between the two. On some versions of windows one will be renamed.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

Phil:

On my old host I don't have shell access, so to speak. They don't allow for Cpanels only dashboards. Like I said I've never had this issue before. Each time I've moved a site I've never had any issues with file name or keeping those. Like I said in the prior host the Screencaps directory worked. All my other directories copied perfectly. This one didn't. And checking the database the directory structure is Screencaps, as it originally was. Again this was an oddity and I didn't understand why this happened since it never occurred before. Again the reason I posted.

As for asking my old host to compress the file, that's the reason I left them. They weren't helpful at all.

NWN
Sometimes my musings are too confusing for someone not inside my head.

phill104

Some are never helpful.

What I guess happened is at some point on your old host a second screencaps directory had been created. I am almost certain that is what happened. On download they got merged on your windows machine. I've seen some hosts create second folders after disk repairs etc. It happens and unless you check first you will never notice it until you see a problem. All part of the joy of mixing file systems between win and Linux.

Hopefully your new host offers more options including shell access. I am not sure about FileZilla, but WinScp allows archiving files on the remote server via its interface. I've successfully used this on hosts that do not give shell access.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

I've learned that! LOL!!!

The site was up on the old host since 2006. That directory in question was uploaded in 2011 with the Uppercase first letter the rest lowercase. It was always like that and nothing changed in the copying from the old host. So nothing changed and no directories merged. In fact because of the length of one of the directories, it wouldn't copy to my external drive and it was too much of a hassle since there were only a few photos in that album so I deleted that in the Coppermine gallery via the edit files option. But on this directory nothing changed. So I don't know what happened and again I looked in the database and it was this Screencaps.

The new host has helped with the migration, thankfully. Though I did it all myself for the most part. I had a hard time connecting via Filezilla and they helped with that and also an issue with creating the Mysqul database. So I guess that's progress. I'll check out WinScp next time I do a move. Thanks for that info.
Sometimes my musings are too confusing for someone not inside my head.