php Fatal errors and warnings filling logs

  • Marcel

    #51835

    Hello Syahir,
    I have a small site WP5.9, latest GT.
    I switched to Theme 2020 and did not have the warnings.
    I had several issues with multiple plugins:
    – Transposh Translation Filter
    – WP Simple Paypal Shopping cart
    – WP Statistics
    I also reported some Fatal errors
    https://wordpress.org/support/topic/php-warnings-128/#post-15378373

    Is the GT tested with WP 5.9?
    To get to a failure, just install these plugins, then go to Appearance -> Widgets and the error.log file should have entries.
    Once to move the widgets to the inactive Widget area, the site works again

    [19-Feb-2022 05:02:59 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/..wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 341
    [19-Feb-2022 05:02:59 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/..wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php:352
    Stack trace:
    #0 /home/..wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart_misc_functions.php(14): wpspc_cart_actions_handler()
    #1 /home/..wp-includes/class-wp-hook.php(307): wp_cart_init_handler()
    #2 /home/..wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /home/..wp-includes/plugin.php(474): WP_Hook->do_action()
    #4 /home/..wp-settings.php(587): do_action()
    #5 /home/..wp-config.php(90): require_once(‘/home/beerlimar…’)
    #6 /home/..wp-load.php(50): require_once(‘/home/beerlimar…’)
    #7 /home/..wp-blog-header.php(13): require_once(‘/home/beerlimar…’)
    #8 /home/..index.php(17): require(‘/home/beerlimar…’)
    #9 {main}
    thrown in /home/..wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 352
    [19-Feb-2022 05:03:57 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:03:57 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
    [19-Feb-2022 05:03:57 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
    [19-Feb-2022 05:03:57 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
    [19-Feb-2022 05:03:57 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:03:57 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
    [19-Feb-2022 05:03:57 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
    [19-Feb-2022 05:03:57 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
    [19-Feb-2022 05:03:59 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:03:59 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
    [19-Feb-2022 05:03:59 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
    [19-Feb-2022 05:03:59 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
    [19-Feb-2022 05:04:00 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:04:00 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
    [19-Feb-2022 05:04:00 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
    [19-Feb-2022 05:04:00 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
    [19-Feb-2022 05:04:01 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:04:01 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
    [19-Feb-2022 05:04:01 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
    [19-Feb-2022 05:04:01 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
    [19-Feb-2022 05:04:02 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:04:02 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
    [19-Feb-2022 05:04:02 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
    [19-Feb-2022 05:04:02 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
    [19-Feb-2022 05:04:17 UTC] PHP Warning: Undefined array key 1 in /home/..wp-content/themes/graphene/inc/widgets.php on line 50
    [19-Feb-2022 05:04:17 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
    [19-Feb-2022 05:04:17 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
    [19-Feb-2022 05:04:17 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

    Marcel

    #51839

    Some additional notes:
    Widget Options just release one fix 3.7.12 for fatal errors.
    But when I add the widget “WP PayPal Shopping Cart” to the “GT Left Sidebar” I get above warnings.
    Transposh plugin is currently disabled. A new release is in the works.
    WP Statistics I am trying to replicate the issue
    thank you for all your great work.

    [25-Feb-2022 06:40:10 UTC] PHP Warning: Undefined array key 1 in /home/xy/wp-content/themes/graphene/inc/widgets.php on line 50
    [25-Feb-2022 06:40:10 UTC] PHP Warning: Trying to access array offset on value of type null in /home/xy/wp-content/themes/graphene/inc/widgets.php on line 50
    [25-Feb-2022 06:40:10 UTC] PHP Warning: Undefined array key “wp_paypal_shopping_cart_widgets” in /home/xy/wp-content/plugins/widget-options/includes/widgets/display.php on line 441
    [25-Feb-2022 06:40:10 UTC] PHP Warning: Trying to access array offset on value of type null in /home/xy/wp-content/plugins/widget-options/includes/widgets/display.php on line 441

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.