Closed zampaleu closed 7 years ago
/SemanticMediaWiki/src/MediaWiki/Hooks/InternalParseBeforeLinks.php: Argument 1 passed to SMW\MediaWiki\Hooks\InternalParseBeforeLinks::setEnabledSpecialPage() must be of the type array, boolean given, called in /var/www/llg/solab/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php
I'm guessing due to "Argument 1 passed to ... must be of the type array, boolean " that the smwgEnabledSpecialPage
setting contains a boolean (true or false) and not the expected array
as deployed with the default [0].
[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/DefaultSettings.php#L981-L987
In connenction with smwgEnabledSpecialPage
only disabling it would make sense is a way, so I adapted the documentation to make clear how it is done.
@zampaleu If you could confirm that this was/is indeed the root of your issue...
I confirm, after disabling this feature the upgrade was successful $smwgEnabledSpecialPage = array( );
Great and thanks a lot for your feedback. Yeah, false
will not work.
Setup and configuration
Issue
Produces a stack trace and outputs:
Backtrace
Steps to reproduce the observation (recommendation is to use the sandbox):
php ./extensions/SemanticMediaWiki/maintenance/SMW_setup.php