• trgfineart

    (@trgfineart)


    I am receiving a “critial error” message and email when I navigate to Appearance->Menus. The email includes the following:

    Error Details
    =============
    An error of type E_ERROR was caused in line 558 of the file /home/ubuntu/www.trgfineart.com/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-payments-admin.php. Error message: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /home/ubuntu/www.trgfineart.com/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-payments-admin.php:558
    Stack trace:
    #0 /home/ubuntu/www.trgfineart.com/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-payments-admin.php(558): array_merge()
    #1 /home/ubuntu/www.trgfineart.com/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-payments-admin.php(632): WC_Payments_Admin->register_payments_scripts()
    #2 /home/ubuntu/www.trgfineart.com/wp-includes/class-wp-hook.php(308): WC_Payments_Admin->enqueue_payments_scripts()
    #3 /home/ubuntu/www.trgfineart.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /home/ubuntu/www.trgfineart.com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/ubuntu/www.trgfineart.com/wp-content/plugins/megamenu/megamenu.php(169): do_action()
    #6 /home/ubuntu/www.trgfineart.com/wp-includes/class-wp-hook.php(308): Mega_Menu->admin_enqueue_scripts()
    #7 /home/ubuntu/www.trgfineart.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #8 /home/ubuntu/www.trgfineart.com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/ubuntu/www.trgfineart.com/wp-admin/admin-header.php(118): do_action()
    #10 /home/ubuntu/www.trgfineart.com/wp-admin/nav-menus.php(675): require_once('...')
    #11 {main}
      thrown

    The error goes away when I Deactivate Mega Menu and returns when I activate it. See #5 above for reference to Mega Menu.

    Any help would be most appreciated. I tried Clearing CSS Cache & deleting cache etc…

    Thanks,

    – Frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Frank,

    Thanks for reporting this. I have tried fixing this from my end, but I can’t, so the fix will need to be made within WooCommerce Payments itself. I have submitted a bug report here:

    https://github.com/Automattic/woocommerce-payments/issues/5137

    Regards,
    Tom

    Thread Starter trgfineart

    (@trgfineart)

    Okay, thanks for the quick response and submitting the issue with WooCommerce Payments. Any idea how long they might take to fix the issue?

    Also, is there any workaround or code change I could do? I am also a developer so I know php and my site. Is that code change you suggested something I could do or is that not really worth touching?

    Plugin Author megamenu

    (@megamenu)

    Hi,

    Yes you could make that change yourself and it will get it working (until the next update for WooCommerce Payments, at which point the change would be reverted and you’d have to make the edit again)

    Regards,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Appearance -> Menu Error’ is closed to new replies.