When I'm setting up Wikibase on my MeidaWiki site following the guidance of "Items in a dedicated item namespace" section, update.php
complains about duplicate definitions
The notes are as follows
PHP Notice: Constant WB_NS_ITEM already defined in /x/cpwiki/root/LocalSettings.php on line 247 PHP Notice: Constant WB_NS_ITEM_TALK already defined in /x/cpwiki/root/LocalSettings.php on line 248 PHP Notice: Constant WB_NS_PROPERTY already defined in /x/cpwiki/root/LocalSettings.php on line 249 PHP Notice: Constant WB_NS_PROPERTY_TALK already defined in /x/cpwiki/root/LocalSettings.php on line 250
The content from line 247 are
define( 'WB_NS_ITEM', $baseNs ); define( 'WB_NS_ITEM_TALK', $baseNs + 1 ); define( 'WB_NS_PROPERTY', $baseNs + 2 ); define( 'WB_NS_PROPERTY_TALK', $baseNs + 3 );
Then I removed these definitions in LocalSettings.php
, the note is gone. I'm not sure if it's only me or the manual here needs an update. I'm using MW 1.31.0-wmf.8.