Title: PHP 7.0 depreaction problem
Last modified: August 31, 2016

---

# PHP 7.0 depreaction problem

 *  [Miguel Useche](https://wordpress.org/support/users/skatox/)
 * (@skatox)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/php-70-depreaction-problem/)
 * hi, the theme throws this 2 errors under PHP 7.0, you just need to change the
   constructors to`__construct()`
 * `( ! ) 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 /var/www/wordpress/wp-content/themes/dazzling/inc/widgets/widget-popular-posts.
   php on line 6`
 * `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 /var/www/
   wordpress/wp-content/themes/dazzling/inc/widgets/widget-social.php on line 7`

Viewing 1 replies (of 1 total)

 *  [Free WP TP](https://wordpress.org/support/users/freewptp/)
 * (@freewptp)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/php-70-depreaction-problem/#post-7374719)
 * Hi Miguel Useche,
 * I hope you are well today and thanks for posting here.
 * It’s the known issue which will be resolved in the future version of theme. In
   the meanwhile you can fix it by using the solution posted in the following reply.
 * [https://colorlib.com/wp/forums/topic/deprecated-methods/#post-53619](https://colorlib.com/wp/forums/topic/deprecated-methods/#post-53619)
 * Best Regards,
    Movin

Viewing 1 replies (of 1 total)

The topic ‘PHP 7.0 depreaction problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/dazzling/2.1.3/screenshot.png)
 * Dazzling
 * [Support Threads](https://wordpress.org/support/theme/dazzling/)
 * [Active Topics](https://wordpress.org/support/theme/dazzling/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/dazzling/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/dazzling/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Free WP TP](https://wordpress.org/support/users/freewptp/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/php-70-depreaction-problem/#post-7374719)
 * Status: not resolved