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)

Error 500 on IIS7 when uploading a newer file version

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (CGI)
 * MySQL version: 5.1.31
 * URL: intranet only

I successfully managed to install Mediawiki on an IIS7. Uploading works fine until one decides to upload a newer version of a file. Then the script dies with a 500 error. PHP logs and IIS logs DO NOT show any anomalities. When one uploads a newer version of a file, UNCHECKS the "ignore warnings" checkbox and accepts to overwrite everything works fine.

It would be helpful if there was an easy way to uncheck the "ignore warnings" checkbox by default. Thanks in advance for any help!

—213.227.166.95 12:49, 29 July 2009 (UTC)

Using Special:Import to import protected pages leaves pages still unprotected
We are trying to import custom made XML's with protected pages into the wiki. The pages are imported correctly but they are not protected.
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (apache2handler)
 * MySQL version: 5.1.36-community
 * URL: local

We use XML's like these:  Page title edit=sysop:move=sysop WikiSysop 1 Import protected page...

The mentioned XML Schema (http://www.mediawiki.org/xml/export-0.3.xsd) shows that the element "restrictions" is supported, but when used the pages is still not protected.

Please help...

—217.114.103.238 09:36, 30 July 2009 (UTC)


 * How many pages are you trying to import? Could you just re-protect them manually? Dr. Eme

???

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

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)