Describe the issue / Steps to reproduce:
I have tried to install Simple Tasks after seeing the presentation at last weeks SMWCon, but I get an error. I uploaded the SimpleTasks extension into my central farm, I run the update.php script which throws an error, it states I need the MWStake repository in the vendor directory.
Expected behavior:
I would expect it to install.
What was the error message/error log?
Stack trace:PHP Warning: require(/var/www/html/farm/vendor/mwstake/mediawiki-component-contentprovisioner/includes/ServiceWiring.php): Failed to open stream: No such file or directory in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php on line 124
PHP Warning: require(/var/www/html/farm/vendor/mwstake/mediawiki-component-contentprovisioner/includes/ServiceWiring.php): Failed to open stream: No such file or directory in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php on line 124
PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/farm/vendor/mwstake/mediawiki-component-contentprovisioner/includes/ServiceWiring.php’ (include_path=‘/var/www/html/farm/vendor/pear/console_getopt:/var/www/html/farm/vendor/pear/mail:/var/www/html/farm/vendor/pear/mail_mime:/var/www/html/farm/vendor/pear/net_smtp:/var/www/html/farm/vendor/pear/net_socket:/var/www/html/farm/vendor/pear/net_url2:/var/www/html/farm/vendor/pear/pear_exception:/var/www/html/farm/vendor/pear/pear-core-minimal/src:.:/usr/share/php’) in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php:124 #0 /var/www/html/farm/includes/MediaWikiServices.php(447): Wikimedia\Services\ServiceContainer->loadWiringFiles() #1 /var/www/html/farm/includes/MediaWikiServices.php(285): MediaWiki\MediaWikiServices::newInstance() #2 /var/www/html/farm/includes/Hooks.php(174): MediaWiki\MediaWikiServices::getInstance() #3 /var/www/html/farm/includes/exception/MWExceptionHandler.php(807): Hooks::runner() #4 /var/www/html/farm/includes/exception/MWExceptionHandler.php(336): MWExceptionHandler::logError() #5 /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php(124): MWExceptionHandler::handleError() #6 /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php(124): require(‘…’) #7 /var/www/html/farm/includes/MediaWikiServices.php(447): Wikimedia\Services\ServiceContainer->loadWiringFiles() #8 /var/www/html/farm/includes/MediaWikiServices.php(285): MediaWiki\MediaWikiServices::newInstance() #9 /var/www/html/farm/includes/Hooks.php(174): MediaWiki\MediaWikiServices::getInstance() #10 /var/www/html/farm/includes/exception/MWExceptionHandler.php(762): Hooks::runner() #11 /var/www/html/farm/includes/exception/MWExceptionHandler.php(193): MWExceptionHandler::logException() #12 /var/www/html/farm/includes/exception/MWExceptionHandler.php(247): MWExceptionHandler::rollbackPrimaryChangesAndLog() #13 /var/www/html/farm/includes/exception/MWExceptionHandler.php(216): MWExceptionHandler::handleException() #14 [internal function]: MWExceptionHandler::handleUncaughtException() #15 {main}
thrown in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php on line 124
Thank you for the speedy reply, I didn’t run the composer. I downloaded the extension and just placed that in my extensions directory from the MediaWiki distribution system.
I will try again running the composer install this time. Thank you.
Hi, apologies for the delay, I have tried to install it today, but I am still getting errors.
I am not using BlueSpice, I am using the stock MediaWiki, it has installed the mwstake directory in SimpleTasks/vendor, but not in the MediaWiki vendor directory.
This is the trace I am seeing when I run update.php
PHP Warning: require(/var/www/html/farm/vendor/mwstake/mediawiki-component-contentprovisioner/includes/ServiceWiring.php): Failed to open stream: No such file or directory in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php on line 124
PHP Warning: require(/var/www/html/farm/vendor/mwstake/mediawiki-component-contentprovisioner/includes/ServiceWiring.php): Failed to open stream: No such file or directory in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php on line 124
PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/farm/vendor/mwstake/mediawiki-component-contentprovisioner/includes/ServiceWiring.php’ (include_path=‘/var/www/html/farm/vendor/pear/console_getopt:/var/www/html/farm/vendor/pear/mail:/var/www/html/farm/vendor/pear/mail_mime:/var/www/html/farm/vendor/pear/net_smtp:/var/www/html/farm/vendor/pear/net_socket:/var/www/html/farm/vendor/pear/net_url2:/var/www/html/farm/vendor/pear/pear_exception:/var/www/html/farm/vendor/pear/pear-core-minimal/src:.:/usr/share/php’) in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php:124
Stack trace: #0 /var/www/html/farm/includes/MediaWikiServices.php(447): Wikimedia\Services\ServiceContainer->loadWiringFiles() #1 /var/www/html/farm/includes/MediaWikiServices.php(285): MediaWiki\MediaWikiServices::newInstance() #2 /var/www/html/farm/includes/Hooks.php(174): MediaWiki\MediaWikiServices::getInstance() #3 /var/www/html/farm/includes/exception/MWExceptionHandler.php(807): Hooks::runner() #4 /var/www/html/farm/includes/exception/MWExceptionHandler.php(336): MWExceptionHandler::logError() #5 /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php(124): MWExceptionHandler::handleError() #6 /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php(124): require(‘…’) #7 /var/www/html/farm/includes/MediaWikiServices.php(447): Wikimedia\Services\ServiceContainer->loadWiringFiles() #8 /var/www/html/farm/includes/MediaWikiServices.php(285): MediaWiki\MediaWikiServices::newInstance() #9 /var/www/html/farm/includes/Hooks.php(174): MediaWiki\MediaWikiServices::getInstance() #10 /var/www/html/farm/includes/exception/MWExceptionHandler.php(762): Hooks::runner() #11 /var/www/html/farm/includes/exception/MWExceptionHandler.php(193): MWExceptionHandler::logException() #12 /var/www/html/farm/includes/exception/MWExceptionHandler.php(247): MWExceptionHandler::rollbackPrimaryChangesAndLog() #13 /var/www/html/farm/includes/exception/MWExceptionHandler.php(216): MWExceptionHandler::handleException() #14 [internal function]: MWExceptionHandler::handleUncaughtException() #15 {main}
thrown in /var/www/html/farm/vendor/wikimedia/services/src/ServiceContainer.php on line 124
I decided to install the free Blue Spice tonight, it looks very impressive, I will have to look into in more detail in the coming weeks. Unfortunately tomorrow is my last working day before Christmas.
It seems to be an issue with AtMentions, when I enable AtMentions it keeps coming up with the error:
I tried to install all the extensions at the same time initially, but it wouldn’t let me, I then tried to install one at a time, AtMentions and SimpleTasks wouldn’t install without mediawiki-component-events.
I tried to install AtMentions first due to that being a dependency of SimpleTasks.
The documentation on MediaWiki.org doesn’t specify that you need to run composer.
You are right. We need to improve the documentation here. Please assume that all those extensions require composer for installation. Try to add them to your composer.local.json like this: