Thread:Project:Support desk/image/file upload broken after upgrade from MW 1.19 to MW 1.23

http://pool.publicdomainproject.org/index.php/Special:Version

MediaWiki 	1.23.0-rc.3 PHP 	5.4.4-14+deb7u10 (apache2handler) MySQL 	5.5.37-0+wheezy1 Lua 	5.1.5

Apache is running chrootet and PHP is using APC for caching.

This is the file I used for my trial and errors: http://pool.publicdomainproject.org/index.php/File:OHM2013_logo.png

The Debug Log for an upload says this:

Start request POST /index.php/Special:Upload HTTP HEADERS: HOST: pool.publicdomainproject.org USER-AGENT: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140205 Firefox/24.0 Iceweasel/24.3.0 ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 ACCEPT-LANGUAGE: en-US,en;q=0.5 ACCEPT-ENCODING: gzip, deflate REFERER: http://pool.publicdomainproject.org/index.php?title=Special:Upload&wpDestFile=OHM2013_logo.png&wpForReUpload=1 COOKIE: publicdomainwiki_poolUserName=Nuess0r; vector-nav-p-Encyclopedia=true; publicdomainwiki_poolUserID=1; publicdomainwiki_poolToken=f668ef2de0090877dcea7d 348da44e06; vector-nav-p-tb=true; publicdomainwiki_pool_session=7c409c43a15f3a920b8fcb79591a740f CONNECTION: keep-alive CONTENT-TYPE: multipart/form-data; boundary=---17965292055331612921544979489 CONTENT-LENGTH: 37564 [caches] main: APCBagOStuff, message: APCBagOStuff, parser: APCBagOStuff [caches] LocalisationCache: using store LCStoreCDB Unstubbing $wgParser on call of $wgParser::setHook from efYearsOldSetup Parser: using preprocessor: Preprocessor_DOM Fully initialised User: got user 1 from cache User: loading options for user 1 from override cache. User: logged in from session User: loading options for user 1 from override cache. MessageCache::load: Loading de-ch... got from global cache Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct User::getBlockedStatus: checking... Connected to database 0 at 127.0.0.1 UploadBase::createFromRequest: class name: UploadFromFile FSFile::getProps: Getting file info for /tmp/phpyzVBrz MimeMagic::__construct: loading mime types from /pool.publicdomainproject.org/includes/mime.types MimeMagic::__construct: loading mime info from /pool.publicdomainproject.org/includes/mime.info MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpyzVBrz for magic numbers. MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpyzVBrz as image/png MimeMagic::guessMimeType: guessed mime type of /tmp/phpyzVBrz: image/png MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png FSFile::getProps: /tmp/phpyzVBrz loaded, 36313 bytes, image/png.

mime:  extension:

UploadBase::detectScript: checking for embedded scripts and HTML stuff UploadBase::detectScript: no scripts found ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file. UploadBase::detectVirus: virus scanner disabled FSFile::getProps: Getting file info for /tmp/phpyzVBrz MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpyzVBrz for magic numbers. MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpyzVBrz as image/png MimeMagic::guessMimeType: guessed mime type of /tmp/phpyzVBrz: image/png MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png FSFile::getProps: /tmp/phpyzVBrz loaded, 36313 bytes, image/png. UploadBase::verifyExtension: mime type image/png matches extension png, passing file Title::getRestrictionTypes: applicable restrictions to are {edit,move,upload} UploadBase::verifyFile: all clear; passing. MessageCache::load: Loading en... got from global cache FileBackendStore::getFileStat: File mwstore://local-backend/local-public/d/d8/OHM2013_logo.png does not exist. [FSFileBackend] chmod: No such file or directory FileBackendStore::getFileStat: File mwstore://local-backend/local-public/archive/d/d8/20140609004529!OHM2013_logo.png does not exist. DatabaseBase::query: Writes done: INSERT IGNORE INTO `image` (img_name,img_size,img_width,img_height,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_description,img_user,img_user_text,img_metadata,img_sha1) VALUES ('OHM2013_logo.png','36313','359','167','8','BITMAP','image','png','20140609004529','','1','Nuess0r','a:6:{s:10:\"frameCount\";i:0;s:9:\"loopCount\";i:1;s:8:\"duration\";d:0;s:8:\"bitDepth\";i:8;s:9:\"colorType\";s:10:\"truecolour\";s:8:\"metadata\";a:4:{s:11:\"XResolution\";s:8:\"3780/100\";s:11:\"YResolution\";s:8:\"3780/100\";s:14:\"ResolutionUnit\";i:3;s:15:\"_MW_PNG_VERSION\";i:1;}}','kjnzpiz0d9uh643p7x3tn8v3kcxego9') IP: *****[anonymized by myself] User: got user 1 from cache [ContentHandler] Created handler for wikitext: WikitextContentHandler FSFileBackend::getFileListInternal given directory does not exist: '/pool.publicdomainproject.org/images/thumb/d/d8/OHM2013_logo.png' LocalFile::purgeThumbList: array [squid] SquidUpdate::purge: /images/d/d8/OHM2013_logo.png Title::getRestrictionTypes: applicable restrictions to are {edit,move,upload} BacklinkCache::queryLinks: got results from DB BacklinkCache::partition: got from full result cache OutputPage::sendCacheControl: private caching; ** Request ended normally

You can see, the file upload to the temp directory works and MW can analyse it, but after it says "passing" something goes wrong and in the next line, MW can't find the file anymore (that should been moved). On the server the file disapears from the tmp directory but I don't know where it is after the move and why it does not end up in the correct directory.

File upload worked fine in MW 1.19 for years. The problem also occours when I disable ALL extensions in this wiki, upload is then still broken.

--213.196.168.246 23:47, 8 June 2014 (UTC) (nuess0r on the publicdomainproject wiki)