I am getting the below error while running the below command. php bin/magento setup:di:compile
Class "Magento\Framework\HTTP\LaminasClient" does not exist
Class Webkul\Marketplace\Controller\Account\Dashboard\Tunnel\Interceptor generation error: The requested class did not generate properly, because the 'ge
nerated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission
is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construc
t method, only.
3 Answers 3
This error comes because generated dictionary does not have sufficient write permission.
Give 777 permission to generated folder
Then run command again.
Please let me know still if you get issue.
This error typically occurs when there is a problem with the generated code in Magento 2. Here are some steps you can try to resolve the issue:
Check file permissions: Make sure the 'generated' directory is writable by the web server user. You can use the command
chmod -R 777 generatedto give full permissions to the generated directory.Clean cache: Run the command
bin/magento cache:cleanto clear the Magento cache.Compile code: Run the command
bin/magento setup:di:compileto generate new code. Make sure the generated directory is writable before running this command.Check for errors: Check the Magento logs for any errors or exceptions related to this issue. You can find the logs in the var/log directory of your Magento installation.
If none of the above steps work, you can try disabling the module that is causing the issue and then re-enabling it. You can also try disabling all third-party modules and see if the error persists.
Check your commerce version.
Magento\Framework\HTTP\LaminasClient is introduced in commerce version 2.4.6. Seems like the webkul marketplace version you are using is compatible to 2.4.6.