Page MenuHomePhabricator

Schema change not applied through web updater
Closed, ResolvedPublic

Description

Web update results into

A database query error has occurred. This may indicate a bug in the software.

    Query:
    SELECT page_counter AS hits FROM `hit_counter` WHERE page_id = '1'
    Function: HitCounters\HitCounters::getCount
    Error: 1146 Table 'myWiki.hit_counter' doesn't exist (localhost)

After running "update.php" via the MaintenanceShell extension I get the required "hit_counter" table.

Event Timeline

Kghbln raised the priority of this task from to Needs Triage.
Kghbln updated the task description. (Show Details)
Kghbln added a subscriber: Kghbln.

Known issue. Problem due to the new extension registration system. There is a bug at T100414 for this. there is a patch waiting for approval if you could test that patch and see if that works. that would be great.

Paladox triaged this task as Unbreak Now! priority.Jun 19 2015, 7:00 PM

Broken and since some users do not have shell access or any access to scripts or anything to do the update and can only rely on web upgrader so that's why I am setting to unbreak.

Same here. I upgraded a wiki from MediaWiki 1.24 to MediaWiki 1.25, installed HitCounters (uploaded HitCounters/REL1_25 tarball from extension distributor). Running the web installer shows that he database upgrade step never even looks at the hit counter tables. This left the wiki in a broken "Database error" state on all pages.

Krinkle renamed this task from Database table is not created when installed via web updater to Schema change not applied through web updater.Jun 27 2015, 3:32 AM
Aklapper lowered the priority of this task from Unbreak Now! to High.Jul 23 2015, 1:33 PM

No progress in four weeks hence decreasing priority to reflect reality. Feel free to increase when an assignee is actively working on this problem.

Hi the problem is to do with mediawiki core. So the problem has to be fixed in core.

@Paladox It will be nice if you could link the task dealing with this in core. Thanks!

It also blockby task at the top.

I could swear it was not there before. Senior moments I guess. Thanks anyway!

Paladox claimed this task.

The patch was merged please try latest version from master or 1.26 wmf16 when it is released. If there is still a problem please re open. Closing as resolved.