https://bugzilla.wikimedia.org/show_bug.cgi?id=51435

       Web browser: ---
            Bug ID: 51435
           Summary: SMW\NamespaceExaminer should be able to handle removed
                    namespaces
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

After removing a namespace that used to have semantics enabled (yes, I did run
the semantic update script, twice), I get the following error on trying to
update the link cache with refreshLinks.php (the removed namespace was 554):

  554 is not a valid namespace
  Backtrace:
  #0  
/var/www/w/extensions/SemanticMediaWiki/includes/ParserTextProcessor.php(120): 
 SMW\NamespaceExaminer->isSemanticEnabled(554)
  #1 /var/www/w/extensions/SemanticMediaWiki/SemanticMediaWiki.hooks.php(692): 
 SMW\ParserTextProcessor->parse('#REDIRECT [[:Ka...')
  #2 [internal function]: SMWHooks::onInternalParseBeforeLinks(Object(Parser), 
 '#REDIRECT [[:Ka...', Object(StripState))
  #3 /var/www/w/includes/Hooks.php(199):  
call_user_func_array('SMWHooks::onInt...', Array)
  #4 /var/www/w/includes/GlobalFunctions.php(3835):
Hooks::run('InternalParseBe...', Array)
  #5 /var/www/w/includes/parser/Parser.php(1161):
wfRunHooks('InternalParseBe...', Array)
  #6 /var/www/w/includes/parser/Parser.php(385):
Parser->internalParse('#REDIRECT [[:Ka...')
  #7 /var/www/w/includes/content/WikitextContent.php(300):
Parser->parse('#REDIRECT [[:Ka...', Object(Title), Object(ParserOptions), true,
true, NULL)
  #8 /var/www/w/includes/content/AbstractContent.php(239):
WikitextContent->getParserOutput(Object(Title), NULL, NULL, false)
  #9 /var/www/w/maintenance/refreshLinks.php(244):
AbstractContent->getSecondaryDataUpdates(Object(Title))
  #10 /var/www/w/maintenance/refreshLinks.php(172):
RefreshLinks::fixLinksFromArticle(2911)
  #11 /var/www/w/maintenance/refreshLinks.php(53):
RefreshLinks->doRefreshLinks(1, false, 0, 0, false, false)
  #12 /var/www/w/maintenance/doMaintenance.php(114): RefreshLinks->execute()
  #13 /var/www/w/maintenance/refreshLinks.php(319):
require_once('/var/www/w/main...')
  #14 {main}

I guess SMW\NamespaceExaminer simply forgets to check that the namespace
actually extists.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to