Topic on Project:Support desk

Lowercase image names not working

6
Steings (talkcontribs)

I am moving a site to a new server and upgrading MediaWiki from 1.20 to 1.27 (BlueSpice 1.20 to 2.27). PHP is 5.6.23 and MySQL is 5.6. On the old site, there are many "[[File:lowercase.gif]]" in the wiki text that work even though the image is saved as Lowercase.gif; on the new site, it considers them bad Image links and there is just a display of link text which is a link to a page to upload the missing image. I can't find anything in the code that explains this difference. I don't want to have to search through all the pages for lowercase image names to change. (The application is internal, so I can't provide a link.)

MarkAHershberger (talkcontribs)

Did you change anything in your LocalSettings.php? Did you create a new LocalSettings.php?

What is $wgCapitalLinks set to?

Steings (talkcontribs)

$wgCapitalLinks does not appear in LocalSettings.php. The file is generally the same except a few require_once are changed to wfLoadExtension. We did drop the Accesslog and Realnames extensions. We had to change Auth_remoteuser to AuthRemoteuser. Finally, there were many changes with BlueSpice, but I think it's roughly the same.

MarkAHershberger (talkcontribs)

You could also try

$wgCapitalLinkOverrides[ NS_FILE ] = true;
Osnard (talkcontribs)

Mark is right. Please set the $wgCapitalLinkOverrides for NS_FILE in you LocalSettings.php. We've had a bunch of default settings in the BlueSpiceFoundation (https://github.com/wikimedia/mediawiki-extensions-BlueSpiceFoundation/blob/REL1_27/includes/DefaultSettings.php#L44) that we always apply to our customers installations. Unfortunately this introduced some issues with the community users. So we've removed the settings in the upcoming release and have it now in a separate config file that we deploy to our customers. You can also modify the BlueSpiceFoundation/includes/DefaultSettings.php directly as it will change with the next release anyways.

If setting $wgCapitalLinkOverrides in LocalSettings.php does not work directly, try to set it within a $wgExtensionFunctions callback. E.G.

$wgExtensionFunctions[] = function() { $GLOBALS['wgCapitalLinkOverrides'][ NS_FILE ] = true; };
Steings (talkcontribs)

Thank you. Osnard's suggestion has solved my problem.