- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuess
I am using Magento 2.3.4,MFTF 2.6.3 and ChromeDriver 83.0.4103.39. When I run any test case using the command "C:\xampp\htdocs\Magento\vendor\bin>mftf run:test StorefrontUpdateWishlistTest --remove" I am getting the below error:
Actual: MFTF tests launching but url not entering in browser and all test cases are getting failed
Error logs:
Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser' not found in C:\xampp\htdocs\Magento\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent.php:76
Stack trace:
#0 C:\xampp\htdocs\Magento\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent.php(43): Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent->guessFileMimeType('C:\\Users\\emb-vi...')
#1 C:\xampp\htdocs\Magento\vendor\allure-framework\allure-php-api\src\Yandex\Allure\Adapter\Event\AddAttachmentEvent.php(35): Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent->getAttachmentFileName(Object(PHPUnit\Framework\ExceptionWrapper), NULL)
#2 C:\xampp\htdocs\Magento\vendor\allure-framework\allure-php-api\src\Yandex\Allure\Adapter\Allure.php(116): Yandex\Allure\Adapter\Event\AddAttachmentEvent->process(Object(Yandex\Allure\Adapter\Mo in C:\xampp\htdocs\Magento\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent.php on line 76
Could you pleas check this issue. Any help is really appreciated
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeG
Hello @vinothkumad8bb
Can you share your PHP version? and please check the Magento requirement if your setup is compatible with it.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeG
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeG
Check version of
composer show symfony/http-foundation
If it is 5.1.5 you may try to downgrade it
composer require symfony/http-foundation=<5.1
(That class removed in symfony/http-foundation=5.1.x so you need to use earlier version)