Title: PHP8
Last modified: March 4, 2021

---

# PHP8

 *  Resolved [torstensbuechereckede](https://wordpress.org/support/users/torstensbuechereckede/)
 * (@torstensbuechereckede)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php8-3/)
 * Hi,
 * PHP 8.0 seems to cause some problems. This is the result when trying to create
   a comment with Honeypot enabled:
    Fatal error: Uncaught TypeError: Cannot access
   offset of type string on string in /var/www/html/torstens-buecherecke.de/wp-content/
   plugins/honeypot-for-wp-comment/public/class-honeypot-wp-comment-public.php:121
   Stack trace: #0 /var/www/html/torstens-buecherecke.de/wp-includes/class-wp-hook.
   php(287): Honeypot_Wp_Comment_Public->filter_spam() #1 /var/www/html/torstens-
   buecherecke.de/wp-includes/plugin.php(212): WP_Hook->apply_filters() #2 /var/
   www/html/torstens-buecherecke.de/wp-includes/comment.php(847): apply_filters()#
   3 /var/www/html/torstens-buecherecke.de/wp-includes/comment.php(2241): wp_allow_comment()#
   4 /var/www/html/torstens-buecherecke.de/wp-includes/comment.php(3560): wp_new_comment()#
   5 /var/www/html/torstens-buecherecke.de/wp-comments-post.php(25): wp_handle_comment_submission()#
   6 {main} thrown in /var/www/html/torstens-buecherecke.de/wp-content/plugins/honeypot-
   for-wp-comment/public/class-honeypot-wp-comment-public.php on line 121
 * I have checked that line of code but I don’t see the error. Constructor is ok.
   I don’t see things like {} which should be replaced by [].

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

 *  Plugin Author [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * (@prasidhda)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php8-3/#post-14138723)
 * Hi [@torstensbuechereckede](https://wordpress.org/support/users/torstensbuechereckede/),
 * Thanks for pointing out it. I will release the new version with php 8 support
   very soon.
    -  This reply was modified 5 years, 3 months ago by [prasidhda](https://wordpress.org/support/users/prasidhda/).
 *  Plugin Author [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * (@prasidhda)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php8-3/#post-14205998)
 * hi [@torstensbuechereckede](https://wordpress.org/support/users/torstensbuechereckede/),
 * Please update to the latest version 2.2.2.
    The php 8 compatibility issues fixed
   there.
 * Thanks

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

The topic ‘PHP8’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/honeypot-for-wp-comment_f0f0f0.svg)
 * [Honeypot for WP Comment](https://wordpress.org/plugins/honeypot-for-wp-comment/)
 * [Support Threads](https://wordpress.org/support/plugin/honeypot-for-wp-comment/)
 * [Active Topics](https://wordpress.org/support/plugin/honeypot-for-wp-comment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/honeypot-for-wp-comment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/honeypot-for-wp-comment/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/php8-3/#post-14205998)
 * Status: resolved