Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mageside_CanadaPostShipping / Interactivated_Quotecheckout: «element weight value '0' is not a valid instance of the element type» #137

Closed
dmitrii-fediuk opened this issue Jun 3, 2021 · 0 comments

Comments

@dmitrii-fediuk
Copy link
Contributor

dmitrii-fediuk commented Jun 3, 2021

How to reproduce:

  1. Add a virtual product (e.g.: 5227) to the quite as a guest customer.
  2. Go to the /quotecheckout.
{
    "channel": "main",
    "context": {
        "exception": {
            "faultstring": "/rs/soap/rating/v3: cvc-simple-type 1: element weight value '0' is not a valid instance of the element type",
            "faultcode": "Server",
            "faultcodens": "http://schemas.xmlsoap.org/soap/envelope/"
        }
    },
    "datetime": {
        "date": "2021-06-03 01:41:25.860885",
        "timezone_type": 3,
        "timezone": "UTC"
    },
    "level": 500,
    "level_name": "CRITICAL",
    "Mage2.PRO": [
        {
            "IP Address": "92.243.166.8",
            "mage2pro/core": "7.5.3",
            "Magento": "2.3.5-p2",
            "PHP": "7.2.34",
            "Post": {
                "billing": {
                    "address_id": "",
                    "city": "",
                    "company": "",
                    "confirm_password": "",
                    "country_id": "CA",
                    "customer_password": "",
                    "email": "",
                    "firstname": "",
                    "lastname": "",
                    "postcode": "",
                    "region": "",
                    "region_id": "",
                    "save_in_address_book": "1",
                    "street": [
                        "",
                        ""
                    ],
                    "telephone": ""
                },
                "cart": {
                    "105711": {
                        "qty": "1"
                    }
                },
                "form_key": "",
                "isAjax": "1",
                "onestepcheckout_comments": "",
                "ship_to_same_address": "1",
                "subscribe_newsletter": "1",
                "updates": "{\"updateshippingmethod\":true,\"updateshippingtype\":true,\"loader\":[\"checkout-shipping-method-load\",\"co-payment-form\",\"checkout-shipping-method-load\",\"checkout-review-load\"]}"
            },
            "Referer": "https://localhost.com:2216/quotecheckout/",
            "URL": "https://localhost.com:2216/quotecheckout/index/save/",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
        }
    ],
    "message": "/rs/soap/rating/v3: cvc-simple-type 1: element weight value '0' is not a valid instance of the element type"
}
Location:    vendor/mage2pro/core/Framework/Logger/Handler.php:55
Callee:      df_log_l
*****************1******************
Location:    vendor/monolog/monolog/src/Monolog/Logger.php:344
Callee:      Df\Framework\Logger\Handler::handle
*****************2******************
Location:    vendor/magento/framework/Logger/Monolog.php:48
Callee:      Monolog\Logger::addRecord
*****************3******************
Location:    vendor/monolog/monolog/src/Monolog/Logger.php:740
Callee:      Magento\Framework\Logger\Monolog::addRecord
*****************4******************
Location:    app/code/Mageside/CanadaPostShipping/Model/Carrier.php:449
Callee:      Monolog\Logger::critical
*****************5******************
Location:    app/code/Mageside/CanadaPostShipping/Model/Carrier.php:294
Callee:      Mageside\CanadaPostShipping\Model\Carrier::_doRatesRequest
*****************6******************
Location:    app/code/Mageside/CanadaPostShipping/Model/Carrier.php:280
Callee:      Mageside\CanadaPostShipping\Model\Carrier::_getQuotes
*****************7******************
Location:    generated/code/Mageside/CanadaPostShipping/Model/Carrier/Interceptor.php:37
Callee:      Mageside\CanadaPostShipping\Model\Carrier::collectRates
*****************8******************
Location:    vendor/magento/module-shipping/Model/Shipping.php:337
Callee:      Mageside\CanadaPostShipping\Model\Carrier::collectRates
*****************9******************
Location:    generated/code/Magento/Shipping/Model/Shipping/Interceptor.php:89
Callee:      Magento\Shipping\Model\Shipping::collectCarrierRates
*****************10*****************
Location:    vendor/magento/module-shipping/Model/Shipping.php:244
Callee:      Magento\Shipping\Model\Shipping::collectCarrierRates
*****************11*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Shipping\Model\Shipping::collectRates
*****************12*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Shipping\Model\Shipping::___callParent
*****************13*****************
Location:    app/code/MageSuper/Casat/Plugin/Shipping/Model/Shipping.php:21
Callee:      Magento\Shipping\Model\Shipping::Magento\Framework\Interception\{closure}
*****************14*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      MageSuper\Casat\Plugin\Shipping\Model\Shipping::aroundCollectRates
*****************15*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Shipping\Model\Shipping::Magento\Framework\Interception\{closure}
*****************16*****************
Location:    generated/code/Magento/Shipping/Model/Shipping/Interceptor.php:78
Callee:      Magento\Shipping\Model\Shipping::___callPlugins
*****************17*****************
Location:    vendor/magento/module-quote/Model/Quote/Address.php:1068
Callee:      Magento\Shipping\Model\Shipping::collectRates
*****************18*****************
Location:    generated/code/Magento/Quote/Model/Quote/Address/Interceptor.php:336
Callee:      Magento\Quote\Model\Quote\Address::requestShippingRates
*****************19*****************
Location:    vendor/magento/module-quote/Model/Quote/Address.php:1002
Callee:      Magento\Quote\Model\Quote\Address::requestShippingRates
*****************20*****************
Location:    generated/code/Magento/Quote/Model/Quote/Address/Interceptor.php:323
Callee:      Magento\Quote\Model\Quote\Address::collectShippingRates
*****************21*****************
Location:    app/code/Interactivated/Quotecheckout/Block/Checkout/Onepage/Shipping/Method/Available.php:73
Callee:      Magento\Quote\Model\Quote\Address::collectShippingRates
*****************22*****************
Location:    generated/code/Interactivated/Quotecheckout/Block/Checkout/Onepage/Shipping/Method/Available/Interceptor.php:24
Callee:      Interactivated\Quotecheckout\Block\Checkout\Onepage\Shipping\Method\Available::getShippingRates
*****************23*****************
Location:    app/code/Interactivated/Quotecheckout/view/frontend/templates/dashboard/onepage/shipping_method/available.phtml:1
Callee:      Interactivated\Quotecheckout\Block\Checkout\Onepage\Shipping\Method\Available::getShippingRates
*****************24*****************
Location:    vendor/magento/framework/View/TemplateEngine/Php.php:59
Callee:      include
*****************25*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Framework\View\TemplateEngine\Php::render
*****************26*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Framework\View\TemplateEngine\Php::___callParent
*****************27*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Framework\View\TemplateEngine\Php::Magento\Framework\Interception\{closure}
*****************28*****************
Location:    generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:26
Callee:      Magento\Framework\View\TemplateEngine\Php::___callPlugins
*****************29*****************
Location:    vendor/magento/framework/View/Element/Template.php:271
Callee:      Magento\Framework\View\TemplateEngine\Php::render
*****************30*****************
Location:    generated/code/Interactivated/Quotecheckout/Block/Checkout/Onepage/Shipping/Method/Available/Interceptor.php:323
Callee:      Magento\Framework\View\Element\Template::fetchView
*****************31*****************
Location:    vendor/magento/framework/View/Element/Template.php:301
Callee:      Interactivated\Quotecheckout\Block\Checkout\Onepage\Shipping\Method\Available::fetchView
*****************32*****************
Location:    vendor/magento/framework/View/Element/AbstractBlock.php:1100
Callee:      Magento\Framework\View\Element\Template::_toHtml
*****************33*****************
Location:    vendor/magento/framework/View/Element/AbstractBlock.php:1104
Callee:      Magento\Framework\View\Element\AbstractBlock::Magento\Framework\View\Element\{closure}
*****************34*****************
Location:    vendor/magento/framework/View/Element/AbstractBlock.php:674
Callee:      Magento\Framework\View\Element\AbstractBlock::_loadCache
*****************35*****************
Location:    generated/code/Interactivated/Quotecheckout/Block/Checkout/Onepage/Shipping/Method/Available/Interceptor.php:648
Callee:      Magento\Framework\View\Element\AbstractBlock::toHtml
*****************36*****************
Location:    app/code/Interactivated/Quotecheckout/Controller/Index/Save.php:81
Callee:      Interactivated\Quotecheckout\Block\Checkout\Onepage\Shipping\Method\Available::toHtml
*****************37*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::execute
*****************38*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::___callParent
*****************39*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::Magento\Framework\Interception\{closure}
*****************40*****************
Location:    generated/code/Interactivated/Quotecheckout/Controller/Index/Save/Interceptor.php:39
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::___callPlugins
*****************41*****************
Location:    vendor/magento/framework/App/Action/Action.php:108
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::execute
*****************42*****************
Location:    vendor/magento/module-checkout/Controller/Onepage.php:161
Callee:      Magento\Framework\App\Action\Action::dispatch
*****************43*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Checkout\Controller\Onepage::dispatch
*****************44*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::___callParent
*****************45*****************
Location:    app/code/Bss/AdminActionLog/Plugin/Action.php:71
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::Magento\Framework\Interception\{closure}
*****************46*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      Bss\AdminActionLog\Plugin\Action::aroundDispatch
*****************47*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::Magento\Framework\Interception\{closure}
*****************48*****************
Location:    generated/code/Interactivated/Quotecheckout/Controller/Index/Save/Interceptor.php:208
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::___callPlugins
*****************49*****************
Location:    vendor/magento/framework/App/FrontController.php:162
Callee:      Interactivated\Quotecheckout\Controller\Index\Save::dispatch
*****************50*****************
Location:    vendor/magento/framework/App/FrontController.php:99
Callee:      Magento\Framework\App\FrontController::processRequest
*****************51*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Framework\App\FrontController::dispatch
*****************52*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Framework\App\FrontController::___callParent
*****************53*****************
Location:    vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99
Callee:      Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
*****************54*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      Magento\Store\App\FrontController\Plugin\RequestPreprocessor::aroundDispatch
*****************55*****************
Location:    vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:73
Callee:      Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
*****************56*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      Magento\PageCache\Model\App\FrontController\BuiltinPlugin::aroundDispatch
*****************57*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
*****************58*****************
Location:    generated/code/Magento/Framework/App/FrontController/Interceptor.php:26
Callee:      Magento\Framework\App\FrontController::___callPlugins
*****************59*****************
Location:    vendor/magento/framework/App/Http.php:116
Callee:      Magento\Framework\App\FrontController::dispatch
*****************60*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Framework\App\Http::launch
*****************61*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Framework\App\Http::___callParent
*****************62*****************
Location:    vendor/canadasatellite/core/Plugin/Magento/Framework/App/Http.php:18
Callee:      Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************63*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      CanadaSatellite\Core\Plugin\Magento\Framework\App\Http::aroundLaunch
*****************64*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************65*****************
Location:    generated/code/Magento/Framework/App/Http/Interceptor.php:26
Callee:      Magento\Framework\App\Http::___callPlugins
*****************66*****************
Location:    vendor/magento/framework/App/Bootstrap.php:261
Callee:      Magento\Framework\App\Http::launch
*****************67*****************
Location:    index.php:39
Callee:      Magento\Framework\App\Bootstrap::run
@dmitrii-fediuk dmitrii-fediuk changed the title Mageside_CanadaPostShipping: «element weight value '0' is not a valid instance of the element type» Mageside_CanadaPostShipping / Interactivated_Quotecheckout: «element weight value '0' is not a valid instance of the element type» Jun 3, 2021
dmitrii-fediuk added a commit to mage2pro/core that referenced this issue Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant