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

allowed_additional_services_for_carrier is undefined #196

Open
madic-creates opened this issue Aug 11, 2020 · 4 comments
Open

allowed_additional_services_for_carrier is undefined #196

madic-creates opened this issue Aug 11, 2020 · 4 comments

Comments

@madic-creates
Copy link

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
Copy link
Contributor

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-creates
Copy link
Author

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

@andrecedik
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants