• Resolved skoen

    (@skoen)


    I tried updating to the new version 1.11.0 and I am getting a 500 error on the website after update.

    I’m getting the following errors after update:

    [27-Sep-2022 08:29:23 UTC] PHP Fatal error:  Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /var/www/1/200292/www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:67
    Stack trace:
    #0 /var/www/1/200292/www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(67): array_map(Array, NULL)
    #1 /var/www/1/200292/www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(291): WC_Settings_API->get_form_fields()
    #2 /var/www/1/200292/www/wp-content/plugins/woo-vipps/WC_Gateway_Vipps.class.php(556): WC_Settings_API->get_option('enablestaticshi...', 'no')
    #3 /var/www/1/200292/www/wp-content/plugins/woo-vipps/WC_Gateway_Vipps.class.php(132): WC_Gateway_Vipps->init_form_fields()
    #4 /var/www/1/200292/www/wp-content/plugins/woo-vipps/WC_Gateway_Vipps.class.php(63): WC_Gateway_Vipps->__construct()
    #5 /var/www/1/200292/www/wp-content/plugins/woo-vipps/Vipps.class.php(79): WC_Gateway_Vipps::instance()
    #6 /var/www/1/200292/www/wp-content/plugins/woo-vipps/Vipps.class.php(207): Vipps->gateway()
    #7 /var/www/1/200292/www/wp-includes/class-wp-hook.php(307): Vipps->init('')
    #8 /var/www/1/200292/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #9 /var/www/1/200292/www/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #10 /var/www/1/200292/www/wp-settings.php(598): do_action('init')
    #11 /var/www/1/200292/www/wp-config.php(98): require_once('/var/www/1/2002...')
    #12 /var/www/1/200292/www/wp-load.php(50): require_once('/var/www/1/2002...')
    #13 /var/www/1/200292/www/wp-blog-header.php(13): require_once('/var/www/1/2002...')
    #14 /var/www/1/200292/www/index.php(17): require('/var/www/1/2002...')
    #15 {main}
      thrown in /var/www/1/200292/www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php on line 67

    This is part of the system info:
    WooCommerce 6.9.3
    WordPress 6.0.2
    PHP version 8.0.5

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Thank you for reporting; looking into it at once.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Thank you very much for reporting and providing the error log; the crash was due to the specific versions of php, woo and the exact combination of settings in your instance.

    More specifically, there is a new setting in the new version, which default was set to be a different setting in older versions, which was retrieved using ->get_option. This breaks in 8.0 when not set. While testing, this setting was unfortunately set in my setup, so the default was never retreived when testing in 8.0.

    Version 1.11.1 which is just released should fix your issue; I apologize for the downtime.

    Thread Starter skoen

    (@skoen)

    Perfect. Thank you for the quick update. Marking this as solved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaks site after update’ is closed to new replies.