0

I received the following error when I run the command

php bin/magento setup:di:compile

Error

  [ReflectionException]
  Class Mirasvit\Core\Model\ModuleFactory does not exist

The extension provider suspect it is trying to access to the older version of the extension, because we can see the new files in the /vendor/ folder that is downloaded via composer. I also disabled all the caching policies. However, the error still persist.

4
  • Have you set the correct permissions in your root folder? If you are testing in your local environment try to exec "sudo chmod -R 777 .". After that try the setup:upgrade and again exec permissions. Commented Mar 17, 2021 at 23:04
  • Hi, yes the permissions are setup correctly. it's testing on the same server as the production server. Commented Mar 17, 2021 at 23:41
  • The question is why Mirasvit doesn't support you? They provide a non-working extension, you should ask for refund
    – Jimmy
    Commented Mar 18, 2021 at 1:43
  • They said is server related issue, and the hosting said otherwise :/ I purchase older versions few months ago, it installed correctly but there are some bug fixes on the newer version, but it won't install correctly through composer :/ Commented Mar 19, 2021 at 0:16

1 Answer 1

0

The file vendor/mirasvit/module-core/Model/Module.php has been removed in the module mirasvit/module-core version 1.2.118. To resolve this issue downgrade to version 1.2.114

composer req mirasvit/module-core:1.2.114

It is imported to pin this version in composer.json as the mirasvit/module-seo module defines a lax dependency definition in its' composer.json:

"mirasvit/module-core": "dev-master|^1.2"

So it is definitely a dependency issue Mirasvit should resolve in the next release.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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