Project:Support desk/Sections/Uploading

__NEWSECTIONLINK__ = Uploading Support =

pdf woes

 * MediaWiki: 1.11.0
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL: Internal only

I don't have an error; just a problem. Actually, 2 problems. Here's the scenario: I have ~1000 pdf manuals I would like searchable and indexed into my wiki. I have searched though every extension that I could find. Most of the extensions about pdfs are for creating pdfs out of wiki pages. Any help would be appreciated! Thanks!
 * 1) How do I transfer files to a wiki without doing them 1 at a time? I tried just putting 1 into the images dir but it looks like they need a DB entry as well.
 * 2) How do I make pdf files searchable on my wiki? I would love to do it as google has; click here for the file or click here to see it in html format.

—BruceWayne 16:54, 24 January 2008 (UTC)


 * There's the importImages.php maintenance script, but that's just bare-bones, and uploading them as files won't index the text contents as far as I'm aware. Tuvok[Talk/en.wp] 08:28, 26 January 2008 (UTC)


 * That looks like it will import the pdfs. I'll have to go through the php and see if I can make it recursive. I think there's a couple hundred folders.
 * How's about making them search-able?
 * Forgot to sign my last comment.. Doh! —bruceWayne 14:22, 30 January 2008 (UTC)


 * How is this going for you? As for making pdfs searchable you would have to configure your Wiki to be able to read the pdf text and then mod SpecialSearch.php to include whatever folder these are in. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  02:35, 27 March 2008 (UTC)

Uploaded file's permissions

 * MediaWiki: 1.12.0rc1
 * PHP: 5.2.5 (apache)
 * MySQL: 5.0.45-community
 * URL: Tibiafans Wiki

I'm having trouble with uploading on MediaWiki. I have made sure uploads are enabled (LocalSettings.php) and have CHMODed the image upload folder to 777 and 755 (I have tried both) with the option 'recurse into subdirectories' enabled (a feature in my FTP client - pretty self-explanatory).

I can upload images, but once they are uploaded they:


 * have a 644 CHMOD
 * cannot be viewed (in the browser) and cannot be edited, CHMODed, or even deleted via FTP.

I'd like to know what could be causing this. Thanks in advance. —58.7.76.136 09:37, 20 March 2008 (UTC)

Uploading works and then fails: internal server error

 * MediaWiki: 1.12.0
 * PHP: 5.1.6 (apache2handler)
 * MySQL: 5.0.22
 * URL: http://wiki.bibliotheekweek.be

I have a Wiki installation in which uploading of images and pdf's is enabled. All worked well, but after some tests the same error is thrown (translated from Dutch): internal server error, Map “public/archive/5/57 could not be created. These are my settings in LocalSettings.php

$wgEnableUploads = true; $wgCheckFileExtensions = true; $wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf'); $wgUploadDirectory = "/home/wiki/upload"; $wgUploadPath = "{$wgScriptPath}/upload";

The upload actually happened in the right directory during testing but it seems like these settings are 'forgotten' in a way. After deleting the upload-directory and recreating it again, things work fine again.

Can you help? —81.246.127.226 10:05, 11 April 2008 (UTC)

Upload bug on Windows server

 * MediaWiki: 1.11.2
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL: http://www.wkwiki.com/Wikipedia:%E5%88%86%E9%A1%9E%E7%B4%A2%E5%BC%95

Hi, Im using WAMP, I can upload "normal name" image files on my mediawiki(english characters and numbers), but I cannt upload special characters like Chinese. It shows like "Could not rename file "D:\...\Temp\*.tmp" to special characters.jpg". Some times the upload succeed, but the system could not find the upload image, the image name has been changed to another strange filename. Ive been searched google, it seems like Chinese Windows system uses GBK to name files, not utf-8, is that so? How to fix it up?

—Werran 19:50, 12 April 2008 (UTC)


 * Hello I have the same problem, how to fix this?

(Semi-Solved) no uploaded files in file-article

 * MediaWiki: 1.12.0
 * PHP: 5.1.6
 * MySQL: 4.1.20
 * URL: only intranet...

When uploading a file, I can see it in the special pages file list (and I can download it), but in the corresponding automatically genereated article (e.g. "Bild:foo.gif", using the german version, i.e. "Image:foo.gif") it says that there is no uploaded image ("No file by this name exists, you can upload it.") ...

The file is there, it's in the corresponding directory on the server, I can see it in the list of uploaded files, but I can not get an link to it anywhere else.

Any ideas? —80.132.179.214 11:06, 17 April 2008 (UTC)


 * Funny thing... after three days, the images suddenly appeared in the articles... though I still don't know, what was (is?) going on here... I had cleared caches, truncated cachetable and everything (according to FAQ and manual) before...--80.132.181.8 13:32, 21 April 2008 (UTC)


 * I have the same problem (PHP 5.2.5, MySQL 5.0.41). I had a working local MediaWiki 1.12-Installation on Mac OSX where I uploaded images and they were available at once. After upgrading to MW 1.13.0rc1 I first got errors about oi_sha1 missing in the table, no picture was shown at all. After creating that field, pictures where shown again. No more error. But when uploading pictures, it can take several hours on my local installation until the picture is available. Doesn't help if I clear or purge caches. Doesn't help if I shut down and restart server. No jobs in queue. No error logs. Strange. --91.8.100.217 04:45, 14 August 2008 (UTC)

Workaround for 777 permissions to upload directory

 * MediaWiki: 1.12.0
 * PHP: 5.2.0 (cgi)
 * MySQL: 4.0.27-standard
 * URL: http://www.dnylabs.org/wiki/

Hello. I am having support problems by my hosting company. The hosting company does not allow 777 permission access for security reasons. Due to this, mkdir, rename directory, deletion of images, phpfreechat etc does not work. Even though I set 3 things: $wgSaveDeletedFiles = false; $wgFileStore['deleted']['directory'] = null; $wgHashedUploadDirectory = false; There is still some problem while archiving and deleting as the folders cannot get created due to the restrictions. Is there anyway I can work around this. Ideas: 666 perms, Images folder on another domain.

—202.54.42.229 07:41, 29 April 2008 (UTC)


 * If you can find a workaround more power to you, but I'm going to suggest that if you are just starting out and it wouldn't be too difficult, change hosts. I see you started this wiki on April 6, so while it might be a hassle to move, or re do the work you've done, it could prevent more hardships later.  But honestly I don't know, it might not be a problem at all.
 * You seem to be using WEBSUPPORTERS.COM. That's a pretty good price, if my currency converter calculator is correct, though they don't give you a lot of disk space.  So it's your call.  I can't help you with a workaround, though, sorry. Smaug  [[Image:Tournesol.png|20px]] 14:48, 29 April 2008 (UTC)

Problems uploading files

 * MediaWiki: 1.12.0
 * PHP: 5.0.4 (apache2handler)
 * MySQL: 4.1.20
 * URL: http://wiki.caid-commons.org/

I have been trying to get the current version to be able to upload without success.

I am getting the following error: The upload directory (public) is not writable by the webserver.

I have set all directory & file permissions in both ssh and ftp.

Please help

—71.103.178.42 12:51, 12 May 2008 (UTC)

linking to preloaded files.

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

I have some files copied to the images folder and I want to refer to these files in wiki, but If I give the path to these files it still takes me to the upload page when i click on it. and these files do not show up in the list of files uploaded. Please help.

Regards —169.200.215.14 07:27, 14 May 2008 (UTC)


 * You could always upload the file the MW way. Smaug [[Image:Tournesol.png|20px]] 17:04, 14 May 2008 (UTC)

I have around 80 files which I have alredy kept in the images folder. I just want to provide a link to them in the WIki. IF i give the path and the filename and then click on it, wiki give me the upload page and I don't want to upload all 80 files through Wiki when I already have them in the images folder....Is there a way ?

Thanks - Sagar


 * I can't say that there isn't a way, but I do not know of a way. Smaug [[Image:Tournesol.png|20px]] 18:09, 15 May 2008 (UTC)

Unable to upload larger Files

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL: intern

Whenever I try to upload larger pdf-files (~8mb) IE freezes. What's the deal with this?!

—193.58.223.71 10:02, 22 May 2008 (UTC)

Search for the following lines in the php.ini

; Maximum allowed size for uploaded files.

upload_max_filesize = 8M

And set it to the value you need.

Unable to upload any file
I'm unable to upload any kind of file. I tried it with four or five diffrent files, but it doesn't work.

It uploads the file, makes an insert to _images (database), and the file exists in the wiki/images directory, but when I go to the Image:File.png (for example) site, there's only the following text: There's no image with this name, but you can Upload one.

What am I doing wrong? And how can I repair this?

How to view the content of the newly uploaded file

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

I already have a file uploaded on the server and I need to make change to this same file frequently. Is there a way for me to be able to view the content of the newly updated file right after uploading it to the server? Your suggestion is appreciated. Tien Thai —TienThai 19:57, 9 June 2008 (UTC)

Can't upload files and error description doesn't helps

 * MediaWiki: 1.12.0
 * PHP: 5.2.0-8+etch11 (apache2handler)
 * MySQL: 5.0.32-Debian_7etch5-log
 * URL: http://vs76.sauer-cs.de/wiki

Hello, I have a problem with uploading files. If I try to upload a file using the specialpage "Upload" and press the button "Upload file" after choosing a file the "Upload" page reloads and looks like this:

START of example -->>>

Upload warning

Protected page

<<<-- END of example

I already checked php.ini - file_uploads = On is set, the size limit is also greater than the test files.

Uploading is enabled in LocalSettings.php

$wgEnableUploads = true; $wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf','zip'); $wgGroupPermissions['*'           ]['upload'] = false; $wgGroupPermissions['user'        ]['upload'] = false; $wgGroupPermissions['autoconfirmed']['upload'] = true; $wgAutoConfirmAge = 86400 * 4; # Four days times 86400 seconds/day $wgSaveDeletedFiles = true;
 * 1) Files allowed to upload
 * 1) Allow upload only for users who are long enough here
 * 1) BackUp deleted files

The image directory is also writable and executable. I tried to upload PDF files, JPEGs and PNGs - nothing works. :(

—Nasenbaer 19:18, 11 June 2008 (UTC)


 * In what usergroup is the user that tries to upload? --TheDevilOnLine 10:23, 12 June 2008 (UTC)

Trouble in images upload

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

Hi all i'm Ugo and i come from Italy, just start a my new wiki project with your fantastic software. I'm having trouble about upload images, i've read enoug on manual, but no one template in there ( i mean template step to step for newbies). FIRST QUESTION : When i try to insert an image and i use the link i have the link, then i click the link and go to the upload form; here something happen.. because he says : " the folder can't be written by the server" ( i have the folder "images" in my main wiki directory setting to 755 permission). What i need is an explaination "step to step" about how i have to compile the form ( with the right paths) with simple examples. SECOND QUESTION : Is there a way to show directly an external image on my wiki page ( for example http://www.mysite.com/imgexample.jpg )? I have tried to do this, but the only result is to have a link to the image and not the image directly. Sorry for my bad English and thanks in advance for any help you can !

Ugo —82.57.173.2 13:44, 19 June 2008 (UTC)

Upload File Error on Windows
MediaWiki: 1.11.0 PHP: 5.2.5 (apache2handler) MySQL: 5.0.50-enterprise-gpl-nt-log
 * URL:

I setup the following paramerers in the localsettings.php and created the directory under images, but I get an upload error. I've checked the Windows directory permissions and it's fine. Any suggestions?

$wgUploadDirectory	= "127.0.0.1/mediawiki/images/DEV"; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'doc', 'psd', 'mp3','xls', 'doc', 'mpp', 'txt');

ERROR: The upload directory (public) is not writable by the webserver.

Retrieved from "http://127.0.0.1/mediawiki/index.php/Special:Upload"


 * Update: I removed the $wgUploadDirectory parameter from the localsettings.php file and the upload worked to the default directory.  Is there a bug in 1.11 when using the $wgUploadDirectory parameter?


 * Melissa
 * —Mdougherty08 16:26, 19 June 2008 (UTC)

no Starter StartProfiler.php

 * MediaWiki: 1.12.0
 * PHP: 5
 * MySQL: 4

In this release package there is no Starter StartProfiler.php, I had to download it from SVN. —24.180.104.11 18:49, 1 July 2008 (UTC)

Upload of doc, xls, ppt files fails (not a general upload issue)
When using these kind of files the uploadcorrupt message appears. Here is the german message: ''Die Datei ist beschädigt oder hat eine falsche Datei-Erweiterung. Bitte überprüfe die Datei und wiederhole den Hochlade-Vorgang.'' (The file is corrupt or has an incorrect extension. Please check the file and upload again.)
 * MediaWiki: 1.12.0
 * PHP: 5.1.6 (Modul mime magic is enabled)
 * MySQL: 5.0.22
 * URL: Intranet

I got no clue what it is about. The files are allowed (strict is set to false), the size is ok and the files are not corrupt.

In generall uploads do work. I enabled debug, that is what it found, look at mime: ))WebRequest::getFileName 'TELEFON.XLS' normalized to 'TELEFON.XLS' User::isBlocked: enter User::getBlockedStatus: checking... IP: 170.160.207.31 Block::load: '', '1', 1 User::getBlockedStatus: No block. File::getPropsFromPath: Getting file info for /tmp/phpVs9EdM MimeMagic::__construct: loading mime types from /htdocs/wiki/ps/mediawiki/1.12.0/includes/mime.types MimeMagic::__construct: loading mime info from /htdocs/wiki/ps/mediawiki/1.12.0/includes/mime.info MimeMagic::guessMimeType: internal type detection failed for /tmp/phpVs9EdM (.XLS)... MimeMagic::detectMimeType: magic mime type of /tmp/phpVs9EdM: text/plain MimeMagic::guessMimeType: final mime type of /tmp/phpVs9EdM: text/plain MediaHandler::getHandler: no handler found for text/plain. File::getPropsFromPath: /tmp/phpVs9EdM loaded, 47616 bytes, text/plain. MacBinary::loadHeader: header bytes 0 and 74 not null MimeMagic::guessMimeType: internal type detection failed for /tmp/phpVs9EdM (.)... MimeMagic::detectMimeType: magic mime type of /tmp/phpVs9EdM: text/plain MimeMagic::guessMimeType: final mime type of /tmp/phpVs9EdM: text/plain

mime:  extension: 

UploadForm::verifyExtension: mime type text/plain mismatches file extension XLS, rejecting file

I got the same mediawiki version (+php 5.2.3-1ubuntu6.3) on another system installed where it works. The same file there shows MIME-Typ: application/vnd.ms-excel.

So what is MimeMagic doing here or what uses it to get the MIME, could there something wrong on my system?

Any help would be appreciated.

—Cabowabo 03:56, 3 July 2008 (UTC)


 * I encouter the same problem on the same platform, but with PowerPoint files (PPT).
 * Thank you for any idea...
 * --BurninLeo 08:52, 4 August 2008 (UTC)


 * Works fine in the latest MediaWiki version 1.13 :)
 * --BurninLeo 15:16, 11 September 2008 (UTC)

Upload and loading problem

 * MediaWiki: 1.12.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a
 * URL: Intranet

1. I can't load images to sait. I have enable uploads_enable = On in php.ini, I'm trying to change open_basedir & upload_tmp_dir to different values ( /tmp, /tmp/ .... ), chmod on 777. On LocalSettings.php & DefaultSettings.php $wgEnableUploads = true;

on /var/www/apache2/error.log [error] [client 192.168.0.1] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

2. I'm trying manualy to copy image files to /wiki/images/ and load it on my site by - it's not work. So wiki can't see images directory? (in httpd.conf images aliases is commented)

—193.93.12.74 11:41, 6 July 2008 (UTC)

uploading large files

 * MediaWiki: 1.12.0
 * PHP: 5.1.2 (apache2filter)
 * MySQL: 5.0.19-standard
 * URL: password-protected

I am having a problem uploading large files using Mediawiki version 1.12.0. If I upload small PDF or PPT file, I have no problem; but if I try to upload a large file, I get the error "The connection was reset The connection to the server was reset while the page was loading. -The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web."

I have googled this problem extensively and can't figure out the solution. Incidentally, if I put the file on a local server and upload using the URL, the problem does not occur. I have already made a set of changes in LocalSettings.php and in /etc/php.ini to increase the maximum upload size; that fixed the problem for URL uploads, but not yet for uploads from a client's hard drive.

—128.36.102.191 19:25, 8 July 2008 (UTC)

During the upload, I get the message "Could not rename file "$1" to "$2"", but my rights are OK! (at least I think so...)

 * MediaWiki: 1.12
 * PHP: 5.2.6
 * MySQL: 5.1.24
 * URL: http://wikimir.ru

Hi, all! I have a problem. Please, help me!

First of all I notice that I've read almost all about uploading and concurrent problems. But I haven't found solution of my problem. I even met similar problems like my one but there are no any intelligible solutions.

There is a fragment of my LocalSetting.php: $wgSitename              = "Wikimir"; $wgLocalInterwiki        = $wgSitename; $wgAllowExternalImages   = true; $wgEnableUploads         = true; $wgHashedUploadDirectory = true; //$wgUploadDirectory       = "$IP/images"; //$wgUploadPath            = "$wgScriptPath/images"; //$wgVerifyMimeType        = false;

So, when I try to upload an image such message occurs: Could not rename file "/var/tmp/php5wljeN" в "public/7/76/Pic_03.jpg". My folder "images" has free access for all (0777). Folder images/public doesn't exist, but I tried to create it and set to 0777. Without result. I even wrote small script to upload files into folder images and created subdirectories inside it. All is ok. Apache is able to write and create directories inside this folder.

By the way, when I use $wgHashedUploadDirectory = false I have no any problems with uploading...

So, I have no any ideas in which direction I should advance. Maybe someone give me a hint? Thanks a lot!

—217.9.147.66 11:48, 29 July 2008 (UTC)


 * Hi! Try to create a folger /public directly in the wiki-directory (sibling to /images). Usually the mediawiki places images in /images/1/2/imagename.png and I do not know why your images should be placed in /public/1/2/..., but creating that public folder with write-access should do the trick.
 * --BurninLeo 14:10, 5 August 2008 (UTC)


 * Hello, got the same problem here. I've posted it once in http://www.mediawiki.org/wiki/Project:Support_desk/Sections/Uploading#Image_Uploading_Error_.28Again.3F.29. So, the question remains is how do you deal with the unwilling to write apache? Need help desperately. --125.163.14.225 21:22, 20 August 2008 (UTC)

New images are being added with MIME type: text/plain
When I first installed MediaWiki .png files uploaded with MIME type: image/png. Now they are uploading as type: text/plain.

This is version 1.5.1 of MediaWiki, downloaded from [SourceForge] on Oct 27, 2005.


 * Upgrade MediaWiki. —Emufarmers(T 05:22, 1 August 2008 (UTC)

That's a nice thought, but shouldn't be necessary. Something apparently changed in config and I should be able to change it back without having to install or reinstall.


 * Perhaps, but you won't get any support unless you upgrade. —Emufarmers(T 19:50, 4 August 2008 (UTC)

Uploading Refresh Question

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

I was wondering if when I upload something using POST, if the user refreshes the page, will my script be executed again on the same file?

—128.227.146.80 15:53, 13 August 2008 (UTC)

Image Uploading Error (Again?)

 * MediaWiki: 1.12.0
 * Linux
 * Apache 2.2.9 (Unix)
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL: Internal only

For the past week, I've been looking all over the net but none of the answers are satisfying. Some of them are found here. I even do the count my self and found that more than 3 titles on this page are asking about the very same problem but unfortunately none of their solution is working for me. I'm talking about this internal error: Internal Error Could not rename file "/tmp/phpQp3ukG" to "public/d/d3/Peacock_fight.jpg".

Can someone please help me? Thank you. --125.163.29.195 19:02, 14 August 2008 (UTC)


 * Apache needs to be able to write the images directory; see bug 13812. —Emufarmers(T 22:55, 15 August 2008 (UTC)


 * I did. 5 days ago. But nothing happens. Is there anything I should provide for the diagnosis? Thank you. -- 125.163.0.119 04:12, 16 August 2008 (UTC)

Is it possible to upload edittools and licencing option in the Upload file function?
Dear Sirs,

People for Earth is about to release the beta version of an ECO community & WIKI ECO GUIDE called My ECO Guide that is mediawiki based.

Our programmers have integrated most of the mediawiki open source code into People for Earth system, however, there are some remaining open issues – mostly about some features that are part of mediawiki.org, but our programmers say they are not available for our application. However, we find them crucial for success of our wiki, since the rest of programming is first class. We would really appreciate your comments on the following issues in order to proceed with our project.

Our programmers said: We are using the open-source provided by the mediawiki 1.12. So we can have only those editing tools that are provided in that source code. In the mediawiki source code they have not given these tools: see link
 * 1) 1.	Can we integrate your edditools that can be found on any of your edit pages (e.g. into our wiki system?

Our programmers SAID : We cannot add the “Licensing” over here. It is not given in the mediawiki code. We cannot add it over it. We can just show if you want but it will not be stored nor it will be shown afterwards. So it doesn’t make any sense. They might have changed this after releasing the Mediawiki 1.12. We can have the features that are provided in the mediawiki open-source 1.12.
 * 1) 2.	Licencing feature in the UPLOAD FILE toolbox in the left navigation

Can these two functions be implemented into our wiki system based on mediawiki?

Thank you very much for your help,

Klemen Podjed,People for Earth

—KlemenP 19:44, 17 August 2008 (UTC)

Redirecting to the main page after uploading a file

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP: 5.x
 * MySQL: 5.x
 * URL:

Hi,

This is Fenzik, India. I integrated mediawiki 1.10.x along with my portal with minimal changes. Now we found an issue on uploading file and I'm not able to figure out. After uploaded the file, the page gets redirected to the main page. It will be great if you give the solution.

Thanks Fenzik —Fenzik 08:02, 19 August 2008 (UTC)

Umlaute nach Dateiimport zerstört [German question]
Hallo, ich habe folgendes Problem: Ich habe ein MediaWiki mit folgender Konfiguration am laufen:
 * 1) Windows XP als Host
 * 2) MySQL 5.0.51b - Latin1
 * 3) PHP 5.2.2
 * 4) MediaWiki 1.14Alpha - UTF-8 Backwards Compatible

Wenn ich nun versuche eine Datei zu Importieren, die ein Sonderzeichen enthält, oder ein Umlaut, dann Imortiert der das innerhalb der Datenbank vollkommen richtig. Auch innerhalb von MediaWiki wird alles richtig angezeigt. Allerdings speichert der die Datei nicht als Käse.jpg sondern K%C3%A4se.jpg. Dementsprechend kann MediaWiki die Datei nicht finden wenn sie angezeigt werden soll. Selbst das Thumbnail Verzeichnis zeigt der als K%C3%A4se.jpg an.

Ich hoffe mir kann jemand von euch Helfen.

--Ryg 07:29, 18 August 2008 (UTC)


 * MediaWiki: (ubuntu:1.11.2-2)
 * PHP: 5
 * MySQL: 5.0.51
 * URL:

Where can I configure the upload directory and/or can it be stored in the database (in our old wiki this was passible)? I can do uploads but $wgUploadDirectory did not give me control where the files are stored. How are the files stored (with normal names - I guess not, as there is a versioning).

Are the uploaded files added to the backups?

Thanx for your help, Wolfgang

—217.116.177.163 12:51, 30 August 2008 (UTC)

Upload file in toolbox redirects to wikipedia

 * MediaWiki: 1.13.0
 * PHP: 5.2.6
 * MySQL: 5.0.51a
 * URL: Snosnhoj Wiki

when i click Upload file in toolbox in my wiki it redirects to wikipedia but only affects the upload file on the toolbox not the one in the special pages

—202.68.78.21 10:26, 31 August 2008 (UTC)

Internal Error: Could not create directory "public/archive/f/fa".

 * MediaWiki:  version 1.13.0
 * PHP: version 5.2.6
 * MySQL: version 5.0.51a-community
 * Apache version 2.0.63
 * URL: http://www.natureweb.org.au

My first trial of mediawiki - an earlier version probably 1.11 - was as part of an existing website and it worked fine. The owners of the wiki were trialling this and decided to have a stand alone website - http://www.natureweb.org.au. I transferred all files to the new domain and installed the latest version of mediawiki.

Searching the web and Manualtalk reveals there has been some discussion on the matter of 'Could not create directory "public/archive/f/fa" and similar error messages when attempting to upload images / files.

The following is the LocalSettings.php

I would appreciate any assistance you can give me.

—58.165.44.220 06:50, 2 September 2008 (UTC)


 * Me too-- I'd appreciate assistance. It's almost a random thing that some files upload and some don't. -- 137.229.66.219 22:53, 3 September 2008 (UTC) StinkyPup


 * This is probably too late for you but.... check to see if permission used by the Mediawiki (maybe Internet Guest Account)for the image folder on the server are not Read Only. 777 permissions.

Upload directory (public) is not writable by the webserver

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.0
 * MySQL version: 5.0.27
 * URL: behind firewall

I'm having the same problem many other folks are having regarding file uploads via Special:Upload.

LocalSettings.php is configured for ulploads

$wgUploadDirectory = "{$IP}/images"; $wgUploadPath = "{$wgScriptPath}/uploads"; $wgEnableUploads      = true;
 * 1) To enable image uploads, make sure the 'images' directory
 * 2) is writable, then set this to true:

I get the following error when trying to upload. The upload directory (public) is not writable by the webserver.

Apache Log file:

[Fri Sep 05 22:12:44 2008] [error] [client 137.229.70.195] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/local/apache2/htdocs/mediawiki-1.13.0/LocalSettings.php on line 64, referer: http://library.uaf.edu/mediawiki/index.php/Image:Adding-lr-to-admin-modules.xls

Permissions for the images and uploads dir are 755.

Can someone please help!?!?!? (StinkyPup) —137.229.70.195 06:40, 6 September 2008 (UTC)

I had the same problem turned out that my update to 1.13 changed ownership to 1000:1000(undefined user on my system (Centos 5.0)). In my case all I had to do was change it to apache:apache. --216.129.222.137 16:11, 15 September 2008 (UTC)

XML File upload error

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a-community-log
 * URL: http://fiestahq.sparkonline.net/wiki/index.php/Main_Page

When importing a .xml file to my mediawiki, I get the following error:

Unable to view external table MySQL Error Number: 1267 MySQL Error Message: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,EXPLICIT) for operation '='

I use the following extensions:

RSSReader SMF/MediaWiki Users Integration

—96.251.46.191 08:59, 9 September 2008 (UTC)

image upload issues with a new installation.
MediaWiki 	1.13.1 PHP 	5.2.3 (apache2handler) MySQL 	5.0.51a-community URL: http://www.archerywikipedia.com

When trying to upload a picture file, I get the error below. Internal error From Archerywikipedia

Could not create directory "public/archive".

This installation is pretty much a plain vanilla version, with only a logo, uploads enabled and the safe option selected in LocalSettings.php, with the directories created as instructed. I have searched the manual several times but can't find a mention of "public/archive" I've tried making the public directory and enabling all permissions on it. I've been through most of the documentation. I'm willing to accept any hints at the moment.

LocalSettings is as below.

Note that some things have been removed and that the hashes render as numbers...

<?php


 * 1) This file was automatically generated by the MediaWiki installer.
 * 2) If you make manual changes, please keep track in case you need to
 * 3) recreate them later.
 * 4) See includes/DefaultSettings.php for all configurable settings
 * 5) and their default values, but don't forget to make changes in _this_
 * 6) file, not there.
 * 7) Further documentation for configuration settings may be found at:
 * 8) http://www.mediawiki.org/wiki/Manual:Configuration_settings
 * 1) Further documentation for configuration settings may be found at:
 * 2) http://www.mediawiki.org/wiki/Manual:Configuration_settings

if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); }
 * 1) If you customize your file layout, set $IP to the directory that contains
 * 2) the other MediaWiki files. It will be used as a base to locate files.

$path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path );

require_once( "$IP/includes/DefaultSettings.php" );


 * 1) If PHP's memory limit is very low, some operations may fail.
 * 2) ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } }
 * 1) Uncomment this to disable output compression
 * 2) $wgDisableOutputCompression = true;

$wgSitename        = "Archerywikipedia";

$wgScriptPath      = ""; $wgScriptExtension = ".php";
 * 1) The URL base path to the directory containing the wiki;
 * 2) defaults for all runtime URL paths are based off of this.
 * 3) For more information on customizing the URLs please see:
 * 4) http://www.mediawiki.org/wiki/Manual:Short_URL


 * 1) UPO means: this is also a user preference option

$wgEnableEmail     = true; $wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "webmaster2@anydomain.com"; $wgPasswordSender = "webmaster2@anydomain.com";

$wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true;

$wgDBtype          = "mysql"; $wgDBserver        = "localhost"; $wgDBname          = "removed"; $wgDBuser          = "removed"; $wgDBpassword      = "removed for security";
 * 1) Database settings

$wgDBprefix        = "";
 * 1) MySQL specific settings

$wgDBTableOptions  = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
 * 1) MySQL table options to use during installation or update

$wgDBmysql5 = true;
 * 1) Experimental charset support for MySQL 4.1/5.0.

$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array;
 * 1) Shared memory settings

$wgEnableUploads      = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
 * 1) To enable image uploads, make sure the 'images' directory
 * 2) is writable, then set this to true:

$wgHashedUploadDirectory = false;
 * 1) If you want to use image uploads under safe mode,
 * 2) create the directories images/archive, images/thumb and
 * 3) images/temp, and make them all writable. Then uncomment
 * 4) this, if it's not already uncommented:

$wgUploadDirectory = "{$IP}/images";
 * 1) added upload directory path

$wgGroupPermissions['*']['edit'] = false;
 * 1) Restrict anonymous editing

$wgUseTeX          = false;
 * 1) If you have the appropriate support software installed
 * 2) you can enable inline LaTeX equations:

$wgLocalInterwiki  = $wgSitename;

$wgLanguageCode = "en";

$wgProxyKey = "removed for security";

$wgDefaultSkin = 'monobook';
 * 1) Default skin: you can change the default skin. Use the internal symbolic
 * 2) names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";
 * 1) For attaching licensing metadata to pages, and displaying an
 * 2) appropriate copyright notice / icon. GNU Free Documentation
 * 3) License and Creative Commons licenses are supported so far.
 * 4) $wgEnableCreativeCommonsRdf = true;
 * 1) $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3"; $wgLogo = "http://www.archerywikipedia.com/images/logo.jpg"; $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
 * 1) When you make changes to this configuration file, this will make
 * 2) sure that cached pages are cleared.

—124.168.214.85 03:28, 21 September 2008 (UTC)

image upload

 * MediaWiki version: 1.13.1
 * PHP version: PHP 5.1.3RC4-dev installed
 * MySQL version: Connected to 5.0.67; enabling MySQL 4.1/5.0 charset mode
 * URL: http://desmusiquesdumonde.free.fr/index.php5?title=Special:T%C3%A9l%C3%A9chargement

Hi i have trouble with image upload. i did enable it and i get the form but when i try to upload i got a server error 500 message. may be this is du to : "Warning: PHP's safe mode is active. You may have problems caused by this, particularly if using image uploads." so how can i change this safe mode ? or is it anything else to do ? i did change also the images file authorising writing... can you help me with this matter ?

—77.194.101.72 16:18, 21 September 2008 (UTC)

uploding problemes

 * MediaWiki version:

every time i try to edit something or upload it ,it says i need to login when i already am logged in ,and when i try to login it say that my user name does not exist.

—86.167.241.135 11:01, 22 September 2008 (UTC)

How can I use $wgForeignFileRepos for connecting to Wikimedia Commons?

 * MediaWiki version: 1.13.1
 * PHP version: N/A
 * MySQL version: N/A
 * URL:

How can I use $wgForeignFileRepos directive for connecting to MediaWiki Commons? It probably should be obvious, but it isn't for beginner like me.

Thanks in advance for any help,

Milhaus

Upload to Multiple Locations

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.6
 * MySQL version: 5.0
 * URL: secured

I want the files people upload to be actually organized so a human can easily go in and find a file on the disk. I have a handful of different groups of users. In theory, it would be nice if the files were organized into separate directories according to these groups. Is there a means of doing this?

Two Potential Solutions:
 * Can a separate upload path be specified by group?
 * Can a folder path be entered with the filename when uploading to specify its upload path?

Thanks.

—14:51, 2 October 2008 (UTC)

uploading from a database, excel or CSV a massive number of articles
I am considering using mediawiki to create a massive database (300,000 plus) of product information starting with data which I have in excel.
 * MediaWiki version: latest
 * PHP version: 5
 * MySQL version: latest
 * URL: NA

The idea is to start with the data I have and then allow anyone to contribute opinions, reviews, how-to information, and comments to the individual articles (products)

Is there a script or tool that will manage the upload?

My data includes links to pictures, so I would rather use the links than upload the images. Can that be done?

Is this idea reasonable as a good use of this tool?

—Alindzon 16:21, 4 October 2008 (UTC)


 * MediaWiki version:1.13.2
 * PHP version: 5.16
 * MySQL version: 5.0.27
 * URL:

I get this error when I try to upload a file. Could not find file "C:\WINDOWS\TEMP\php**.tmp {*=number/letter}

—64.135.5.18 13:26, 17 October 2008 (UTC)


 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a-community
 * URL: http://tuts.azizgfx.com/wiki/index.php/Special:Upload

Having troubles with uploading

Internal error

The upload directory (public) is not writable by the webserver. please help

—Aziz Natour 17:56, 25 October 2008 (UTC)

troubles after wiki update

 * MediaWiki version: 1.12.1
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 4.1.22-log
 * URL: http://wiki.irkutsk.ru

After update wiki till the version 1.12: 1. we miss all pages in Help (Справка - in russian) 2. Error on page http://wiki.irkutsk.ru/index.php/IrkutskWiki:%D0%A2%D0%B5%D0%BA%D1%83%D1%89%D0%B8%D0%B5_%D1%81%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D1%8F: 3. When I try to create a new page (create a link, turn it on and edit new page) - it is not recorded, and an error

—Дмитрий Гавриков 23:10, 25 October 2008 (UTC)

Upload File Link Alteration

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6
 * MySQL version: 5.0.51b
 * URL: Not Public

Hi, I have managed to upgrade my wiki from 1.11 to the above version although when logged in the 'Upload file' link in the 'toolbox' points me to Wikipedia (http://en.wikipedia.org/wiki/Upload), how can i change this so it points me to the correct upload page? (http://testroom/iroom/index.php/Special:Upload)

Many Thanks,

-sas daniels 09:21, 29 October 2008 (UTC)

upload page doesn't show

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 4.0.27-max-log
 * URL:

Hi everyone,

My File Upload page is empty except for its headline and sidebar, and the following warning:

Warning: call_user_func(wfSpecialUpload) [function.call-user-func]: First argument is expected to be a valid callback in           /homepages/20/d194726613/htdocs/Twiki/includes/SpecialPage.php on line 748

does anyone know this issue?

Thanks a lot.

—90.53.94.228 00:51, 30 October 2008 (UTC)

Unable to raise file upload size limit larger than 8Mb's

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.4-2ubuntu5.3 (apache2handler)
 * MySQL version:  5.0.51a-3ubuntu5.1
 * URL: Private wiki

I edited my wiki's php.ini file to set the file upload limit to 20M. However, I'm still unable to upload files larger than 8Mb. Am I missing some essential step to raise the upload size limit cap? I would really appreciate some help with this problem.

—128.172.121.217 15:34, 10 November 2008 (UTC)


 * What error message do you get when you try to upload files larger than 8MB? I'm guessing that either you're editing the wrong php.ini file or your host doesn't allow you to change memory_limit. —Emufarmers(T 00:33, 12 November 2008 (UTC)

System Slow down after upgrading to 1.13.2

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.0-8+etch13 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch8-log
 * URL: http://poseidon.cie.lan/ciepedia

After upgrading our intranet wiki from 1.11.0 to this version, the wiki has become very slow charging pages, and writing changes after editing. Other effects have been the lose of the personal logo, and the empty :Help pages, both already corrected.

Any idea where to look for the cause of this slow down of the wiki?

—212.81.214.218 10:23, 11 November 2008 (UTC)


 * Is $wgReadOnly set to true?
 * Is an extension causing a lock? (Should no longer happen, but...)
 * Is there some as-yet-undetermined problem?
 * —Emufarmers(T 01:09, 12 November 2008 (UTC)

How to Uploade MediaWiki for MSWord 2007
I am trying to download the MediaWiki converter macro files and unable to succeed in MSWord 2007. The error I received was runtime error '5941' The requested member of the collection does not exist.
 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

—Cjames 00:55, 19 November 2008 (UTC)


 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67
 * URL:

To authorize user to enable uploading, I have to give write permission with chmod 777 to public folder. Where is this public folder located? Are all uploaded files get stored in the public folder?

—202.3.112.9 04:30, 20 November 2008 (UTC)