I'm getting this error in my store:
Invalid XML in file /Library/WebServer/Documents/Magento/app/design/frontend/vendor/vendor_theme/etc/view.xml: Element 'theme': No matching global declaration available for the validation root. Line: 2
My code
<?xml version="1.0" encoding="UTF-8"?>
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Vendor</title>
<parent>Magento/blank</parent>
</theme>
I've run this through xml check sites. It's valid according to them and my knowledge of XML.
I'm new to this framework. Thanks.
Rakesh Jesadiya
42.5k19 gold badges135 silver badges186 bronze badges
1 Answer 1
Try with this code:
<?xml version="1.0"?>
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
<title>Vendor</title> <parent>Magento/blank</parent>
</view>
There is have to view not theme
answered Mar 27, 2017 at 4:36
user15917
-
Thank you! Thank worked. You rock my friend. Damn this is one problematic framework.user52301– user523012017年03月27日 07:12:49 +00:00Commented Mar 27, 2017 at 7:12
default