Support » Plugin: DHL for WooCommerce » SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property.

  • I am getting this error for some lables:
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 69 der Datei /…folder…/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-soap-label.php verursacht. Fehlermeldung:

    SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property.

    Plugin 1.4.1 is installed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shadi Manna

    (@shadim)

    That does not actually solve the “countryCodeOrigin” issue.

    Is it maybe that the country differs from the shop country?

    here is the logfile:

    07-23-2019 @ 10:04:19 - "createShipmentOrder" called with: Array
    (
        [Version] => Array
            (
                [majorRelease] => 2
                [minorRelease] => 2
            )
    
        [ShipmentOrder] => Array
            (
                [sequenceNumber] => 8471
                [Shipment] => Array
                    (
                        [ShipmentDetails] => Array
                            (
                                [product] => XXXXXX
                                [accountNumber] => XXX45839425XXX
                                [shipmentDate] => 2019-07-23
                                [ShipmentItem] => Array
                                    (
                                        [weightInKG] => 0.9
                                    )
    
                            )
    
                        [Shipper] => Array
                            (
                                [Name] => Array
                                    (
                                        [name1] => XXXXXX
                                        [name2] => XXXXXX XXXXXX
                                    )
    
                                [Address] => Array
                                    (
                                        [streetName] => XXXXXX XXXXXX
                                        [streetNumber] => X
                                        [zip] => XXXXX
                                        [city] => XXXXXX
                                        [Origin] => Array
                                            (
                                                [countryISOCode] => DE
                                                [state] => Deutschland
                                            )
    
                                    )
    
                                [Communication] => Array
                                    (
                                        [phone] => +49XXXXXX
                                        [email] => XXXXXX
                                    )
    
                            )
    
                        [Receiver] => Array
                            (
                                [name1] => XXXXXX XXXXXX
                                [Address] => Array
                                    (
                                        [streetName] => XXXXXX
                                        [streetNumber] => xxx
                                        [zip] => XXXXX
                                        [city] => XXXXXX
                                        [Origin] => Array
                                            (
                                                [countryISOCode] => IL
                                            )
    
                                    )
    
                                [Communication] => Array
                                    (
                                        [phone] => +97XXXXXX
                                        [email] => XXXXXX
                                    )
    
                                [Postfiliale] => Array
                                    (
                                        [postNumber] => 
                                    )
    
                            )
    
                        [ExportDocument] => Array
                            (
                                [invoiceNumber] => XXXX
                                [exportType] => OTHER
                                [exportTypeDescription] => XXXXXX
                                [placeOfCommital] => IL
                                [ExportDocPosition] => Array
                                    (
                                        [0] => Array
                                            (
                                                [description] => XXXXXX
                                                [amount] => 1
                                                [netWeightInKG] => 0.9
                                                [customsValue] => 192.44
                                            )
    
                                    )
    
                                [additionalFee] => 0
                            )
    
                    )
    
                [labelResponseType] => B64
                [PrintOnlyIfCodeable] => Array
                    (
                        [active] => 1
                    )
    
            )
    
    )
    
    07-23-2019 @ 10:04:19 - Response Error: SOAP-ERROR: Encoding: object has no 'countryCodeOrigin' property
    Plugin Author Shadi Manna

    (@shadim)

    Do all the products within that order have a country set here https://www.awesomescreenshot.com/image/3041975/e393b78b6ad99cd6e8db679f9cf5434f

    Awesome that was it!
    Would be great if the plugin would throw a propper error when these fields are not set.

    I wasn’t aware that the plugin ads those fields into the Shipment area.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property.’ is closed to new replies.