Title: PHP8 error in class-admin-notifications-handler.php
Last modified: February 20, 2024

---

# PHP8 error in class-admin-notifications-handler.php

 *  Resolved [choochus](https://wordpress.org/support/users/choochus/)
 * (@choochus)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php8-error-in-class-admin-notifications-handler-php/)
 * 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:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/choochus/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp8-error-in-class-admin-notifications-handler-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * (@zahardoc)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php8-error-in-class-admin-notifications-handler-php/#post-17443600)
 * Hi [@choochus](https://wordpress.org/support/users/choochus/),
   Thank you for 
   bringing it to our attention. We’ll fix it in the next plugin release.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/seriously-simple-podcasting/assets/icon-256x256.png?rev=
   970355)
 * [Seriously Simple Podcasting](https://wordpress.org/plugins/seriously-simple-podcasting/)
 * [Support Threads](https://wordpress.org/support/plugin/seriously-simple-podcasting/)
 * [Active Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seriously-simple-podcasting/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/php8-error-in-class-admin-notifications-handler-php/#post-17443600)
 * Status: resolved