shipcloud / shipcloud-for-woocommerce

shipcloud for WooCommerce
GNU General Public License v3.0
6 stars 0 forks source link

allowed_additional_services_for_carrier is undefined #196

Open Madic- opened 4 years ago

Madic- commented 4 years ago

Hello,

we are getting the following error messages when opening Woocommerce --> Orders:

Warning: array_merge() expects at least 1 parameter, 0 given in /homepages/17/d668768328/htdocs/wp-content/plugins/shipcloud-for-woocommerce/woocommerce-shipcloud.php on line 410
Warning: array_unique() expects parameter 1 to be array, null given in /homepages/17/d668768328/htdocs/wp-content/plugins/shipcloud-for-woocommerce/woocommerce-shipcloud.php on line 411
Warning: array_values() expects parameter 1 to be array, null given in /homepages/17/d668768328/htdocs/wp-content/plugins/shipcloud-for-woocommerce/woocommerce-shipcloud.php on line 438

The browser console shows the following error:

Uncaught TypeError: allowed_additional_services_for_carrier is undefined
    handleAdditionalServices /wp-content/plugins/shipcloud-for-woocommerce/includes/js/shipcloud-shipments.js?ver=1.12.2:657
    addHandlers /wp-content/plugins/shipcloud-for-woocommerce/includes/js/shipcloud-shipments.js?ver=1.12.2:539

Woocommerce version: 4.3.2 Shipcloud version: 1.12.2

We needed to go back to shipcloud version 1.11.1. The errors appear since 1.12.

Do you need further information?

Kind Regards, Michael

andrecedik commented 4 years ago

Hi @Madic- could you please save your plugin settings once? You don't have to change anything. We've changed the way additional services are loaded and therefore you might need to update your carriers, which is now done each time when you're saving the settings.

Madic- commented 4 years ago

Hi @andrecedik, Thank you for your help. I did that and the problem still exists.

andrecedik commented 4 years ago

Hey @Madic-, can you please have a look at the source code, search for var wcsc_carrier = and post the information you're seeing there?

andrecedik commented 4 years ago

Hi @Madic- I've released a new Version of the plugin. Could you please verify if the problem still exists?