Page MenuHomePhabricator

[Html2Wiki] PHP Notice: Undefined offset: 0 in extensions/Html2Wiki/specials/SpecialHtml2Wiki.php on line 336
Open, Needs TriagePublic

Description

When reaching /index.php?title=Special:JavaScriptTest/qunit/export

PHP Notice:  Undefined offset: 0 in extensions/Html2Wiki/specials/SpecialHtml2Wiki.php on line 336

The extension requires $wgNamespacesWithSubpages set to TRUE in the MAIN namespace.

extension.json: "callback": "SpecialHtml2Wiki::checkEnvironment",
specials/SpecialHtml2Wiki.php
334     static function checkEnvironment() {
335         global $wgNamespacesWithSubpages;
336             if ( $wgNamespacesWithSubpages[NS_MAIN] !== true ) {
337                 die( "This extension requires \$wgNamespacesWithSubpages set to TRUE in the MAIN namespace.
338                 Please add \n
339                 \$wgNamespacesWithSubpages[NS_MAIN] = true;\n to your LocalSettings.php" );
340             }

Event Timeline

hashar created this task.Jun 5 2018, 9:23 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 5 2018, 9:23 AM
hashar updated the task description. (Show Details)Jun 5 2018, 9:26 AM
Vvjjkkii renamed this task from [Html2Wiki] PHP Notice: Undefined offset: 0 in extensions/Html2Wiki/specials/SpecialHtml2Wiki.php on line 336 to jmbaaaaaaa.Jul 1 2018, 1:05 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from jmbaaaaaaa to [Html2Wiki] PHP Notice: Undefined offset: 0 in extensions/Html2Wiki/specials/SpecialHtml2Wiki.php on line 336.Jul 1 2018, 9:24 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.