Last modified: 2010-05-15 15:38:48 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 T3945, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1945 - Cannot delete image
Cannot delete image
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.5.x
PC Linux
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://playwiki.wegge.dk/index.php?ti...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-22 15:41 UTC by Anders Wegge Jakobsen
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description Anders Wegge Jakobsen 2005-04-22 15:41:10 UTC
When deleting an image, I get the following error:

Databasefejl
Fra Wikipedia, den frie encyklopædi
Der er sket en syntaksfejl i en databaseforespørgsel. Den sidst forsøgte
databaseforespørgsel var:

    DELETE `text` FROM `text`, `revision` WHERE old_id=rev_id AND (rev_page = 1009)

fra funktionen "Article::doDeleteArticle". MySQL returnerede fejlen "1064: You
have an error in your SQL syntax near 'text` FROM `text`, `revision` WHERE
old_id=rev_id AND (rev_page = 1009)' at line 1 (localhost)".


The error backtrace is:
Using reader #0: localhost
Article::doDeleteArticle
SQL ERROR: You have an error in your SQL syntax near 'text` FROM `text`, `revisi
on` WHERE old_id=rev_id  AND (rev_page = 1009)' at line 1 (localhost)
Skin::makeLink: 'Project:General_disclaimer' 'Disclaimers' '' '' '' ''
Skin::makeLink: 'Wikipedia:Om' 'Om Wikipedia' '' '' '' ''
** no caching **
WARNING: Abrupt exit in /home/wegge/playwiki/includes/GlobalFunctions.php at
line 457
WARNING: Abrupt exit in /home/wegge/playwiki/includes/OutputPage.php at line 622
WARNING: Abrupt exit in /home/wegge/playwiki/includes/Database.php at line 361
WARNING: Abrupt exit in /home/wegge/playwiki/includes/Database.php at line 310
WARNING: Abrupt exit in /home/wegge/playwiki/includes/Database.php at line 1116
WARNING: Abrupt exit in /home/wegge/playwiki/includes/Article.php at line 1748
WARNING: Abrupt exit in /home/wegge/playwiki/includes/ImagePage.php at line 360
WARNING: Abrupt exit in /home/wegge/playwiki/includes/ImagePage.php at line 272
WARNING: Abrupt exit in /home/wegge/playwiki/index.php at line 179
Comment 1 JeLuF 2005-04-29 09:59:06 UTC
Which MySQL version are you using?
Comment 2 Anders Wegge Jakobsen 2005-04-29 10:04:54 UTC
(In reply to comment #1)
> Which MySQL version are you using?

MySQL 3.23.58
PHP 4.3.11, in case that might be an issue.
Comment 3 JeLuF 2005-04-29 10:06:53 UTC
The SQL statement that fails works with MySQL >4. Not with MySQL 3.
Do we still support MySQL 3 in MediaWiki 1.5?
Comment 4 Brion Vibber 2005-06-06 00:57:29 UTC
The joined delete query is no longer used, so this should be fixed.

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


Navigation
Links