0

Screenshot :

enter image description here

Error :

PHP Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Invalid Document \nElement 'item': Duplicate key-sequence ['view_preprocessed'] in key identity-constraint 'argumentItemName'.\nLine: 725\n in C:\xampp\htdocs\mage\vendor\magento\framework\Config\Reader\Filesystem.php:168\nStack trace:\n#0 C:\xampp\htdocs\mage\vendor\magento\framework\Config\Reader\Filesystem.php(132): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))\n#1 C:\xampp\htdocs\mage\vendor\magento\framework\App\ObjectManagerFactory.php(279): Magento\Framework\Config\Reader\Filesystem->read('primary')\n#2 C:\xampp\htdocs\mage\vendor\magento\framework\App\ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'developer')\n#3 C:\xampp\htdocs\mage\vendor\magento\framework\App\Bootstrap.php(211): Magento\ in C:\xampp\htdocs\mage\vendor\magento\framework\App\ObjectManagerFactory.php on line 281

How to solve the error while running s:d:c

2 Answers 2

0

try it:-

rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code 
22
  • Still getting same error Commented Jan 19, 2021 at 7:17
  • Actually i have created custom theme from another system, i just move into my system and changes theme name like app/design/frontend/mytheme/theme. not working. Commented Jan 19, 2021 at 7:18
  • Check *.xml files Commented Jan 19, 2021 at 7:21
  • Now i am removed custom theme still getting same error Commented Jan 19, 2021 at 7:21
  • sorry, which xml file Commented Jan 19, 2021 at 7:21
0

try it:

Go to app->etc->di.xml file and search "view_preprocessed". So you can see two same name entries and you can remove or comment this line. Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

Thanks!!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.