Title: PHP 8 compatibility
Last modified: December 15, 2020

---

# PHP 8 compatibility

 *  Resolved [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-compatibility-3/)
 * I am trying your plugin and looks like it isn’t compatible with php 8 yet.
 * WordPress version 5.6
    Current theme: Seath 2 (version 2.0) Current plugin: Stop
   Spammers (version 2020.6.2) PHP version 8.0.0
 * Error Details
    ============= An error of type E_ERROR was caused in line 107 
   of the file /home/seath1978/public_html/wp-content/plugins/stop-spammer-registrations-
   plugin/includes/stop-spam-utils.php. Error message: Uncaught ArgumentCountError:
   Too few arguments to function sfs_ErrorHandler(), 4 passed and exactly 5 expected
   in /home/seath1978/public_html/wp-content/plugins/stop-spammer-registrations-
   plugin/includes/stop-spam-utils.php:107 Stack trace: #0 [internal function]: 
   sfs_ErrorHandler(8, ‘iconv(): Detect…’, ‘/home/seath1978…’, 409) #1 /home/seath1978/
   public_html/wp-content/plugins/backwpup/vendor/symfony/polyfill-mbstring/Mbstring.
   php(409): iconv(‘ASCII’, ‘ASCII’, ‘a:241:{s:11:”ch…’) #2 /home/seath1978/public_html/
   wp-content/plugins/backwpup/vendor/symfony/polyfill-mbstring/bootstrap.php(45):
   Symfony\Polyfill\Mbstring\Mbstring::mb_check_encoding(‘a:241:{s:11:”ch…’, ‘ASCII’)#
   3 /home/seath1978/public_html/wp-includes/wp-db.php(3007): mb_check_encoding(‘
   a:241:{s:11:”ch…’, ‘ASCII’) #4 /home/seath1978/public_html/wp-includes/wp-db.
   php(3118): wpdb->check_ascii(‘a:241:{s:11:”ch…’) #5 /home/seath1978/public_html/
   wp-includes/wp-db.php(2453): wpdb->strip_invalid_text(Array) #6 /home/seath1978/
   public_html/wp-includes/wp-db.php(2324): wpdb->process_fields(‘w8pk9s5wa2_opti…’,
   Array, NULL) #7 /home/seath1978/public_html/wp-includes/option.php(441): wpdb-
   >update(‘w8pk9s5wa2_opti…’, Array, Array) #8 /home/seath1978/public_html/wp-content/
   plugins/stop-spammer-registrations-plugin/stop-spammer-registrations-new.php(
   313): update_option(‘ss_stop_sp_reg_…’, Array) #9 /home/seath1978/public_html/
   wp-content/plugins/stop-spammer-registrations-plugin/settings/ss_options.php(
   230): ss_set_options(Array) #10 /home/seath1978/public_html/wp-content/plugins/
   stop-spammer-registrations-plugin/settings/settings.php(191): require_once(‘/
   home/seath1978…’) #11 /home/seath1978/public_html/wp-content/plugins/stop-spammer-
   registrations-plugin/settings/settings.php(152): include_setting(‘ss_options.
   php’) #12 /home/seath1978/public_html/wp-includes/class-wp-hook.php(287): ss_options(”)#
   13 /home/seath1978/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”,
   Array) #14 /home/seath1978/public_html/wp-includes/plugin.php(484): WP_Hook->
   do_action(Array) #15 /home/seath1978/public_html/wp-admin/admin.php(259): do_action(‘
   stop-spammers_p…’) #16 {main} thrown

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Anonymous User
 * (@anonymized-5837566)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-compatibility-3/#post-13794900)
 * Thanks [@seath](https://wordpress.org/support/users/seath/), it’s on the list!
 *  Thread Starter [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-compatibility-3/#post-13830209)
 * Two updates and still no PHP 8 support.
 *  Anonymous User
 * (@anonymized-5837566)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-compatibility-3/#post-13830492)
 * It’s a big to-do list. 😉
 * That’s cool that you’re an early adopter, but I’m sure you can also understand
   that means it’s going to take a minute for everyone else to catch up.
 * WordPress itself only _just barely_ added support for PHP 8, and only some 0.001%(
   I’m not even sure, because it doesn’t fully appear on the pie chart) of WordPress
   users are on PHP 8:
 * [https://wordpress.org/about/stats/](https://wordpress.org/about/stats/)
 * I’ve only read about PHP 8; I haven’t even installed it on any of my own projects
   yet to test it out.
 * It’s going to be a few more months at the very least before we dig in, and then
   it’s going to be a question of how easy it’ll be to upgrade the code if there
   are major blocks we need to rewrite.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP 8 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/stop-spammer-registrations-plugin/assets/icon-256x256.png?
   rev=3377746)
 * [Stop Spammers Classic](https://wordpress.org/plugins/stop-spammer-registrations-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stop-spammer-registrations-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stop-spammer-registrations-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/stop-spammer-registrations-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stop-spammer-registrations-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stop-spammer-registrations-plugin/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-compatibility-3/#post-13830492)
 * Status: resolved