Skip to main content
Magento

Return to Question

Commonmark migration
Source Link

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 226

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl">
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 226

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl">
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 226

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl">
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>
deleted 61 characters in body
Source Link
Tiny Dancer
  • 650
  • 1
  • 17
  • 31

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character'arguments': Character content other than whitespace is not allowed because because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): contentElement 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 206212

ElementException #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 213212

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 227226

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl" >getUrl">
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 206

Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 213

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 227

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl" >
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 212

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 226

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl">
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>
added 1441 characters in body
Source Link
Tiny Dancer
  • 650
  • 1
  • 17
  • 31

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 206

Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 213

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 227

how to locatei've successfully located the invalid xml file and fix it?cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl" >
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 206

Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 213

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 227

how to locate the invalid xml file and fix it?

I'm using magento version 2.2.5, after i enabled the developer mode, i always get an error while trying to edit one of my product or add new in back end:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 206

Element 'arguments': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 213

Element 'action': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 227

i've successfully located the cause of the problem, which is in the extension i used, but i seems cannot find the problem:

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
 <link src="Company_Module::js/ver2.0.x/script.js"/>
 </head>
 <body>
    <referenceBlock name="product_tabs">
      <block class="Magento\Backend\Block\Widget\Tab" name="credit.price.settings">
        <arguments>
          <argument name="label" xsi:type="string" translate="true">Credit Prices Settings</argument>
          <argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl" >
            <param name="_current">0</param>
          </argument>
          <argument name="class" xsi:type="string">ajax</argument>
          <argument name="group_code" xsi:type="string">basic</argument>
        </arguments>
      </block>
      <action method="addTab">
        <argument name="name" xsi:type="string">credit-price-settings</argument>
        <argument name="block" xsi:type="string">credit.price.settings</argument>
      </action>
    </referenceBlock>
  </body>
</page>
added 33 characters in body
Source Link
Tiny Dancer
  • 650
  • 1
  • 17
  • 31
Loading
added 4 characters in body
Source Link
Loading
Source Link
Tiny Dancer
  • 650
  • 1
  • 17
  • 31
Loading
default

AltStyle によって変換されたページ (->オリジナル) /