Critical error after changing language

If I change the language in top of the screen I get an error:

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Theme layout update file '/home/jukeboxs/public_html/app/design/frontend/Ubertheme/megamall/Magento_Checkout/layout/checkout_index_index.xml' is not valid.
StartTag: invalid element name
 Line: 2
XML declaration allowed only at the start of the document
 Line: 2
Extra content at the end of the document
 Line: 9
The site does not work anymore then until I delete all browser history. this happens with all browsers (google, edge and explorer)

7 answers

Profile photo of Ziven Staff 100720.00 $tone January 18, 2018
Public

Hi There,
I tried to connect the site to check the problem  but it seem your site down right now: https://www.dropbox.com/s/hrwfa4wypi8jqn4/2018-01-18_09-14-05.png?dl=0
Please resolve it let me know when site back.
Best Regards,
Ziven.

#1
Profile photo of Ziven Staff 100720.00 $tone January 18, 2018
Public

Hi there,
I see you modified the file: /public_html/app/design/frontend/Ubertheme/megamall/Magento_Checkout/layout/checkout_index_index.xml. I wonder if you had backed up this file before making your custom change? You can compare and revert the old file, if it is in place. 
Alternatively, you can edit the file as follows: 

<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="logo" destination="header-wrapper"/>
</body>
</page>

Please let me know how it works then.
Best Regards,
Ziven.
 
 

#3
Profile photo of Ziven Staff 100720.00 $tone January 18, 2018
Public

Hi there,
You can simply hide such block using CSS workaround as follows:
Go to the file: app\design\frontend\Ubertheme\megamall\Magento_Checkout\web\css\source\module\_cart.less at line 29 and add the new line below:

&.discount {
display: none;
}

Once done, please re-compile LESS -> CSS using CLI commands below:
Step 1: Go to your root site with CLI and type: rm -rf var/* pub/static/*
Step 2: php bin/magento setup:static-content:deploy -f

Hope that helps.
Best Regards,
Ziven.
 
 
 

#5

Please login or Register to Submit Answer

Written By

Comments