Page MenuHomePhabricator

MediaWiki Installation Failed on Windows 10
Closed, InvalidPublicBUG REPORT

Description

Today I needed to test MediaWiki from a Windows 10 machine. So I followed the Manual:Installation guide and I faced a number of issues and installation failed completely. I listed the issues below, please help me to fix the issues.

Steps to Reproduce:

  1. I downloaded the MediaWiki 1.35.1 version and extracted the downloaded archive using the PeaZip software. Initially I tried with 7zip and found that MW have a bug with that tool so I had to find another one.
  2. Then I run composer update and found that it only supports Composer 1, and had to continue after down grading. I had to run the composer update because after extracting the file I found an error like ... vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory ... . After that I found that liuggio\statsd-php-client throwing and error and had to spend a long time to identity if it is really an issue and then downloaded the package form their Github repo.
  3. Now the installation wizard appears and completed the steps of downloading the LocalSettings.php.
  4. At the time of opening the site I found that the Vector skin is not compatible with the current installation and thrown the following error,
MediaWiki internal error. Original exception: [9340bc2bd06ffbf29d945be1] /php/mediawiki-bootstrap-2/index.php/Special:Preferences Error from line 52 of C:\wamp64\www\mediawiki\skins\Vector\includes\ServiceWiring.php: Class 'Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement' not found Backtrace: #0 C:\wamp64\www\mediawiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices) #1 C:\wamp64\www\mediawiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string) #2 C:\wamp64\www\mediawiki\skins\Vector\includes\SkinVector.php(82): Wikimedia\Services\ServiceContainer->getService(string) #3 C:\wamp64\www\mediawiki\skins\Vector\includes\SkinVector.php(47): SkinVector->isLegacy() #4 C:\wamp64\www\mediawiki\includes\OutputPage.php(2497): SkinVector->getDefaultModules() #5 C:\wamp64\www\mediawiki\includes\OutputPage.php(2604): OutputPage->loadSkinModules(SkinVector) #6 C:\wamp64\www\mediawiki\includes\MediaWiki.php(947): OutputPage->output(boolean) #7 C:\wamp64\www\mediawiki\includes\MediaWiki.php(960): MediaWiki->{closure}() #8 C:\wamp64\www\mediawiki\includes\MediaWiki.php(543): MediaWiki->main() #9 C:\wamp64\www\mediawiki\index.php(53): MediaWiki->run() #10 C:\wamp64\www\mediawiki\index.php(46): wfIndexMain() #11 {main} Exception caught inside exception handler: [9340bc2bd06ffbf29d945be1] /php/mediawiki-bootstrap-2/index.php/Special:Preferences Error from line 52 of C:\wamp64\www\mediawiki\skins\Vector\includes\ServiceWiring.php: Class 'Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement' not found Backtrace: #0 C:\wamp64\www\mediawiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices) #1 C:\wamp64\www\mediawiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string) #2 C:\wamp64\www\mediawiki\skins\Vector\includes\SkinVector.php(82): Wikimedia\Services\ServiceContainer->getService(string) #3 C:\wamp64\www\mediawiki\skins\Vector\includes\SkinVector.php(47): SkinVector->isLegacy() #4 C:\wamp64\www\mediawiki\includes\OutputPage.php(2497): SkinVector->getDefaultModules() #5 C:\wamp64\www\mediawiki\includes\OutputPage.php(2604): OutputPage->loadSkinModules(SkinVector) #6 C:\wamp64\www\mediawiki\includes\exception\MWExceptionRenderer.php(153): OutputPage->output() #7 C:\wamp64\www\mediawiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Error) #8 C:\wamp64\www\mediawiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(Error, integer) #9 C:\wamp64\www\mediawiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(Error) #10 C:\wamp64\www\mediawiki\includes\MediaWiki.php(579): MWExceptionHandler::handleException(Error, string) #11 C:\wamp64\www\mediawiki\index.php(53): MediaWiki->run() #12 C:\wamp64\www\mediawiki\index.php(46): wfIndexMain() #13 {main}
  1. Then I assumed that all the other skins might show the same error and I tried to create/use a clean theme and created a new one using https://skins.wmflabs.org/#/add. But when I installed the it showed me that It only supports MediaWiki 1.36.0 or above.
  2. At the end I installed the Example skin (https://github.com/wikimedia/mediawiki-skins-Example) and it displayed some content but looks like CSS has not been loaded and found some runtime exceptions on the console.

Now can anyone please help me to install the latest stable Mediawiki (1.35.1)?

Is there any specific reason of making the default installation so hard on and break in each steps or what?

Actual Results:
Installation failed.

Expected Results:
Successful installation and continue to use the Mediawiki.

Event Timeline

Hi Nasir,

Downloading https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz , in the subfolder skins/Vector/, it does define that class:

./includes/ServiceWiring.php:use Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement;
./includes/ServiceWiring.php:			new LatestSkinVersionRequirement(
./includes/FeatureManagement/Requirements/LatestSkinVersionRequirement.php:final class LatestSkinVersionRequirement implements Requirement {

I can imagine that PeaZip is also broken. See also https://www.mediawiki.org/wiki/Topic:Vupzc9adzhwnm7d6 . Please bring this up on the support desk. Thanks!