Image upload not working after upgrade
Ok I've been able to enable some kind of error reporting and I get this when I try to upload an image.
Notice: Undefined index: tmp_name in /srv/www/htdocs/mediawiki/includes/WebRequest.php on line 1153
Notice: Undefined index: size in /srv/www/htdocs/mediawiki/includes/WebRequest.php on line 1140
Notice: Undefined index: error in /srv/www/htdocs/mediawiki/includes/WebRequest.php on line 1167
I tried to look at the files, but Im in no way a PHP guy so... if anyone can shed some light i'd be very grateful.
It looks like this:
if( !$this->exists() then return 0 else return $this->fileInfo['size'];
if( !$this->exists() then return 0 else return $this->fileInfo['tmp_name'];
if( !$this->exists() then return 0 else return $this->fileInfo['error'];
They are quite simple... so I dont get it ?!
Check your temporary directory (which ever one is used by php. It should probably be specified in php.ini) is writable by the webserver. Also double check all the upload related settings in php.ini to make sure they are correct.
(If that's the issue, it may indicate a bug in mediawiki, as mediawiki should handle such situations more gracefully. Of course this is a guess, so it could be some whole other issue)