2
An abstract factory could not create an instance of magentoframeworkappdeploymentconfig(alias: Magento\Framework\App\DeploymentConfig).

Above error appears on di compile, cache clean etc.

I am not sure why this error appearing.

Is their any fix for this?

4
  • 1
    Please provide more details. Have you installed new module or did any customization? Please revert and try. Commented Feb 8, 2021 at 11:56
  • Installed a module that have composer json with required 7.3 || 7.4 but my php version in system was 8 Commented Feb 8, 2021 at 12:06
  • I have disabled the module & deleted composer.json file still error appears Commented Feb 8, 2021 at 12:06
  • Looks like error due to php version, its 8.0 & i am using magento 2.3.5-p1 so php version it should be 7.3 Commented Feb 8, 2021 at 12:23

1 Answer 1

2

It was php version issue, magento 2.3.5-p1 requires 7.3 php version, in system it was 8.0.

Setting php version 7.3, solves the error.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.