• Resolved andreacomplus

    (@andreacomplus)


    Hello, I am testing the update of our server to PHP 8 and the plugin breaks.

    [03-Jan-2023 11:17:57 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php on line 96
    [03-Jan-2023 11:17:57 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: array + string in /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php:104
    Stack trace:
    #0 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(113): AdvancedNotificationsFunctions->register_notifications()
    #1 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(124): AdvancedNotificationsFunctions->notifications_list()
    #2 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(144): AdvancedNotificationsFunctions->active_notifications_list()
    #3 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(50): AdvancedNotificationsFunctions->get_page_notifications()
    #4 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(308): AdvancedNotificationsFunctions->add_enqueue()
    #5 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #6 /var/www/<virtualhost>/www/wp-includes/plugin.php(517): WP_Hook->do_action()
    #7 /var/www/<virtualhost>/www/wp-includes/script-loader.php(2180): do_action()
    #8 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts()
    #9 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #10 /var/www/<virtualhost>/www/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /var/www/<virtualhost>/www/wp-includes/general-template.php(3043): do_action()
    #12 /var/www/<virtualhost>/www/wp-content/themes/jupiter-child/header.php(4): wp_head()
    #13 /var/www/<virtualhost>/www/wp-includes/template.php(783): require_once('...')
    #14 /var/www/<virtualhost>/www/wp-includes/template.php(718): load_template()
    #15 /var/www/<virtualhost>/www/wp-includes/general-template.php(48): locate_template()
    #16 /var/www/<virtualhost>/www/wp-content/themes/jupiter/page.php(8): get_header()
    #17 /var/www/<virtualhost>/www/wp-includes/template-loader.php(106): include('...')
    #18 /var/www/<virtualhost>/www/wp-blog-header.php(19): require_once('...')
    #19 /var/www/<virtualhost>/www/index.php(17): require('...')
    #20 {main}
      thrown in /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php on line 104
    

    Since PHP 7.4 is EOL, do you mind to fix this bug ?

    Thanks

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