ReflectionException - Class does not exist error after 2.2.5 from 2.1.9

by Simon Watts   Last Updated July 28, 2018 23:09 PM

I have upgraded a Magento 2.1.9 store to 2.2.5. The upgrade seems successful, and everything is working in development mode, but I am not able to compile or put the store into production mode.

The error I get when running setup:di:compile is:

[ReflectionException] Class Magento\Framework\Acl\CacheInterface does not exist

I have removed the contents of var/, generated/, generation/ etc, and set filesystem permissions specified in the documentation.

The full stack trace for the error is here:

[ReflectionException]
Class Magento\Framework\Acl\CacheInterface does not exist


Exception trace:
() at /var/www/html/magento2.2/vendor/magento/framework/Code/Reader/ClassReader.php:29 
ReflectionParameter->getClass() at /var/www/html/magento-2.2/vendor/magento/framework/Code/Reader/ClassReader.php:29
Magento\Framework\Code\Reader\ClassReader->getConstructor() at /var/www/html/magento-2.2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassReaderDecorator.php:35

Magento\Setup\Module\Di\Code\Reader\ClassReaderDecorator->getConstructor() at /var/www/html/magento-2.2/setup/src/Magento/Setup/Module/Di/Code/Reader/Decorator/Area.php:53
Magento\Setup\Module\Di\Code\Reader\Decorator\Area->getList() at /var/www/html/magento-2.2/setup/src/Magento/Setup/Module/Di/App/Task/Operation/Area.php:109
Magento\Setup\Module\Di\App\Task\Operation\Area->getDefinitionsCollection() at /var/www/html/magento-2.2/setup/src/Magento/Setup/Module/Di/App/Task/Operation/Area.php:84
Magento\Setup\Module\Di\App\Task\Operation\Area->doOperation() at /var/www/html/magento-2.2/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php:56
Magento\Setup\Module\Di\App\Task\Manager->process() at /var/www/html/magento-2.2/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php:206
Magento\Setup\Console\Command\DiCompileCommand->execute() at /var/www/html/magento-2.2/vendor/symfony/console/Command/Command.php:241
Symfony\Component\Console\Command\Command->run() at /var/www/html/magento-2.2/vendor/symfony/console/Application.php:843
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/magento-2.2/vendor/symfony/console/Application.php:193
Symfony\Component\Console\Application->doRun() at /var/www/html/magento-2.2/vendor/magento/framework/Console/Cli.php:104
Magento\Framework\Console\Cli->doRun() at /var/www/html/magento-2.2/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at /var/www/html/magento-2.2/bin/magento:23

setup:di:compile

Any help with working out the cause of this error would be greatly appreciated



Related Questions


Magento 2 - setup:di:compile

Updated July 18, 2017 09:09 AM



ReflectionException Class \QRcode does not exist

Updated January 11, 2018 21:09 PM

Web Setup Wizard Error

Updated July 18, 2017 02:09 AM