Last modified: 2014-02-03 08:24:09 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 T62094, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60094 - rebuildall.php fails with PostgreSQL with PHP error "Cannot unset string offsets in /home/apache/htdocs/mediawiki/TOmig2/includes/db/DatabasePostgres.php on line 734"
rebuildall.php fails with PostgreSQL with PHP error "Cannot unset string offs...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.22.1
PC Linux
: Normal major (vote)
: 1.22.x release
Assigned To: Lethosor
: patch, patch-need-review
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2014-01-15 17:17 UTC by gebhkla
Modified: 2014-02-03 08:24 UTC (History)
4 users (show)

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


Attachments
Patch (926 bytes, patch)
2014-01-15 17:28 UTC, gebhkla
Details

Description gebhkla 2014-01-15 17:17:17 UTC
$ /opt/apache/server1/bin/php ./maintenance/rebuildall.php --conf ./LocalSettings.php


** Rebuilding recentchanges table:
Loading from page and revision tables...
$wgRCMaxAge=7862400 (91 days)
Updating links and size differences...
Loading from user, page, and logging tables...
Flagging bot account edits...
Flagging auto-patrolled edits...
Deleting feed timestamps.
Done.


** Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.
Refreshing redirects table.
Starting from page_id 1 of 272.
100
200
Refreshing links tables.
Starting from page_id 1 of 272.
100
200
Retrieving illegal entries from pagelinks... Warning: array_search() expects parameter 2 to be array, string given in .../includes/db/DatabasePostgres.php on line 732
Fatal error: Cannot unset string offsets in .../includes/db/DatabasePostgres.php on line 734
Comment 1 gebhkla 2014-01-15 17:28:19 UTC
Created attachment 14319 [details]
Patch

This patch simply check whether the options variable is really an array.
Comment 2 Andre Klapper 2014-01-16 16:33:47 UTC
Hi! Thanks for your patch!

You are welcome to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial

Putting your branch in Git makes it easier to review it quickly. If you don't want to set up Git/Gerrit, you can also use https://tools.wmflabs.org/gerrit-patch-uploader/
Comment 3 Gerrit Notification Bot 2014-01-26 17:39:47 UTC
Change 109583 had a related patch set uploaded by Lethosor:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/109583
Comment 4 Gerrit Notification Bot 2014-01-26 20:55:48 UTC
Change 109583 merged by jenkins-bot:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/109583
Comment 5 Umherirrender 2014-01-27 19:45:22 UTC
was successfully merged
Comment 6 Gerrit Notification Bot 2014-02-02 08:36:37 UTC
Change 110835 had a related patch set uploaded by Siebrand:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/110835
Comment 7 Gerrit Notification Bot 2014-02-02 19:00:32 UTC
Change 110835 merged by jenkins-bot:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/110835
Comment 8 Siebrand Mazeland 2014-02-03 08:20:59 UTC
Was backported to 1.22, and will be part of 1.22.2.

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


Navigation
Links