• Resolved mbeerli

    (@mbeerli)


    WP latest, your plugin latest, php 8.0.13

    When going to Appearance – Widget
    I crash in the error.log see below
    I can still add products to the shopping cart, but not showing in the widget, showing via the shortcode

    16-Feb-2022 18:48:36 UTC] PHP Warning:  Undefined array key "wp_paypal_shopping_cart_widgets" in /home/../wp-content/plugins/widget-options/includes/widgets/display.php on line 441
    [16-Feb-2022 18:48:36 UTC] PHP Warning:  Trying to access array offset on value of type null in /home/../wp-content/plugins/widget-options/includes/widgets/display.php on line 441
    [16-Feb-2022 18:49:36 UTC] PHP Warning:  Undefined array key 1 in /home/../wp-content/themes/graphene/inc/widgets.php on line 50
    [16-Feb-2022 18:49:36 UTC] PHP Warning:  Trying to access array offset on value of type null in /home/../wp-content/themes/graphene/inc/widgets.php on line 50
    [16-Feb-2022 18:49:36 UTC] PHP Warning:  Undefined array key "wp_paypal_shopping_cart_widgets" in /home/../wp-content/plugins/widget-options/includes/widgets/display.php on line 441
    [16-Feb-2022 18:49:36 UTC] PHP Warning:  Trying to access array offset on value of type null in /home/../wp-content/plugins/widget-options/includes/widgets/display.php on line 441
    [16-Feb-2022 18:49:36 UTC] PHP Fatal error:  Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given in /home/../wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php:720
    Stack trace:
    #0 /home/../wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php(720): extract()
    #1 /home/../wp-includes/widgets.php(835): show_wp_simple_cart_widget()
    #2 /home/../wp-content/themes/graphene/sidebar-two.php(18): dynamic_sidebar()
    #3 /home/../wp-includes/template.php(770): require_once('/home/beerlimar...')
    #4 /home/../wp-includes/template.php(716): load_template()
    #5 /home/../wp-includes/general-template.php(136): locate_template()
    #6 /home/../wp-content/themes/graphene/footer.php(20): get_sidebar()
    #7 /home/../wp-includes/template.php(770): require_once('/home/beerlimar...')
    #8 /home/../wp-includes/template.php(716): load_template()
    #9 /home/../wp-includes/general-template.php(92): locate_template()
    #10 /home/../wp-content/themes/graphene/single.php(20): get_footer()
    #11 /home/../wp-includes/template-loader.php(106): include('/home/beerlimar...')
    #12 /home/../wp-blog-header.php(19): require_once('/home/beerlimar...')
    #13 /home/../index.php(17): require('/home/beerlimar...')
    #14 {main}
      thrown in /home/../wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 720
    • This topic was modified 2 years, 9 months ago by mbeerli.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    I tested the plugin with a theme that is not compatible with Gutenberg and I saw the same error as mentioned above. I then carried out a test using one of WordPress default themes like Twenty Twelve and the plugin worked.

    The test was carried out using WordPress 5.9 and PHP 8.1.

    Can you make sure your theme is compatible with Gutenberg and WordPress 5.9.

    Thank you.

    • This reply was modified 2 years, 9 months ago by mbrsolution.
    • This reply was modified 2 years, 9 months ago by mbrsolution.
    • This reply was modified 2 years, 9 months ago by mbrsolution.
    Plugin Author mra13

    (@mra13)

    Try the following:

    Remove the widget from the sidebar then add a standard Shortcode block or a text block and use the following shortcode in there for the cart:

    [show_wp_shopping_cart]

    Thread Starter mbeerli

    (@mbeerli)

    As I mentioned the “showing via the shortcode” is ok
    or [show_wp_shopping_cart]
    Just not the Widget.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, are you running the latest version 4.5.7 in your site?

    Regards.

    • This reply was modified 2 years, 9 months ago by mbrsolution.
    Thread Starter mbeerli

    (@mbeerli)

    I was running 4.5.6
    After the upgrade to the new 4.5.7 it works again ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP fatal errors’ is closed to new replies.