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 created this task.Aug 3 2015, 1:02 AM
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 added a subscriber: Sitic.
Restricted Application added a project: Cloud-Services. · View Herald TranscriptAug 3 2015, 1:02 AM
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 added a subscriber: Krenair.

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() );
Restricted Application added a subscriber: Matanya. · View Herald TranscriptAug 3 2015, 11:08 PM
Krenair added a subscriber: jeremyb.
scfc added a subscriber: scfc.Aug 4 2015, 12:08 AM

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