checking my debug.log I’ve found this
[25-Aug-2022 08:15:36 UTC] PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /var/www/vhosts/xxx/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-checkout-fees.php:122
Stack trace:
#0 /var/www/vhosts/xxx/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-checkout-fees.php(122): array_map()
#1 /var/www/vhosts/xxx/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-checkout-fees.php(243): WCJ_Checkout_Fees->is_fee_valid()
I’m running PHP 8.0.22
Could you have a look?
]]>Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/customer/www/highaltitudebrands.com/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php on line 1017
and under SEO Analysis I see:
An error occurred in the ‘previouslyUsedKeywords-usedKeywords’ assessment
]]>Warning: array_map(): Expected parameter 2 to be an array, in /public_html/plugins/wordpress-seo/inc/class-wpseo-meta.php on line 1013
Thank you.
]]>[04-Dec-2019 23:12:27 UTC] PHP Warning: array_map(): Expected parameter 2 to be an array, string given in /xxx/yyy/public_html/wp-content/plugins/woocommerce-mailchimp/includes/class-ss-wc-mailchimp-plugin.php on line 294
Thanks.
]]>Warning: array_map(): Argument #2 should be an array in /wp-content/plugins/n-media-wp-simple-quiz/inc/admin.php on line 161
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/n-media-wp-simple-quiz/inc/admin.php:161) in /wp-includes/pluggable.php on line 1251
]]>I have this warning in my error log.
2016/09/02 09:42:51 [error] 1047#1047: *110694 FastCGI sent in stderr: "PHP message: PHP Warning: array_map(): Argument #2 should be an array in /var/www/example.com/wp-includes/query.php on line 2777
Thanks for your time.
]]>Warning: array_map(): Argument #2 should be an array in /home/stoneart/public_html/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wcpbc-product-price.php on line 370
Warning: implode(): Invalid arguments passed in /home/stoneart/public_html/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wcpbc-product-price.php on line 370
Warning: array_map(): Argument #2 should be an array in /home/stoneart/public_html/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wcpbc-product-price.php on line 370
Warning: implode(): Invalid arguments passed in /home/stoneart/public_html/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wcpbc-product-price.php on line 370
Thanks for your help.
TSurF
https://www.ads-software.com/plugins/woocommerce-product-price-based-on-countries/
]]>Warning: array_map(): Argument #2 should be an array in C:\xampp\htdocs\watchmovies\wp-includes\category-template.php on line 1158
I tried to change like this. The error doen’t appear again but neither do taxonomies terms.
I change:
$terms = array_map( 'get_term', $terms );
with
if ( ! is_wp_error( $terms ) ) {
$terms = array_map( 'get_term', $terms );
}
Any ideea?
]]>When i disable the categories and try to edit an old event which i have published and want so save it i got the following error:
Warning: array_map(): Argument #2 should be an array in /..../wp/wp-includes/category-template.php on line 1158
Warning: Cannot modify header information - headers already sent by (output started at /..../wp/wp-includes/category-template.php:1158) in /..../wp/wp-admin/post.php on line 197
Warning: Cannot modify header information - headers already sent by (output started at /..../wp/wp-includes/category-template.php:1158) in /..../wp/wp-includes/pluggable.php on line 1228
So this error looks similiar to the last one, where WordPress 4.4 was released. there the array_map() Error was on the Frontend. Hope you could reproduce the error and fix it.
When i have categories enabled all works perfectly.
https://www.ads-software.com/plugins/events-manager/
]]>Warning: array_map(): Argument #2 should be an array in /home/tripledose/www/www/wp-includes/category-template.php on line 1158.
Been researching to find out how to fix, but can’t find the solution.
Help!
https://www.ads-software.com/plugins/event-organiser/
]]>