cancel
Showing results for 
Search instead for 
Did you mean: 

CoD fee extension compatibility problem with Magento 2.2.2

CoD fee extension compatibility problem with Magento 2.2.2

Hello,

I have installed magento2-cash-on-delivery-fee extension. After installation in admin panel I changed the setting to add Cash on Delivery fee. In product page, when I click Add to Cart button, it shows error

There has been an error processing your request

Notice: unserialize(): Error at offset 0 of 109 bytes in C:\Bitnami\magento-2.1.9-0\apps\magento\htdocs\app\code\Boolfly\PaymentFee\Helper\Data.php on line 40

Error log record number: 248393892

 

I have searched that Magento has removed serialize/unserialize from most the code to improve protection against remote code execution attacks, but can any one suggest how to deal with this condition, as this extension is very helpful for me.

Details:-

Magento version: 2.2.2

Theme used : HiddenTechies Bizkick

Extension Download page link: https://github.com/bragento/magento2-cash-on-delivery-fee

 

Thanks

16 REPLIES 16

Re: CoD fee extension compatibility problem with Magento 2.2.2

Looking at the error its not coming from this cash on delivery extension.

 

Its coming from  Boolfly Payment Fee Extension which is configured in your current setup.

 

Git hub link - https://github.com/mrkhoa99/Boolfly_payment_fee

 

Might be this extension is not compatible with your current version of Magento 2.

 

So kindly disabled that module or resolved the error of this extension.

 

Path of the error file is - app\code\Boolfly\PaymentFee\Helper\Data.php

 

 

 

 

 

 

if issue solved,Click Kudos & Accept as Solution

Re: CoD fee extension compatibility problem with Magento 2.2.2

Thanks for reply.

Yes, It seems that this extension is not compatible with Magento 2.2.2 as it uses serialize/unserialize in the code and Magento has removed serialize/unserialize from most the codes to improve protection against remote code execution attacks.

But, can any one suggest:-

(1) A similar free extension to add Cash on Delivery fee for 2.2.2; or

(2) Any modification in the code to solve this serialize/unserialize  situation.

 

Thanks

Re: CoD fee extension compatibility problem with Magento 2.2.2

Yes ,below are the free extension for add extra fee.

 

https://github.com/magecomp/magento2-extra-fee

 

https://github.com/sivajik34/Custom-Fee-Magento2

if issue solved,Click Kudos & Accept as Solution

Re: CoD fee extension compatibility problem with Magento 2.2.2

Thanks for reply.

But, they are also not compatible with Magento 2.2.2.

And, they add a flat extra fee, but I want an extension which should add an extra fee when the payment method selected is Cash on Delivery.

 

Thanks

Re: CoD fee extension compatibility problem with Magento 2.2.2

okay understood !!

 

so you needed below kind of extensions, Refer below links

 

https://github.com/magespecialist/m2-MSP_CashOnDelivery

 
https://github.com/bragento/magento2-cash-on-delivery-fee

if issue solved,Click Kudos & Accept as Solution

Re: CoD fee extension compatibility problem with Magento 2.2.2

Thanks for reply.

But both the extensions are not working.

[A] https://github.com/magespecialist/m2-MSP_CashOnDelivery: After installing this extension, Payment Methods page in Configuration is blank.

[B] https://github.com/bragento/magento2-cash-on-delivery-fee:  After installing this extension,front page is showing errors

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}

 

Perhaps compatibility issues with Magento 2.2.2.

 

Thanks

Re: CoD fee extension compatibility problem with Magento 2.2.2

The Second extension - https://github.com/bragento/magento2-cash-on-delivery-fee

 

Its compatible with the Magento 2.2.2 Version , I have tested it with the same version.

 

The error which is showing is from Bizkick footer module/theme file.

 

so kindly post default.xml file of Bizkick footer  the error comes from there only !!

if issue solved,Click Kudos & Accept as Solution

Re: CoD fee extension compatibility problem with Magento 2.2.2

Hiddentechies Bizkick is the Theme name, I have installed.

Re: CoD fee extension compatibility problem with Magento 2.2.2

Default.xml file from app/design/frontend/Hiddentechies/bizkick/HiddentechiesBizkick

 

<?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>

Is this the right file you have asked for ?