Magento – Object DOMDocument should be created

magento2PHP

I recently converted a Magento 1.9 module to be compatible with Magento 2. all was going well until I got this error:

Object DOMDocument should be created

I'm not experienced enough in Magento and PHP to figure out how to fix this so I linked the converted module below.

magento 1.9 module in question

I put the converted module here on github.

Best Answer

Remove var/generation,var/di and then recompile using below command.

sudo bin/magento setup:di:compile

and then check maybe it will help you

Related Topic