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
 * URL: http://school.rm-f.me/wiki/index.php/Main_Page

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)

Backtrace:


 * 1) 0 /var/www/html/school/wiki/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1608): Database->fetchObject(false)
 * 2) 1 /var/www/html/school/wiki/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1577): SMWSQLStore2->getSMWPageIDandSort('???????????????...', 0, , , true)
 * 3) 2 /var/www/html/school/wiki/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(647): SMWSQLStore2->getSMWPageID('???????????????...', 0, '')
 * 4) 3 /var/www/html/school/wiki/extensions/SemanticForms/includes/SF_LinkUtils.inc(224): SMWSQLStore2->getInProperties(Object(SMWWikiPageValue))
 * 5) 4 /var/www/html/school/wiki/extensions/SemanticForms/includes/SF_LinkUtils.inc(209): SFLinkUtils::addDataLink(Object(Title))
 * 6) 5 [internal function]: SFLinkUtils::setBrokenLink(Object(SkinMonoBook), Object(Title), Array, '???????????????...', Array, NULL)
 * 7) 6 /var/www/html/school/wiki/includes/Hooks.php(117): call_user_func_array(Array, Array)
 * 8) 7 /var/www/html/school/wiki/includes/Linker.php(222): wfRunHooks('LinkEnd', Array)
 * 9) 8 /var/www/html/school/wiki/includes/Linker.php(509): Linker->link(Object(Title), '???????????????...', Array, Array, 'broken')
 * 10) 9 /var/www/html/school/wiki/includes/parser/LinkHolderArray.php(233): Linker->makeBrokenLinkObj(Object(Title), '???????????????...', '')
 * 11) 10 /var/www/html/school/wiki/includes/parser/LinkHolderArray.php(115): LinkHolderArray->replaceInternal('
 * MediaWiki version: 1.14
 * PHP version: 5
 * MySQL version:
 * URL: NA

I have been creating a wiki on my localhost, it is a dell laptop,i have a dual boot, and have it on both the linux and windows sides, i have been creating it as a test for my company, i have found a variable in LocalSettings.php "$wgUploadDirectory" that can change the upload directory from the images directory in mediawiki, to another directory outside the mediawiki directory, namely a shared directory for the business, or as a test, MyDocuments directory in my C: drive. The documentation i've found is good, but not specific as to how you point it to a local directory outside of the mediawiki directory, i tried adding this line

$wgUploadDirectory = "C:\Documents and Settings\IDT user\My Documents"

and i got this error message: "Parse error: parse error in C:\xampp\htdocs\mediawiki\LocalSettings.php on line 133" which is the line i added. anyhelp you can as to what i need to add or what variable value i can put, to allow this to work would be appreciated.

—Abdullahva 14:02, 23 July 2009 (UTC)
 * No idea about things on a windows server, however I get the feeling it is probably having difficulties with the spaces in the directory you gave it. -- Dr DBW |  talk  04:08, 5 August 2009 (UTC)

???

 * MediaWiki version: 1.15.1
 * PHP version:      5.x
 * MySQL version:    5.0
 * URL:              http://wiki.kanslietonline.se/

Hi! I can't manage to allow file / image uploads with the FCKEditor extension. I have followed the steps here: http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads

When I click "Insert image" in the editor, the "Browse" button isn't there. I would like to allow image uploads in the editor.

Thanks,

—92.251.45.84 07:34, 2 August 2009 (UTC)

PNG Upload Error

 * 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)

Error uploading new file version

 * MediaWiki version: 1.15.0
 * PHP version: 5.3.0 (cgi-fcgi)
 * MySQL version: 5.1.36-community
 * URL: Hosted locally, not available on the internet.

I am getting the following error when uploading a new version of an image. I can upload an image the first time without a problem, but when when I click the "upload a new version of this ..." link, browse to a new file, and click Upload, I get this error:

PHP Notice: Undefined variable: pageText in C:\inetpub\wwwroot\BSWiki\includes\specials\SpecialUpload.php on line 576

I am using WIMP. Any help is appreciated.

—66.11.67.10 18:13, 5 August 2009 (UTC)

Help for adding 7z file type to upload
Hello, I am trying to add the "7z" extension to upload on the wiki :
 * MediaWiki version: 1.11.0 (Upgrad not possible at this time)
 * PHP version: 5.2.0-8+etch7 (apache2handler)
 * MySQL version: .0.32-Debian_7etch1
 * URL: http://theelderscrolls.wiwiland.net
 * On LocalSetting.php, I add the line $wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', '7z');.
 * On Includes/mime.info, I add the line application/x-7z-compressed 	[ARCHIVE]
 * On Includes/mime.types, I add the line application/x-7z-compressed 7z

But, when I try to upload a 7z archive I have again the error The file may be corrupted, have a null size or have an invalid extension. (I don't know the exact error in english, in french is it : Ce fichier est corrompu, a une taille nulle ou possède une extension invalide. Veuillez vérifier le fichier.)

How can I add the 7z extension to upload ?

Thanks —77.197.237.128 11:07, 23 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)