Steps to replicate the issue (include links if applicable):
I am following these installation instructions: https://github.com/wikimedia/ws-export
I ran the command:
composer install --no-dev
And this was the output:
@php ./bin/console cache:clear
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#58
#message: """ Attempted to load class "WebProfilerBundle" from namespace "Symfony\Bundle\WebProfilerBundle".\n Did you forget a "use" statement for another namespace? """
So far it seems to be saying that the class "WebProfilerBundle" was not found, not necessarily that the namespace "Symfony" was not present, or that could be the issue.
#code: 0 #file: "./vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php" #line: 132 trace: { ./vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:132 { …} ./vendor/symfony/http-kernel/Kernel.php:386 { …} ./vendor/symfony/http-kernel/Kernel.php:786 { …} ./vendor/symfony/http-kernel/Kernel.php:128 { …} ./vendor/symfony/framework-bundle/Console/Application.php:168 { …} ./vendor/symfony/framework-bundle/Console/Application.php:74 { …} ./vendor/symfony/console/Application.php:171 { …} ./bin/console:47 { › } › $application->run($input); › } }
}
2022-09-22T10:06:01+00:00 [critical] Uncaught Error: Class 'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' not found
Script @php ./bin/console cache:clear handling the post-install-cmd event returned with error code
Someone on Reddit said: "the symfony/web-profiler-bundle is not installed via composer but it's referenced in config/bundles.php".
Is this issue simply that the GitHub instructions are wrong - you should not run "composer install" with "--no-dev", because you need Symfony to also be installed?
What happens?:
The error message above
What should have happened instead?:
It should have successfully installed the dependencies.
Software version (skip for WMF-hosted wikis like Wikipedia):
PHP 7.4 on Ubuntu 22
Other information (browser name/version, screenshots, etc.):