We help IT Professionals succeed at work.

Word Press Issue

WO2015
WO2015 used Ask the Experts™
on
Hello,
When you go to page "eliesgrill.com"  you will see the below show up before the page.  Any suggestions how to remove this, and what it is?

Notice: The called constructor method for WP_Widget in cleanretina_custom_tag_widget is deprecated since version 4.3.0! Use

__construct()

instead. in /home/mediterranean1/public_html/wp-includes/functions.php on line 4404

Notice: The called constructor method for WP_Widget in cleanretina_Widget_Adsense_Ad is deprecated since version 4.3.0! Use

__construct()

instead. in /home/mediterranean1/public_html/wp-includes/functions.php on line 4404

Notice: The called constructor method for WP_Widget in cleanretina_Widget_ad_block is deprecated since version 4.3.0! Use

__construct()

instead. in /home/mediterranean1/public_html/wp-includes/functions.php on line 4404
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
John KorchokProduction Manager

Commented:
The messages seem clear. You have three outdated widgets that you must update or remove: cleanretina_custom_tag_widget, cleanretina_Widget_Adsense_Ad and cleanretina_Widget_ad_block. Perhaps these were included with the Clean Retina theme from here: Clean Retina Theme. If so, they have a support forum and should be able to supply an updated version of the theme.
IT Guru
Most Valuable Expert 2011
Commented:
The PHP setting "display errors" is active, but should not be.

The reason it shouldn't be active is because the errors and warnings that are display can leak information that allowed the website to be attacked.

Once the display errors option is inactive, then the usual configuration is that errors are logged to a file.
Terry WoodsIT Guru
Most Valuable Expert 2011

Commented:
Depending on how your hosting is managed, there are different ways to disable the display errors setting.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
1) As Terry Woods said, just disable display errors.

Likely this is in your site wp-config.php file.

// Disable errors emitting to visitors
@ini_set('display_errors', 0);

Open in new window


2) The actual warning message is another matter.

Eventually this warning will prompt to a Fatal in some future PHP version, so best to open a support ticket with the developer of this code to fix their code.

Author

Commented:
Thank you!