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

PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in merit-aktiva-for-woocommerce/includes/Integration.php:981 #2

Open
tsalumets opened this issue Oct 1, 2024 · 0 comments

Comments

@tsalumets
Copy link

tsalumets commented Oct 1, 2024

After activating plugin there is error.
PHP 8.0
[01-Oct-2024 19:49:15 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in/wp-content/plugins/merit-aktiva-for-woocommerce/includes/Integration.php:981

Error code:
$warehouses = explode( "\n", $this->get_option( 'warehouses', [] ) );

Fixed with:
$warehouses = explode( "\n", $this->get_option( 'warehouses', '' ) );

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

1 participant