• Resolved gcve

    (@gcve)


    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

    (@carazo)

    Sorry we have to prepare a new version for PHP 8.

    I will fix it asap.

    Plugin Author Javier Carazo

    (@carazo)

    I have just did it.

    Please update and check.

    Thread Starter gcve

    (@gcve)

    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

    (@gcve)

    With te correction made below the site is running.

    Plugin Author Javier Carazo

    (@carazo)

    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.