Last modified: 2008-10-12 17:08:11 UTC
LocalFile::getHash() updates the sha1 column if it's not present, but it does so even if the wiki is in read only, with the consequent db Exception being thrown. #0 /usr/local/apache/common-local/php-1.5/includes/db/Database.php(574): Database->reportQueryError('Can't execute t...', 1223, 'UPDATE `image`...', 'LocalFile::getS...', false) #1 /usr/local/apache/common-local/php-1.5/includes/db/Database.php(1330): Database->query('UPDATE `image`...', 'LocalFile::getS...') #2 /usr/local/apache/common-local/php-1.5/includes/filerepo/LocalFile.php(1146): Database->update('image', Array, Array, 'LocalFile::getS...') #3 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryImageInfo.php(140): LocalFile->getSha1() #4 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryImageInfo.php(85): ApiQueryImageInfo::getInfo(Object(OldLocalFile), Array, Object(ApiResult)) #5 /usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(212): ApiQueryImageInfo->execute() #6 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(422): ApiQuery->execute() #7 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(258): ApiMain->executeAction() #8 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(242): ApiMain->executeActionWithErrorHandling() #9 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute() #10 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...') #11 {main}
Fixed in r41997