I have just checked my logs and have fount the debug.log is full of the following messages
[2024-11-25T09:43:30.369874+00:00] main.DEBUG: Source class "\Phalcon\Http\Message\Stream" for "Phalcon\Http\Message\StreamFactory" generation does not exist. {"exception":"[object] (RuntimeException(code: 0): Source class \"\\Phalcon\\Http\\Message\\Stream\" for \"Phalcon\\Http\\Message\\StreamFactory\" generation does not exist. at /vendor/magento/framework/Code/Generator.php:223)"} [] [2024-11-25T09:43:30.370098+00:00] main.DEBUG: Source class "\Nyholm\Psr7\Factory\Psr17" for "Nyholm\Psr7\Factory\Psr17Factory" generation does not exist. {"exception":"[object] (RuntimeException(code: 0): Source class \"\\Nyholm\\Psr7\\Factory\\Psr17\" for \"Nyholm\\Psr7\\Factory\\Psr17Factory\" generation does not exist. at /vendor/magento/framework/Code/Generator.php:223)"} []
Can anyone help resolving this
Hello @miller75
The error you're encountering is due to Magento attempting to generate a factory for Nyholm\Psr7\Factory\Psr17Factory, but it can't find the required Psr17 class in the Nyholm\Psr7\Factory namespace.
Run the following command to check for and install any missing dependencies:
composer require phalcon/http-message --no-update composer require nyholm/psr7 --no-update composer update
Delete generated code
rm -rf generated/ var/cache/ var/page_cache/ var/view_preprocessed/
Regenerate code
bin/magento setup:di:compile
Clear and flush cache
bin/magento cache:flush
Check Compatibility:
Ensure that the installed version of the phalcon/http-message package is compatible with your Magento version.
Hope it helps !
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
Thanks for the reply, I was a bit concerned as its just started producing this error. Is phalcon & nyholm a new requirement?