Topic on Project:Support desk

Images not working after server move and upgrade

3
DalixamKC (talkcontribs)

Hi,

I moved my wiki to a new host and upgraded it at the same time (from 1.16 to 1.28), but none of the images are working. They are all in the /images/ folder like before, I tried running rebuildall.php and rebuildImages.php, from SSH, but that didn't help.

I went to one of the image pages in the wiki and found the image source. It is trying to fetch the image from a subfolder named 9/9d. I.E. /images/9/9d/ What is this? That path is not used in LocalSettings.php nor is it in ANY of the files (I searched). A search in the database gave no result either. Where is it coming from?

What should I do? Should I create the subfolder /9/9d and move all my images to it and what about new images that get uploaded?

MarkAHershberger (talkcontribs)

You said they are all in the images folder. Did you use the same LocalSettings.php file when you moved? Is $wgHashedUploadDirectory set in your new or old LocalSettings.php file?

DalixamKC (talkcontribs)

I did not use the same LocalSettings,php, I let the installation create a new one and then adjusted it.

$wgHashedUploadDirectory  was set to false in the old settings and does not exist in the new one, adding it...fixed it.

That was easy, No need to have spent days getting SSH to work, but I'm glad it's fixed :)

Thanks for the help!