• Resolved choochus

    (@choochus)


    With the current version of the plugin installed (3.0.2), most content management pages (like edit.php) become inaccessible. Basically, when logged in I can only load the front page and wp-admin. Any other url gives the error

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    To troubleshoot I switched to the current default WP Theme (2024) and disabled all other plugins, but same problem.

    Rolling back I found the last working version to be 2.19.1. Every major version I tried from 2.20 up has the error.

    I didn’t [initially] post a URL because it’s a private site and you can only see content/trigger the error if you log in, but I’m happy to run any command or anything else to troubleshoot.

    Here are the Error Details from the automated email I received:

    WordPress version 6.4.3
    Active theme: Twenty Twenty (version 2.5)
    Current plugin: Seriously Simple Podcasting (version 3.0.2)
    PHP version 8.1.2-1ubuntu2.14
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 167 of the file /var/www/[mysite].com/wp-content/plugins/seriously-simple-podcasting/php/classes/handlers/class-admin-notifications-handler.php. Error message: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/[mysite]/wp-content/plugins/seriously-simple-podcasting/php/classes/handlers/class-admin-notifications-handler.php:167
    Stack trace:
    #0 /var/www/[mysite]/wp-content/plugins/seriously-simple-podcasting/php/classes/handlers/class-admin-notifications-handler.php(167): strpos()
    #1 /var/www/[mysite]/wp-content/plugins/seriously-simple-podcasting/php/classes/handlers/class-admin-notifications-handler.php(106): SeriouslySimplePodcasting\Handlers\Admin_Notifications_Handler->is_nginx()
    #2 /var/www/[mysite]/wp-includes/class-wp-hook.php(324): SeriouslySimplePodcasting\Handlers\Admin_Notifications_Handler->maybe_show_nginx_error_notice()
    #3 /var/www/[mysite]/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /var/www/[mysite]/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /var/www/[mysite]/wp-admin/includes/class-wp-screen.php(424): do_action()
    #6 /var/www/[mysite]/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #7 /var/www/[mysite]/wp-admin/admin.php(212): set_current_screen()
    #8 /var/www/[mysite]/wp-admin/edit.php(10): require_once('...')
    #9 {main}
      thrown

    [Edit to add a URL as I realized this effects my other sites that use this plugin]

    • This topic was modified 2 years, 2 months ago by choochus.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP8 error in class-admin-notifications-handler.php’ is closed to new replies.