Last modified: 2012-08-14 11:27:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 32861 - rebuildrecentchanges.php broken on Postgres
rebuildrecentchanges.php broken on Postgres
Status: RESOLVED DUPLICATE of bug 31007
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: postgres
  Show dependency treegraph
Reported: 2011-12-07 22:19 UTC by Simon Dwyer
Modified: 2012-08-14 11:27 UTC (History)
2 users (show)

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

Rebuild (1.40 KB, text/x-log)
2011-12-07 22:20 UTC, Simon Dwyer

Description Simon Dwyer 2011-12-07 22:19:11 UTC
Imported a backup from another 1.18 install then run the rebuildrecentchanges.php.

getting a error to do with the NULL value.

[root@networkmanager maintenance]# php importDump.php /fullbackup.dmp 
You might want to run rebuildrecentchanges.php to regenerate RecentChanges
[root@networkmanager maintenance]# php rebuildrecentchanges.php 
Loading from page and revision tables...
$wgRCMaxAge=7862400 (91 days)
Updating links and size differences...
PHP Warning:  pg_query(): Query failed: ERROR:  invalid input syntax for integer: "NULL"
LINE 1: ...did = '0',rc_new = '1',rc_type = '1',rc_old_len = 'NULL',rc_...
                                                             ^ in /var/www/wiki/includes/db/DatabasePostgres.php on line 253

Warning: pg_query(): Query failed: ERROR:  invalid input syntax for integer: "NULL"
LINE 1: ...did = '0',rc_new = '1',rc_type = '1',rc_old_len = 'NULL',rc_...
                                                             ^ in /var/www/wiki/includes/db/DatabasePostgres.php on line 253
A database error has occurred.  Did you forget to run maintenance/update.php after upgrading?  See:
Query: UPDATE  "recentchanges" SET rc_last_oldid = '0',rc_new = '1',rc_type = '1',rc_old_len = 'NULL',rc_new_len = '423' WHERE rc_cur_id = '1' AND rc_this_oldid = '15'
Function: RebuildRecentchanges::rebuildRecentChangesTablePass2
Error: 1 ERROR:  invalid input syntax for integer: "NULL"
LINE 1: ...did = '0',rc_new = '1',rc_type = '1',rc_old_len = 'NULL',rc_...
Comment 1 Simon Dwyer 2011-12-07 22:20:10 UTC
Created attachment 9635 [details]
Comment 2 Brion Vibber 2011-12-08 19:38:52 UTC
Same as bug 31007?

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

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