Jump to content

Topic on Project:Support desk

Error creating thumbnail: File missing for ForeignDBRepo files

4
Summary by AbyxDev

The ForeignDBRepo configuration was misdone, it was only human error.

AbyxDev (talkcontribs)

Hello,

Let me get straight to the point. This page: https://en.scratch-wiki.info/wiki/Scratch_and_Commodore_64#Simons.27_BASIC includes files from sibling wikis using $wgForeignFileRepos, resized. As you can clearly see, the files just say "Error creating thumbnail: File missing".

There are two conditions that, when combined, reliably cause this to happen:

  • The file is included from a ForeignDBRepo
  • The file is resized

Note that both of these must be true. If it is merely included from a ForeignDBRepo, it will not break. Nor if it is only resized. Also note that the original files have not been lost - this file: https://en.scratch-wiki.info/wiki/File:%E9%80%A3%E7%B5%A1%E5%85%88.png is included from another wiki and the thumbnail breaks, but the original file: https://ja.scratch-wiki.info/wiki/File:%E9%80%A3%E7%B5%A1%E5%85%88.png is still there and functional.

Note that these wikis were recently (yesterday) moved between machines on the same provider. That seems to be a contributing factor.

Any idea what's breaking?

Kenny2scratch;

Bawolff (talkcontribs)

If you just moved servers, my first guess would be that the new server has different permissions set up. Check to make sure that the user mediawiki is running as (usually www-data) has the ability to write in the upload directory, including subdirectories.

AbyxDev (talkcontribs)

After mucking around with permissions, nothing has worked. I also feel like I shouldn't have bothered - if it was permissions causing the issue, then thumbnails for images from the own wiki would also break...

In any case, permissions didn't work. Now what?

AbyxDev (talkcontribs)

WELP, looks like I'm an idiot. I configured the "directory" part for the foreign repo wrong. Sorry for taking your time!