Project:Support desk/Sections/Uploading

From MediaWiki.org
Jump to navigation Jump to search
This page is no longer used.
Please ask questions on the new support desk.



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?


  • Mediawiki Version: 1.13.2
  • PHP version: 5.2.6
  • mySQL: 5.0.51a

Getting the same error message: "Cannot find C:\WINDOWS\TEMP\PHP"X" intermittently when uploading files. Tried changing upload_tmp_dir directive and other settings in PHP.ini but nothing seems to work. Does anyone know what might be causing this error?

(SOLVED) Errors while deleting files/images

  • MediaWiki version: 1.15.1
  • PHP version: 5.0.4 (apache)
  • MySQL version: 4.1.21
  • URL: (intranet)

Error deleting file: Could not create directory "deleted/d/2/n" (or the like).

Hi, I have the problem that I get an error message when trying to delete images from our wiki. It says: "Error deleting file: Could not create directory "deleted/d/2/n" (or the like).

I found that the permissions of the ./images/deleted directory can not be changed to 777. Apparently it was made (or is owned) by another user. I have no root access, so I can't chown the directory.

I also tried to create another directory (del), set its permissions to 777. And then included in the LocalSettings.php :

  $wgFileStore['deleted']['directory'] = "$wgUploadPath/del";
  $wgFileStore['deleted']['url'] = null; 
  $wgFileStore['deleted']['hash'] = 0;

This doesn't help either. Even worse, after trying to delete a file, it turned out that also the owner of del was changed...

Any suggestions?


-> I managed to resolve it myself, after browsing mediawiki and Google for the same problem. It turned out that Safe_Mode should be tunred off (search on Safe_Mode for instructions how to do that).

--- Gert-willem Romer ---

uploading documents

  • MediaWiki version: 1.14.0
  • PHP version: 5.1.6
  • MySQL version: 5.0.22
  • URL:

Hi folks,

I encounter the following problem when uploading a document. When I uploaded a document and then upload a new version of the document, I can't see the new version of the document when I download it. Another user can see it. After an hour or so I'm also able to see the updated document. I tried it with the IE and Firefox, same problem. I also emptied my cach and all other options within the browser, so I guess it has to do with the MediaWiki itself. Thanks for your support.



Uploaded file Namespace auto change

  • MediaWiki version: 1.11.0
  • PHP version: 5.1.6
  • MySQL version: 5.0.77
  • URL:

Is there a way to have uploaded files Namespace automatically set to Media, or something other than Image?

Auto Namespace Change

  • MediaWiki version: 1.11.0
  • PHP version: 5.1.6
  • MySQL version: 5.0.77
  • URL:

Is there a way to have uploaded files Namespace automatically set to Media, or something other than Image?

(SOLVED) Memory exhausted on upload

  • MediaWiki version: 1.16.0
  • PHP version: 5.1.6 (apache2handler)
  • MySQL version: 5.0.27-log
  • URL: locked-down

Uploading a 868KB JPEG image file results in the following error message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10368 bytes) in /<...>/includes/media/Bitmap.php on line 213

Code line:

$src_image = call_user_func( $loader, $srcPath );

Uploading the same file on the same server with MediaWiki verion 1.12.0 works fine.

phpinfo() shows a memory limit of 32MB.

Solution

Used .htaccess file to set the memory limit. This worked for me:

php_value memory_limit 67108864

217.150.103.2 13:46, 5 August 2010 (UTC)

  • MediaWiki version: 
  • PHP version: 5.0.5
  • MySQL version: 5.0.27
  • URL:

while uploading images internal error Could not find file "C:\Windows\TEMP\php7B6F.tmp".everytime the filename changes


122.174.130.115 03:13, 10 August 2010 (UTC)


no uploaded files in file-article

  • MediaWiki: 1.16.0 (on the same server an older wiki v1.13.3 is ok)
  • PHP: 5.2.12
  • MySQL: 5.0.90 (MyISAM)

When uploading a file, after the upload finishes, the browser opens a page where it says "No file by this name exists, but you can upload it."). Later I can see the file in the special pages file list (and I can download it), but in the corresponding automatically genereated article (e.g. "File:foo.gif") it says again "No file by this name exists, but you can upload it.")...

The problem strangely resolves itself after one hour or less, but anyway it is confusing and user will have to to wait before being able to link the uploaded files in the articles.

This problem has been reported previously but somehow has been tagged as resolved and moved into the archive | no uploaded files in file-article .

Narendo -- 12 August 2010