Skip to content

Class HtmlRenderer does not exist

can anybody help? I use magento 2.3.7 , php 7.4 and i can not do seup:di:compile
I tried to find the error, but it seems to be some file missing….Thanks.

[ReflectionException]
Class MagentoFrameworkViewHelperSecureHtmlRenderHtmlRenderer does not exist

Exception trace:
at /var/www/magento2/vendor/magento/framework/Code/Reader/ClassReader.php:35
ReflectionParameter->getClass() at /var/www/magento2/vendor/magento/framework/Code/Reader/ClassReader.php:35
MagentoFrameworkCodeReaderClassReader->getConstructor() at /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassReaderDecorator.php:35
MagentoSetupModuleDiCodeReaderClassReaderDecorator->getConstructor() at /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/Decorator/Area.php:55
MagentoSetupModuleDiCodeReaderDecoratorArea->getList() at /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Operation/Area.php:114
MagentoSetupModuleDiAppTaskOperationArea->getDefinitionsCollection() at /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Operation/Area.php:87
MagentoSetupModuleDiAppTaskOperationArea->doOperation() at /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php:56
MagentoSetupModuleDiAppTaskManager->process() at /var/www/magento2/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php:206
MagentoSetupConsoleCommandDiCompileCommand->execute() at /var/www/magento2/vendor/symfony/console/Command/Command.php:255
SymfonyComponentConsoleCommandCommand->run() at /var/www/magento2/vendor/symfony/console/Application.php:1021
SymfonyComponentConsoleApplication->doRunCommand() at /var/www/magento2/vendor/symfony/console/Application.php:275
SymfonyComponentConsoleApplication->doRun() at /var/www/magento2/vendor/magento/framework/Console/Cli.php:115
MagentoFrameworkConsoleCli->doRun() at /var/www/magento2/vendor/symfony/console/Application.php:149
SymfonyComponentConsoleApplication->run() at /var/www/magento2/bin/magento:23

I already tried the basic things, like removing generated files, cleaning and flushing cache as well upgrading before do setup:di:compile.