Last modified: 2010-05-15 16:03:17 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 T15576, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13576 - maintenance/rebuildrecentchanges.php fails
maintenance/rebuildrecentchanges.php fails
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.13.x
Other Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-01 12:27 UTC by Siebrand Mazeland
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

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


Attachments

Description Siebrand Mazeland 2008-04-01 12:27:34 UTC
rebuildrecentchanges.php fails with an error on SQL syntax. Shell input/output below. Found in 1.13alpha (r32654).

/var/www/w/maintenance# php rebuildrecentchanges.php
Loading from page and revision tables...
$wgRCMaxAge=31104000 (360 days)
Updating links and size differences...
A database query syntax error has occurred.
The last attempted database query was:
"UPDATE `bw_recentchanges` SET rc_last_oldid=72650,rc_new=0,rc_type=0,rc_old_len=,rc_new_len=198 WHERE rc_cur_id=712 AND rc_this_oldid=103803"
from within function "".
MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rc_new_len=198 WHERE rc_cur_id=712 AND rc_this_oldid=103803' at line 1 (localhost)"
Comment 1 Huji 2008-04-01 13:45:04 UTC
that only happens when $lastSize is empty; this is supposed to be filled in based on the value of rev_len which is fetched by the previous query. If for any reason (like old database contents lacking rev_len values), the value is not numeric, the above error takes place. A work around was applied with r32656.

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


Navigation
Links