0
votes

Using wordpress, but after some time use, when i deactivate/ativate plugin
or delete post, then white screen with text "Error is getting display".

After enabling the Debug, getting below message Please help

for constructors WP_Widget is since version 4.3.0 of date! Use instead __construct () , in /var/www/vhosts/briefmich.de/httpdocs/wp-includes/functions.php on line 3457

Notice: The used method for constructors WP_Widget is since version 4.3.0 of date! Use instead __construct () , in /var/www/vhosts/briefmich.de/httpdocs/wp-includes/functions.php on line 3457

Notice: The used method for constructors WP_Widget is since version 4.3.0 of date! Use instead __construct () , in /var/www/vhosts/briefmich.de/httpdocs/wp-includes/functions.php on line 3457

Notice: The used method for constructors WP_Widget is since version 4.3.0 of date! Use instead __construct () , in /var/www/vhosts/briefmich.de/httpdocs/wp-includes/functions.php on line 3457

Notice: The used method for constructors WP_Widget is since version 4.3.0 of date! Use instead __construct () , in /var/www/vhosts/briefmich.de/httpdocs/wp- includes/functions.php on line 3457

Notice: The used method for constructors WP_Widget is since version 4.3.0 of date! Use instead __construct () , in /var/www/vhosts/briefmich.de/httpdocs/wp- includes/functions.php on line 3457

Please help me out.

2

2 Answers

1
votes

This is due to a recent change in WordPress to deprecate PHP4 style constructors. Most likely your theme or a plugin you are using is using the old constructor style for a widget that it is implementing.

You can try disabling plugins one by one until the error goes away or look for code in your functions/themes/plugins that extend the WP_Widget class and use function instead of __construct in the class code.

1
votes
add_filter('deprecated_constructor_trigger_error', '__return_false');