enter image description here

Facing Error whilst updating Magento 2.3.4 to 2.3.5-p2 on Home Page

Type Error occurred when creating object: Magento\Catalog\Model\Product\Filter\DateTime

  • It may be a permission issue so it not allow to generate file try sudo chmod -Rv 777 app/ pub/ generated/ var/ it may help you. Commented Oct 17, 2020 at 11:08

1 Answer 1


Try removing var/viewpreprocessed, var/cache, var/page_cache, /generated, pub/static/frontend, and pub/static/adminhtml.

Then run setup:upgrade, and change the mode to production mode (php bin/magento deploy:mode:set production)

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.