3

Magento 2.2.4, php7.

I' ve been having this error when I try to switch to production and when i try to di:compile;

Source class \Vertex for \Vertex\Mapper generation does not exist.

No errors in logs , any idea please? enter image description here

Exception trace:

() at /home/website/public_html/vendor/magento/framework/Code/Generator.php:185 Magento\Framework\Code\Generator->tryToLoadSourceClass() at /home/website/public_ html/vendor/magento/framework/Code/Generator.php:112 Magento\Framework\Code\Generator->generateClass() at /home/website/public_html/ve ndor/magento/framework/Code/Generator.php:180 Magento\Framework\Code\Generator->tryToLoadSourceClass() at /home/website/public_ html/vendor/magento/framework/Code/Generator.php:112 Magento\Framework\Code\Generator->generateClass() at /home/website/public_html/ve ndor/magento/framework/Code/Generator/Autoloader.php:35 Magento\Framework\Code\Generator\Autoloader->load() at n/a:n/a spl_autoload_call() at n/a:n/a class_exists() at /home/website/public_html/setup/src/Magento/Setup/Module/Di/Cod e/Scanner/PhpScanner.php:269

6
  • Remove Var/Generation folder Oct 9 '18 at 19:27
  • And compile again Oct 9 '18 at 19:27
  • @AdityaShah doesn't work Oct 9 '18 at 19:33
  • Are you using vanilla Magento 2.2.4? Oct 9 '18 at 19:44
  • 1
    Yeah just checked git, reply them on git about confirming the issue. Oct 9 '18 at 19:49
3

It's happening because of the Redis cache, run these commands to flush it and try again.

redis-cli -n 0 flushall
php -r "echo opcache_reset();"
bin/magento setup:di:compile

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.