• Resolved carlofattori

    (@carlofattori)


    I continue to have a warning (in wordpress 6.0 in local installation with xampp) :

    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,
    ————————–

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @carlofattori

    I continue to have a warning (in wordpress 6.0 in local installation with xampp):

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter carlofattori

    (@carlofattori)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://localhost/progetti/wp_emmerre
    Site address (URL): https://localhost/progetti/wp_emmerre
    WC Version: 6.6.0
    REST API Version: ? 6.6.0
    WC Blocks Version: ? 7.6.0
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: it_IT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.6
    PHP Version: 8.1.6
    PHP Post Max Size: 40 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.77.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 10.4.24-MariaDB
    Max Upload Size: 40 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ? Il tuo server non ha la classe SoapClient attiva - alcuni plugin gateway che usano SOAP potrebbero non funzionare correttamente.
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.6.0
    WC Database Prefix: wp_
    Dimensione totale database: 10.44MB
    Dimensione dati database: 7.75MB
    Dimensione indice database: 2.69MB
    wp_woocommerce_sessions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_woocommerce_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_order_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_actionscheduler_actions: Dati: 0.02MB + indice: 0.11MB + motore InnoDB
    wp_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_actionscheduler_logs: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_check_email_log: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_comments: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
    wp_e_events: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_gla_budget_recommendations: Dati: 0.22MB + indice: 0.14MB + motore InnoDB
    wp_gla_merchant_issues: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_gla_shipping_rates: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_gla_shipping_times: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_custom_fields: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_dynamic_segment_filters: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_feature_flags: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_forms: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_mailpoet_log: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_mailpoet_mapping_to_external_entities: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_newsletters: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_newsletter_links: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_mailpoet_newsletter_option: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_newsletter_option_fields: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_newsletter_posts: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_newsletter_segment: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_newsletter_templates: Dati: 2.52MB + indice: 0.00MB + motore InnoDB
    wp_mailpoet_scheduled_tasks: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_scheduled_task_subscribers: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_segments: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_sending_queues: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_settings: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_statistics_bounces: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_mailpoet_statistics_clicks: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_mailpoet_statistics_forms: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_statistics_newsletters: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_statistics_opens: Dati: 0.02MB + indice: 0.08MB + motore InnoDB
    wp_mailpoet_statistics_unsubscribes: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_mailpoet_statistics_woocommerce_purchases: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_mailpoet_stats_notifications: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_subscribers: Dati: 0.02MB + indice: 0.13MB + motore InnoDB
    wp_mailpoet_subscriber_custom_field: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_subscriber_ips: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_subscriber_segment: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_mailpoet_user_agents: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_mailpoet_user_flags: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_options: Dati: 3.05MB + indice: 0.06MB + motore InnoDB
    wp_postmeta: Dati: 0.14MB + indice: 0.06MB + motore InnoDB
    wp_posts: Dati: 0.13MB + indice: 0.06MB + motore InnoDB
    wp_smtpmail_data: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_snippets: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_termmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_term_relationships: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_usermeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_users: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_wc_admin_notes: Dati: 0.05MB + indice: 0.00MB + motore InnoDB
    wp_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_wc_customer_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_order_product_lookup: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_wc_order_stats: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_product_attributes_lookup: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_product_download_directories: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_product_meta_lookup: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
    wp_wc_rate_limits: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wpml_mails: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_wpsmtp_logs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    
    ### Post Type Counts ###
    
    attachment: 14
    customize_changeset: 16
    elementor_library: 1
    mailpoet_page: 1
    nav_menu_item: 3
    page: 13
    post: 2
    product: 4
    revision: 34
    shop_order: 1
    somdn_temp_download: 19
    somdn_tracked: 15
    wp_global_styles: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    					Il tuo negozio non utilizza HTTPS. Scopri di più su HTTPS e certificati SSL .
    Hide errors from visitors: ?
    
    ### Active Plugins (6) ###
    
    Code Snippets: by Code Snippets Pro – 3.1.1
    Elementor: by Elementor.com – 3.6.6
    Jetpack: by Automattic – 11.0
    SMTP Mail: by PB One – 1.2.13
    Free Downloads WooCommerce Pro: by Square One Media – 3.5.1
    WooCommerce: by Automattic – 6.6.0
    
    ### Inactive Plugins (7) ###
    
    Akismet Anti-Spam: by Automattic – 4.2.4
    Free Downloads WooCommerce: by Square One Media – 3.5.1
    Google Listings and Ads: by WooCommerce – 1.13.5
    Hello Dolly: by Matt Mullenweg – 1.7.2
    MailPoet 3 (New): by MailPoet – 3.90.1
    WooCommerce Menu Cart: by WP Overnight – 2.12.0
    WooCommerce Payments: by Automattic – 4.3.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ?
    
    ### WC Pages ###
    
    Shop base: #6 - /negozio/
    Carrello: ? La pagina non è impostata
    Pagamento: ? La pagina non è impostata
    Il mio account: #9 - /mio-account/
    Termini e condizioni: ? La pagina non è impostata
    
    ### Theme ###
    
    Name: Storefront
    Version: 4.1.0
    Author URL: https://woocommerce.com/
    Child Theme: ? – Se stai modificando WooCommerce o un tema genitore che non hai costruito personalmente
    ti consigliamo di utilizzare un tema child. Vedi: Come creare un tema child
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ? Next scheduled: 2022-06-17 11:16:52 +02:00
    Options: ?
    Notes: 48
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Completato: 38
    Oldest: 2022-06-09 11:56:49 +0200
    Newest: 2022-06-16 07:05:04 +0200
    
    In attesa: 1
    Oldest: 2022-06-17 07:05:04 +0200
    Newest: 2022-06-17 07:05:04 +0200
    
    ### Status report information ###
    
    Generated at: 2022-06-16 20:08:33 +02:00
    
    Thread Starter carlofattori

    (@carlofattori)

    after several attempts I saw that the problem disappears if you enable coupons (WooCommerce->Settings Enable coupons).
    in my case I do not need this option but I will use it as a workaround

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    It sounds like you managed to find a workaround. Thanks for letting us know!

    I’m going to mark this as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘warning … array offset on value of type null …’ is closed to new replies.