Remove before="-" from below line and it will resolved the error.
<block class="Magento\Framework\View\Element\Template" name="custom.css" template="Hiddentechies_Bizkick::customcss.phtml" before="-"/>
@Manthan Dave wrote:Remove before="-" from below line and it will resolved the error.
<block class="Magento\Framework\View\Element\Template" name="custom.css" template="Hiddentechies_Bizkick::customcss.phtml" before="-"/>
This gives the following error:-
1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'as': [facet 'pattern'] The value 'Bizkick footer' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 648 Element 'block', attribute 'as': 'Bizkick footer' is not a valid value of the atomic type 'elementAliasType'. Line: 648 Element 'block', attribute 'as': [facet 'pattern'] The value 'Bizkick Above' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 660 Element 'block', attribute 'as': 'Bizkick Above' is not a valid value of the atomic type 'elementAliasType'. Line: 660 Element 'block', attribute 'as': [facet 'pattern'] The value 'Bizkick Below' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 661 Element 'block', attribute 'as': 'Bizkick Below' is not a valid value of the atomic type 'elementAliasType'. Line: 661 Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'as': [facet 'pattern'] The value 'Bizkick footer' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 648 Element 'block', attribute 'as': 'Bizkick footer' is not a valid value of the atomic type 'elementAliasType'. Line: 648 Element 'block', attribute 'as': [facet 'pattern'] The value 'Bizkick Above' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 660 Element 'block', attribute 'as': 'Bizkick Above' is not a valid value of the atomic type 'elementAliasType'. Line: 660 Element 'block', attribute 'as': [facet 'pattern'] The value 'Bizkick Below' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 661 Element 'block', attribute 'as': 'Bizkick Below' is not a valid value of the atomic type 'elementAliasType'. Line: 661 #0 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Config\Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...') #1 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, 'C:/Bitnami/mage...', '%message%\nLine:...') #2 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #3 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\ObjectManager\ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array) #4 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Config\DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array) #5 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Model\Layout\Update\Validator.php(141): Magento\Framework\Config\DomFactory->createDom(Array) #6 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Model\Layout\Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false) #7 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Model\Layout\Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<body>\n <refe...') #8 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Model\Layout\Merge\Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array) #9 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout\Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load() #10 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout\Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates() #11 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(254): Magento\Framework\View\Layout\Builder->build() #12 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(875): Magento\Framework\View\Layout->build() #13 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...') #14 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-cms\Helper\Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...') #15 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-cms\Controller\Index\Index.php(43): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'home') #16 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Cms\Controller\Index\Index\Interceptor.php(24): Magento\Cms\Controller\Index\Index->execute(NULL) #17 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\App\Action\Action.php(107): Magento\Cms\Controller\Index\Index\Interceptor->execute() #18 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #19 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', Array) #20 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #21 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Cms\Controller\Index\Index\Interceptor.php(39): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array) #22 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\App\FrontController.php(55): Magento\Cms\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #23 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #24 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #25 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-store\App\FrontController\Plugin\RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #26 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #27 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-page-cache\Model\App\FrontController\BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #28 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #29 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #30 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\App\FrontController\Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL) #31 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\App\Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #32 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\App\Http\Interceptor.php(24): Magento\Framework\App\Http->launch() #33 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\App\Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch() #34 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #35 {main}
Thanks
I have replaced the code given by you in the default.xml file.
This now gives a new error:-
1 exception(s): Exception #0 (InvalidArgumentException): Unable to unserialize value. Exception #0 (InvalidArgumentException): Unable to unserialize value. #0 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module- widget\Helper\Conditions.php(59): Magento\Framework\Serialize\Serializer \Json->unserialize('a:2:[i:1;a:4:[s...') #1 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module- catalog-widget\Block\Product\ProductsList.php(259): Magento\Widget\Helper \Conditions->decode('a:2:[i:1;a:4:[s...') #2 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module- catalog-widget\Block\Product\ProductsList.php(236): Magento\CatalogWidget \Block\Product\ProductsList->getConditions() #3 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \CatalogWidget\Block\Product\ProductsList\Interceptor.php(50): Magento \CatalogWidget\Block\Product\ProductsList->createCollection() #4 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module- catalog-widget\Block\Product\ProductsList.php(216): Magento\CatalogWidget \Block\Product\ProductsList\Interceptor->createCollection() #5 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Element\AbstractBlock.php(666): Magento\CatalogWidget\Block\Product \ProductsList->_beforeToHtml() #6 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \CatalogWidget\Block\Product\ProductsList\Interceptor.php(817): Magento \Framework\View\Element\AbstractBlock->toHtml() #7 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(558): Magento\CatalogWidget\Block\Product\ProductsList \Interceptor->toHtml() #8 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(534): Magento\Framework\View\Layout->_renderBlock ('019bc148df4619b...') #9 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('019bc148df4619b...') #10 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('019bc148df4619b...') #11 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('019bc148df4619b...', true) #12 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(585): Magento\Framework\View\Layout\Interceptor- >renderElement('019bc148df4619b...') #13 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer ('content') #14 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('content') #15 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('content') #16 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('content', true) #17 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(585): Magento\Framework\View\Layout\Interceptor- >renderElement('content') #18 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer ('main') #19 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('main') #20 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('main') #21 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('main', true) #22 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(585): Magento\Framework\View\Layout\Interceptor- >renderElement('main') #23 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer ('columns') #24 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('columns') #25 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('columns') #26 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('columns', true) #27 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(585): Magento\Framework\View\Layout\Interceptor- >renderElement('columns') #28 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer ('main.content') #29 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('main.content') #30 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('main.content') #31 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('main.content', true) #32 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(585): Magento\Framework\View\Layout\Interceptor- >renderElement('main.content') #33 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer ('page.wrapper') #34 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('page.wrapper') #35 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('page.wrapper') #36 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('page.wrapper', true) #37 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(585): Magento\Framework\View\Layout\Interceptor- >renderElement('page.wrapper') #38 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer ('root') #39 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout- >renderNonCachedElement('root') #40 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(489): Magento\Framework\View\Layout\Interceptor- >renderNonCachedElement('root') #41 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout- >renderElement('root', true) #42 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Layout.php(954): Magento\Framework\View\Layout\Interceptor- >renderElement('root') #43 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \Interception\Interceptor.php(58): Magento\Framework\View\Layout->getOutput() #44 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \Interception\Interceptor.php(138): Magento\Framework\View\Layout \Interceptor->___callParent('getOutput', Array) #45 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \Interception\Interceptor.php(153): Magento\Framework\View\Layout \Interceptor->Magento\Framework\Interception\{closure}() #46 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Layout\Interceptor.php(494): Magento\Framework\View\Layout \Interceptor->___callPlugins('getOutput', Array, Array) #47 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Result\Page.php(257): Magento\Framework\View\Layout\Interceptor- >getOutput() #48 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \View\Result\Layout.php(170): Magento\Framework\View\Result\Page->render (Object(Magento\Framework\App\Response\Http\Interceptor)) #49 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \Interception\Interceptor.php(58): Magento\Framework\View\Result\Layout- >renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #50 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \Interception\Interceptor.php(138): Magento\Framework\View\Result\Page \Interceptor->___callParent('renderResult', Array) #51 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \Interception\Interceptor.php(153): Magento\Framework\View\Result\Page \Interceptor->Magento\Framework\Interception\{closure}(Object(Magento \Framework\App\Response\Http\Interceptor)) #52 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\View\Result\Page\Interceptor.php(130): Magento\Framework\View \Result\Page\Interceptor->___callPlugins('renderResult', Array, Array) #53 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \App\Http.php(139): Magento\Framework\View\Result\Page\Interceptor- >renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #54 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento \Framework\App\Http\Interceptor.php(24): Magento\Framework\App\Http->launch() #55 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework \App\Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch() #56 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\index.php(39): Magento \Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #57 {main}
Thanks
You need to keep below content in your xml file, You have place as attribute with spaces. Spaces are not allowed anymore in magento 2.2.* version.
<?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" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src="Hiddentechies_Bizkick::css/owl.carousel.css"/> <css src="Hiddentechies_Bizkick::css/owl.theme.css"/> <css src="Hiddentechies_Bizkick::css/owl.transitions.css"/> <css src="Hiddentechies_Bizkick::css/fancybox/jquery.fancybox.css"/> <css src="Hiddentechies_Bizkick::css/font-awesome.min.css"/> </head> <body> <referenceContainer name="head.additional"> <block class="Magento\Framework\View\Element\Template" name="custom.css" template="Hiddentechies_Bizkick::customcss.phtml" before="-"/> </referenceContainer> <referenceContainer name="footer-container"> <block class="Magento\Framework\View\Element\Template" as="Bizkick_footer" name="bizkick.footer" template="Hiddentechies_Bizkick::html/footer.phtml"> <block class="Magento\Framework\View\Element\Html\Links" name="footer_links"> <arguments> <argument name="css_class" xsi:type="string">footer links</argument> </arguments> </block> <block class="Magento\Theme\Block\Html\Footer" name="copyright" template="html/copyright.phtml"/> </block> <referenceBlock name="report.bugs" remove="true"/> <referenceBlock name="footer" remove="true"/> </referenceContainer> <referenceContainer name="page.wrapper"> <block class="Magento\Framework\View\Element\Template" as="Bizkick_Above" name="blzkick.above" template="Hiddentechies_Bizkick::bizkickabove.phtml" before="main.content" /> <block class="Magento\Framework\View\Element\Template" as="Bizkick_Below" name="blzkick.below" template="Hiddentechies_Bizkick::bizkickbelow.phtml" after="main.content" /> </referenceContainer> <referenceBlock name="wish-list-link" remove="true"/> </body> </page>
@Rakesh Jesadiya wrote:You need to keep below content in your xml file, You have place as attribute with spaces. Spaces are not allowed anymore in magento 2.2.* version.
<?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" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src="Hiddentechies_Bizkick::css/owl.carousel.css"/> <css src="Hiddentechies_Bizkick::css/owl.theme.css"/> <css src="Hiddentechies_Bizkick::css/owl.transitions.css"/> <css src="Hiddentechies_Bizkick::css/fancybox/jquery.fancybox.css"/> <css src="Hiddentechies_Bizkick::css/font-awesome.min.css"/> </head> <body> <referenceContainer name="head.additional"> <block class="Magento\Framework\View\Element\Template" name="custom.css" template="Hiddentechies_Bizkick::customcss.phtml" before="-"/> </referenceContainer> <referenceContainer name="footer-container"> <block class="Magento\Framework\View\Element\Template" as="Bizkick_footer" name="bizkick.footer" template="Hiddentechies_Bizkick::html/footer.phtml"> <block class="Magento\Framework\View\Element\Html\Links" name="footer_links"> <arguments> <argument name="css_class" xsi:type="string">footer links</argument> </arguments> </block> <block class="Magento\Theme\Block\Html\Footer" name="copyright" template="html/copyright.phtml"/> </block> <referenceBlock name="report.bugs" remove="true"/> <referenceBlock name="footer" remove="true"/> </referenceContainer> <referenceContainer name="page.wrapper"> <block class="Magento\Framework\View\Element\Template" as="Bizkick_Above" name="blzkick.above" template="Hiddentechies_Bizkick::bizkickabove.phtml" before="main.content" /> <block class="Magento\Framework\View\Element\Template" as="Bizkick_Below" name="blzkick.below" template="Hiddentechies_Bizkick::bizkickbelow.phtml" after="main.content" /> </referenceContainer> <referenceBlock name="wish-list-link" remove="true"/> </body> </page>
Thanks for reply.
I have copy-pasted your lines of code in the default.xml file.
But it gives the error as shown below-
1 exception(s): Exception #0 (InvalidArgumentException): Unable to unserialize value. Exception #0 (InvalidArgumentException): Unable to unserialize value. #0 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-widget\Helper\Conditions.php(59): Magento\Framework\Serialize\Serializer\Json->unserialize('a:2:[i:1;a:4:[s...') #1 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-catalog-widget\Block\Product\ProductsList.php(259): Magento\Widget\Helper\Conditions->decode('a:2:[i:1;a:4:[s...') #2 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-catalog-widget\Block\Product\ProductsList.php(236): Magento\CatalogWidget\Block\Product\ProductsList->getConditions() #3 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\CatalogWidget\Block\Product\ProductsList\Interceptor.php(50): Magento\CatalogWidget\Block\Product\ProductsList->createCollection() #4 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\module-catalog-widget\Block\Product\ProductsList.php(216): Magento\CatalogWidget\Block\Product\ProductsList\Interceptor->createCollection() #5 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Element\AbstractBlock.php(666): Magento\CatalogWidget\Block\Product\ProductsList->_beforeToHtml() #6 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\CatalogWidget\Block\Product\ProductsList\Interceptor.php(817): Magento\Framework\View\Element\AbstractBlock->toHtml() #7 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(558): Magento\CatalogWidget\Block\Product\ProductsList\Interceptor->toHtml() #8 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(534): Magento\Framework\View\Layout->_renderBlock('019bc148df4619b...') #9 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('019bc148df4619b...') #10 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('019bc148df4619b...') #11 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('019bc148df4619b...', true) #12 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('019bc148df4619b...') #13 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer('content') #14 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content') #15 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content') #16 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', true) #17 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('content') #18 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main') #19 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main') #20 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main') #21 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', true) #22 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main') #23 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer('columns') #24 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('columns') #25 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('columns') #26 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('columns', true) #27 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('columns') #28 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main.content') #29 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.content') #30 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.content') #31 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.content', true) #32 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main.content') #33 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer('page.wrapper') #34 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') #35 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') #36 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', true) #37 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper') #38 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(536): Magento\Framework\View\Layout->_renderContainer('root') #39 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root') #40 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') #41 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true) #42 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Layout.php(954): Magento\Framework\View\Layout\Interceptor->renderElement('root') #43 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(58): Magento\Framework\View\Layout->getOutput() #44 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array) #45 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() #46 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Layout\Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array) #47 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Result\Page.php(257): Magento\Framework\View\Layout\Interceptor->getOutput() #48 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\View\Result\Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor)) #49 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #50 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array) #51 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor)) #52 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\View\Result\Page\Interceptor.php(130): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array) #53 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\App\Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #54 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\generated\code\Magento\Framework\App\Http\Interceptor.php(24): Magento\Framework\App\Http->launch() #55 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\vendor\magento\framework\App\Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch() #56 C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #57 {main}
Thanks again.
The problem is in /vendor/magento/framework/Serialize/Serializer/Json.php
and you can use the solution in below link. Changing a code in json.php
https://magento.stackexchange.com/questions/194010/magento-2-2-unable-to-unserialize-value
Issue regarding to Json.php, In Magento 2.2.* Serialize value may affect the old version codebase of magento.
You can refer below links to check your issue:
https://magento.stackexchange.com/questions/196216/magento-2-2-error-unable-to-unserialize-value
Also one of docs related to serializing by magento team,
http://devdocs.magento.com/guides/v2.2/extension-dev-guide/framework/serializer.html