Deprecated: Methods

Hi,

I’m seeing the following error when I enabled debug on my site (due to the site becoming unavailable from time to time). My hosting provider (One.com) tell me thats cuased by this error timing out. - Sounds rubbish to me, but there does seem to ba a compatability problem with this theme on the latest version of WP.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Import has a deprecated constructor in /customers/9/0/3/wegmc.org/httpd.www/wp-content/plugins/wordpress-importer/wordpress-importer.php on line 38 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dazzling_popular_posts_widget has a deprecated constructor in /customers/9/0/3/wegmc.org/httpd.www/wp-content/themes/dazzling/inc/widgets/widget-popular-posts.php on line 6 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dazzling_social_widget has a deprecated constructor in /customers/9/0/3/wegmc.org/httpd.www/wp-content/themes/dazzling/inc/widgets/widget-social.php on line 7

Should I worry about this? Is there a fix needed?

Kind regards.

Henry Carpenter-Clawson

Hi Henry Carpenter-Clawson,

I hope you are well today and thanks for posting here.

This is a simple PHP warning/notice and most of the time it doesn’t affect functionality of site so it is nothing to worry about!

You can resolve these warning messages by overwriting the following Dazzling theme files with the attached modified files.

/wp-content/themes/dazzling/widgets/widget-popular-posts.php
/wp-content/themes/dazzling/widgets/widget-social.php

Best Regards,
Movin