Login Redirect: WPMUDEV_Dashboard_Notice has a deprecated error.

I've got this error after activating the login redirect...

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WPMUDEV_Dashboard_Notice has a deprecated constructor in /Applications/MAMP/htdocs/multisite/wp-content/plugins/login-redirect/login-redirect-files/wpmudev-dash-notification.php on line 5

https://static.livechatinc.com/8801096/P7H4SEPWS3/f306db67f55bd491901389db189f6d20/Screen%20Shot%202018-04-13%20at%2012.14.31%20pm.png

  • Dimitris
    • Support Star

    Hey there uol,

    hope you're doing good today! :slight_smile:

    I've just tried to replicate this is a fresh installation using:
    - PHP 7.1.4
    - WordPress 4.8.6
    - WPMUDEV Dashboard 4.5.1
    - Login Redirect 1.0.9
    but the aforementioned error never came up.

    Reviewing the code in the error message though, I can see this line
    function WPMUDEV_Dashboard_Notice() {
    in /wp-content/plugins/login-redirect/login-redirect-files/wpmudev-dash-notification.php line 9.
    Could you please try to replace it with
    function __construct() {
    and check if that removes the error message?

    Looking forward for your results!
    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.