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>
bodytag or without it or blank, I mean nothing afterbodyorpagetag ?<argument name="url" xsi:type="helper" helper="Company\Module\Helper\Url::getUrl" > <param name="_current">0</param> </argument>may be space should not there inhelper="Company\Module\Helper\Url::getUrl" >.