caner@vegan:/var/www/html/magento$ sudo php bin/magento setup:upgrade
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/magento/vendor/magento/framework/Config/Dom.php:377
Stack trace:
#0 /var/www/html/magento/vendor/magento/framework/Config/Dom.php(109): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /var/www/html/magento/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /var/www/html/magento/vendor/magento/framework/Config/Reader/Filesystem.php(146): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /var/www/html/magento/vendor/magento/framework/Config/Reader/Filesystem.php(127): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /var/www/html/magento/vendor/magento/framework/App/ObjectManagerFactory.php(282): Magento\Framework\Config\Reader\Filesystem->read('prim in /var/www/html/magento/vendor/magento/framework/Config/Dom.php on line 377
caner@vegan:/var/www/html/magento$
when i try to install from beginning, i tried to do upgrade.
because i have
One or more indexers are invalid. Make sure your Magento cron job is running.
error
and only
Catalog Rule Product Indexed rule/product association
UPDATE ON SAVE
REINDEX REQUIRED
Sep 6, 2016, 2:53:15 PM
is reindex requiired.
SO i searched for this error and upgrading was suggested.
magento official docs are so complicated and meaningless, i couldn nderstand anything.
I just want to add a plugin to magento.