warning … array offset on value of type null …
-
I continue to have a warning (in wordpress 6.0) :
Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\progetti\wp_emmerre\wp-content\plugins\woocommerce\src\Admin\Features\Navigation\CoreMenu.php on line 234
below I insert the portion of code with line 234.
is there a solution ?————————–
return array_merge(
array(
$home_item,
$customers_item,
$order_items[‘all’],
$order_items[‘new’],
$product_items[‘all’],
$product_cat_items[‘default’],
$product_tag_items[‘default’],
array(
‘id’ => ‘woocommerce-product-attributes’,
‘title’ => __( ‘Attributes’, ‘woocommerce’ ),
‘url’ => ‘edit.php?post_type=product&page=product_attributes’,
‘capability’ => ‘manage_product_terms’,
‘order’ => 40,
‘parent’ => ‘woocommerce-products’,
‘matchExpression’ => ‘edit.php(?=.*[?|&]page=product_attributes(&|$|#))|edit-tags.php(?=.*[?|&]taxonomy=pa_)(?=.*[?|&]post_type=product(&|$|#))’,
),
array_merge( $product_items[‘new’], array( ‘order’ => 50 ) ),
——— line 234 ———–> $coupon_items[‘default’],
// Marketplace category.
array(
‘title’ => __( ‘Marketplace’, ‘woocommerce’ ),
‘capability’ => ‘manage_woocommerce’,
‘id’ => ‘woocommerce-marketplace’,
‘url’ => ‘wc-addons’,
‘menuId’ => ‘secondary’,
‘order’ => 10,
- The topic ‘warning … array offset on value of type null …’ is closed to new replies.