Page MenuHomePhabricator

Fix another broken module import
Closed, ResolvedPublic

Description

Template:Section link is broken (Script error: No such module "Section link".).
Module:Section link exists and is unchanged since 28. April. The template is heavily used in Help:Tool Labs.

Other modules seem to work fine.

Event Timeline

Sitic raised the priority of this task from to Needs Triage.
Sitic updated the task description. (Show Details)
Sitic added a project: wikitech.wikimedia.org.
Sitic moved this task to Backlog on the wikitech.wikimedia.org board.
Sitic subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krenair renamed this task from Section link template/module broken to Fix another broken module import.EditedAug 3 2015, 11:06 PM
Krenair closed this task as Resolved.
Krenair claimed this task.
Krenair set Security to None.
Krenair subscribed.

Fixed by running this in mwscript eval.php labswiki on silver:

$user = User::newFromName( 'Alex Monk' );
$summary = "[[phabricator:T107726|scribunto content model]]";
$page = WikiPage::factory( Title::newFromText( 'Module:Section_link' ) );
$sc = new ScribuntoContent( $page->getContent()->getNativeData() );
$page->doEditContent( $sc, $summary, 0, false, $user, $sc->getDefaultFormat() );

(I had to null-edit Help:Tool Labs to get rid of "Script error: No such module 'Section link'".)