Page MenuHomePhabricator

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"
Closed, ResolvedPublic

Description

Author: gebhkla

Description:
$ /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


Version: 1.22.1
Severity: major
OS: Linux
Platform: PC

Details

Reference
bz60094

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz60094.
bzimport created this task.Jan 15 2014, 5:17 PM

gebhkla wrote:

Patch

This patch simply check whether the options variable is really an array.

Attached:

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/

Change 109583 had a related patch set uploaded by Lethosor:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/109583

Change 109583 merged by jenkins-bot:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/109583

was successfully merged

Change 110835 had a related patch set uploaded by Siebrand:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/110835

Change 110835 merged by jenkins-bot:
Fix rebuildall.php fatal error with PostgreSQL

https://gerrit.wikimedia.org/r/110835

Was backported to 1.22, and will be part of 1.22.2.

Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Migrating from the old tracking task to a tag for PostgreSQL-related tasks.