2

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">
 &#60;title&#62;Vendor&#60;/title&#62;
 &#60;parent&#62;Magento/blank&#60;/parent&#62;
 &#60;/theme&#62;

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
asked Mar 27, 2017 at 3:09

1 Answer 1

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
1
  • Thank you! Thank worked. You rock my friend. Damn this is one problematic framework. Commented Mar 27, 2017 at 7:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.