Title: Error with WordPress and PHP8
Last modified: November 3, 2023

---

# Error with WordPress and PHP8

 *  Resolved [gcve](https://wordpress.org/support/users/gcve/)
 * (@gcve)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/)
 * I have a WordPress site that run fines in version 6.3.2 and php7 and clean login
   version 1.9.4.
 * When I switch to PHP8, I get this message at startup :
 * PHP Warning: Undefined array key “title” in \wordpress\wp-content\plugins\clean-
   login\include\widget.php on line 25
 * How can I correct it?
 * Thanks.

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

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/#post-17172259)
 * Sorry we have to prepare a new version for PHP 8.
 * I will fix it asap.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/#post-17172333)
 * I have just did it.
 * Please update and check.
 *  Thread Starter [gcve](https://wordpress.org/support/users/gcve/)
 * (@gcve)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/#post-17172888)
 * Thanks for your response but it seems you got a small mistake :
 * At line 26 you got :
 * $title = apply_filters( ‘widget_title’, $instance[‘title’] ); => this not working
 * corrected to ?
 * $title = apply_filters( ‘widget_title’, $title );
 *  Thread Starter [gcve](https://wordpress.org/support/users/gcve/)
 * (@gcve)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/#post-17172894)
 * With te correction made below the site is running.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/#post-17173917)
 * Ups. Thanks for your suggestions. I have just fixed it.
 * What I had there has no sense because I prepare before what I need to set there.
 * `$title = ( isset( $instance[ 'title' ] ) ) ? $instance[ 'title' ] : __( 'User
   login status', 'clean-login' );`
 * Updated now!

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

The topic ‘Error with WordPress and PHP8’ is closed to new replies.

 * ![](https://ps.w.org/clean-login/assets/icon-256x256.png?rev=1602118)
 * [Clean Login](https://wordpress.org/plugins/clean-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/clean-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/clean-login/)
 * [Active Topics](https://wordpress.org/support/plugin/clean-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clean-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clean-login/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/error-with-wordpress-and-php8/#post-17173917)
 * Status: resolved