Project:Support desk/Sections/Uploading

__NEWSECTIONLINK__

= Uploading Support =

.TMP File issue?

Mediawiki Version: latest, PHP version Latest mySQL latest --- When Users try to upload images onto the wiki, they get a error that states "Cannot find C:\WINDOWS\TEMP\PHP"X" Whereas X indicates a letter (currently PHPc.tmp) I've disabled Imagemagic(sp?) and I am still getting an error. Can I remote host the images and what tag would I use to embed it?

Special:Import error
I fixed this error by setting $wgDBmysql5 = false;


 * MediaWiki version: 1.15.0
 * PHP version: 5.1.6 (apache2handler
 * MySQL version: 5.0.45

I am trying to import the help pages from mediawiki as per the instructions found on http://www.mediawiki.org/wiki/Project:PD_help/Copying

I keep getting the following error and can not find any info on it.'''I found a fix. See above.'''

Error in fetchObject: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)


 * MediaWiki version: 1.6.12
 * PHP version: 5.2.9 (cgi-fcgi)
 * MySQL version: 5.1.30
 * URL: http://stargate.tf-575.com/

When trying to upload a png image to the site: Upload warning The file is corrupt or has an incorrect extension. Please check the file and upload again. I've had this problem before, and fixed it before, but I can't remember or find how...

—Lord Trekie 01:51, 4 August 2009 (UTC)
 * Silly question, do you have all the file uploading settings correct? Including file extensions allowed etc? -- Dr DBW |  talk  04:09, 5 August 2009 (UTC)


 * could it be this?? http://webservices.blog.gustavus.edu/2007/06/18/fixing-broken-png-uploads-with-mediawiki/ Unfortunately it wont' be easy to fix this error in mime magic on a shared hosting. --Irina666 09:38, 28 August 2009 (UTC)

"Upload file" link in sidebar is converted to "Wikipedia:Upload" (rather than the expected "Special:Upload")

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.8 (apache2handler)
 * MySQL version: 5.0.67-log
 * URL:

Recent update to MW 1.15.1, as well as minor modifications to a few other areas of the wiki configuration.

The "Upload file" link in the sidebar now takes users to a page reference of "Wikipedia:Upload", not the expected "Special:Upload" page.

I know that most sidebar entries are editable within "Mediawiki:Sidebar", but not the toolbox entries. How can these entries be changed?

Specifically: What happened to result in this modification? What configuration needs to be changed to eliminate the inexplicable reference to "Wikipedia" (not "Mediawiki", but that separate, unrelated site) in my wiki-specific sidebar?

—BDLatimer 21:50, 1 September 2009 (UTC)

File upload breaks in 1.15.1

 * MediaWiki version: 1.15.1
 * PHP version:  5.2.6 (apache2handler)
 * MySQL version: 5.0.77
 * URL: http://tekstopia.uio.no/mediawiki_15/index.php/Special:Upload

On upgrading from MW 1.11 to 1.15.1 (yes I should have done this a while ago), I suddenly am unable to enable uploads. Tried this on my test server first, and was told file uploads was disabled in php (although it is definitely not). I thought the test server might be messed up somehow, so I set up a test version in a folder on the live server, and got the same error there. I have double checked with phpinfo, and file_uploads is definitely on (and post_max_size and upload_max_filesize are both 8M). It is a fresh MW installation in the same environment that my working live server is running. Anyone got any idea what can be causing this? —Anderssl 17:46, 11 September 2009 (UTC)


 * Update: There is an error message in the logs on my server saying that ini_get is disabled for security reasons. Presumably this is the cause. Will check with the server admins and report back if that doesn't solve it. --Anderssl 22:29, 11 September 2009 (UTC)

Upload directory (public) is not writable by the webserver

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.8 (apache2handler)
 * MySQL version: 5.0.51a-log
 * URL: http://wiki.pdaxrom.org/index.php/Main_Page

Hi! I set the /images folder permission "775" (even try to set "777") and in LocalSettings.php type the following: $wgEnableUploads = true; (according the User Guide)

But when I trying to upload a file such error is occured: Internal error The upload directory (public) is not writable by the webserver.

How I can set the permission to upload file using webserver?

—83.229.245.58 08:52, 16 September 2009 (UTC)


 * You have to make the upload directory (folder) writable by the user running the webserver. This is something that is done on the webserver itself, not in the MediaWiki code. See Manual:Configuring file uploads for details. Doing this right is important for the security of the server, so if you have no idea what all of this means you should probably talk to your server administrator. --Anderssl 19:18, 16 September 2009 (UTC)
 * Sorry, somehow I didn't read your question properly. If you have set the /images folder to 777 it should work (as long as /images is your upload folder). Sorry, I'll stop giving stupid answers and leave the stage to someone who knows more... --Anderssl 19:23, 16 September 2009 (UTC)

File Upload

 * MediaWiki version: 1.15.1
 * PHP version: 5.0.4 (isapi)
 * MySQL version: 4.1.7-nt
 * URL: http://sinhweb3/wiki/

open_basedir ist not set in php.ini $wgEnableUploads = true in LocalSettings This is a windows 2003 system. For testing issues I set user rights for everyone to full access on the "images" folder. When trying to upload a file I get the following error: Could not create directory "public/6/6b". I tried the following: $wgUploadDirectory = "{$wgScriptPath}/uploads"; $wgUploadPath = "{$wgScriptPath}/uploads"; and the error message changes to: The upload directory (public) is missing and could not be created by the webserver.

On the upload folder also everyone has full access.

Any help is appreciated.

—81.252.82.4 12:42, 17 September 2009 (UTC)