Last modified: 2012-08-04 20:49:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15345, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13345 - Can't Replace Images (PostgreSQL)
Can't Replace Images (PostgreSQL)
Status: RESOLVED DUPLICATE of bug 11363
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.11.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2008-03-13 14:31 UTC by Ian Harding
Modified: 2012-08-04 20:49 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ian Harding 2008-03-13 14:31:06 UTC
When trying to replace an image the following error occurs.

A database error has occurred Query: INSERT INTO oldimage (oi_name,oi_archive_name,oi_size,oi_width,oi_height,oi_bits,oi_timestamp,oi_description,oi_user,oi_user_text,oi_metadata,oi_media_type,oi_major_mime,oi_minor_mime,oi_sha1) SELECT img_name,'20080313142648!6256714.jpg',img_size,img_width,img_height,img_bits,img_timestamp,img_description,img_user,img_user_text,img_metadata,img_media_type,img_major_mime,img_minor_mime,img_sha1 FROM image WHERE img_name = '6256714.jpg' Function: LocalFile::recordUpload2 Error: 1 ERROR: column "oi_metadata" is of type bytea but expression is of type text LINE 1: ...,oi_timestamp,oi_description,oi_user,oi_user_text,oi_metadat... ^ HINT: You will need to rewrite or cast the expression.
Comment 1 Roan Kattouw 2008-03-13 14:34:15 UTC
Please run maintenance/update.php . Dunno if that'll fix it, but it just might.
Comment 2 Ian Harding 2008-04-07 16:11:44 UTC
Oh hi.  I did that and it didn't help.
Comment 3 Greg Sabino Mullane 2008-04-13 22:59:44 UTC
There have been some changes in the last week or so to related code - can you try again with a recent subversion snapshot?
Comment 4 Alexandre Emsenhuber [IAlex] 2009-02-21 18:38:30 UTC

*** This bug has been marked as a duplicate of bug 11363 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links