Jump to content

Topic on Extension talk:AutoSitemap

$wgAutoSitemap erroring out entire wiki

2
Imjustcaden (talkcontribs)

putting the following in your localsettings.php seems to error out the whole wiki and return a 500 error.

$wgAutoSitemap["exclude_namespaces"] = [

    NS_TALK,

    NS_USER,   

    NS_USER_TALK,

    NS_PROJECT_TALK,

    NS_FILE_TALK,

    NS_MEDIAWIKI,   

    NS_MEDIAWIKI_TALK,

    NS_TEMPLATE,

    NS_TEMPLATE_TALK,

    NS_HELP,   

    NS_HELP_TALK,

    NS_CATEGORY_TALK

NS_FILE

];

Martynov Maxim (talkcontribs)

Well, apparently some of these namespaces does not exist. Follow this manual Manual:How to debug to detect which one is missing, and remove it from the LocalSettings.php