MediaWiki and images

I am getting quite angry at the stubborn stupidity. Here goes.

1) By default, it is not possible to upload anything to MediaWiki. WTH? Yes, you heard right. There is no way to upload anything. You and I probably need to be retaught to never post original content, and always link to third party images, I guess?

2) To enable uploads, set $wgEnableUploads in LocalSettings.php to true. Do not add a line instead, you should already have this line set to false somewhere in that file.

http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads for more details.

3) Try navigating to Special:Uploads. Also, there should be a link to upload files in the Toolbox area.

4) So, now you can mass upload images to your own server thru FTP, right? Wrong. Images in MediaWiki are stored under random subfolders within the /images folder. Uploading anything into /images does not "register" those files with MediaWiki.

Let me warn you that at the moment, neither Extension:SpecialUploadLocal nor $wgForeignFileRepos work.

 

After a session of hair pulling after midnight hours, I have managed the following to work:

Install Extension:MaintenanceShell

Install Manual:importImages.php

Run the script by specifying the FULL path to the "import folder". WARNING: this is not just a subfolder path like /uploads. You must specify the full server path, the one you can get, for example, by logging in to your server via SSH, navigating to that folder, and entering the pwd command. The path may look like:

/name/homepage/10/e208868303/htdocs/wiki/uploads

Also, I have had AdvancedMETA extension installed. Looks like AdvancedMETA interferes with importImages.php operation (error message

Fatal error: Call to a member function getNamespace() on a non-object in .../extensions/MWAdvancedMeta/MWAdvancedMeta.php on line 421

is displayed)



˅˅˅ Additional valuable information is available at one of the links below: ˅˅˅

 

Did you like the article? Let Google Search know by clicking this button: . Please link to content that you find useful on this website on your own website, forum or blog! You can also comment on this page below, or contact me to ask a question or suggest a topic for me to research. There is a user-editable Wiki available on my website, as well as a Forum that you can contribute to. Site Map.

Page last modified 21-Jun-11 15:57:49 EDT
Comments on this page:


Add a comment to this page
Comment Title:
Your Name:
Your Email Address:
Notify me of new comments to this item:
Additional Comments:
This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)