When I run my magento 2.3.1 ver. on localhost in morning then comes below error

Warning: DOMDocument::schemaValidate(): Invalid Schema

So please let me help.


1 Answer 1


Please set production mode by skipping the compilation. Then again you can set the developer mode once the deploy command completed.

php bin/magento deploy:mode:set production --skip-compilation

php bin/magento s:s:d

php bin/magento deploy:mode:set developer

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