Tim Gowen wrote:
I've just installed MediaWiki in Windows 2003 with MySQL 4.1.22, PHP 5.2.5 and MediaWiki 1.11.0.
I have enabled upload of images, but when I select an image for upload I get the following internal error:
A database error has occurred Query: SELECT img_size,img_width,img_height,img_bits,img_media_type,img_major_mime,img _minor_mime,img_metadata,img_timestamp,img_sha1 FROM `image` WHERE img_name = 'Campaignlogo.jpg' LIMIT 1 Function: LocalFile::loadFromDB Error: 1054 Unknown column 'img_sha1' in 'field list' (localhost)
Am I using the wrong version of MySQL or PHP?
There's a mismatch between your mediawiki code version and your table layout. Try running maintenance/update.php If that doesn't fix it, manually ALTER TABLE to add the img_sha1 column. You can find a list of the tables in maintenance/tables.sql