0

I have transferred my Magento project to live server and just changed database connectivity credentials. No other change.

and if I run any Magento command

then I get the following error:

While attempting to create viewjsonstrategy(alias: ViewJsonStrategy) an invalid factory was registered for this instance type.

Error image

I have deleted cache files from var/cache, var/page_cache, pub/static/frontend, pub/static/adminpanel, generated/code, generated/metadata but no success.

Please guide if anybody has any solution.

3
  • Please check your php version is compatible? Aug 27, 2019 at 5:10
  • It's 7.1.31. It should work. right?
    – Khushbu
    Aug 27, 2019 at 6:35
  • try to check with compile command. Aug 29, 2019 at 10:07

0

Your Answer

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

Browse other questions tagged or ask your own question.