Last modified: 2012-08-14 11:27:35 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 T34861, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.18.x
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: ---


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

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 
Done!
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: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
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]
Rebuild
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.


Navigation
Links