Title: Error in php7
Last modified: August 31, 2016

---

# Error in php7

 *  Resolved [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-in-php7-2/)
 * here :
    `Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; flatter_Contact_Info has a deprecated constructor
   in D:\wamp\www\mywesiteg\wp-content\themes\flatter\widgets\contact-info.php on
   line 5`

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-in-php7-2/#post-7454006)
 * and :
    `Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; flatter_Video_Widget has a deprecated constructor
   in D:\wamp\www\mywebsite\wp-content\themes\flatter\widgets\video-widget.php on
   line 5`
 *  Theme Author [oceanwebthemes](https://wordpress.org/support/users/oceanwebthemes/)
 * (@oceanwebthemes)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-in-php7-2/#post-7454048)
 * Dear Madvic
 * We don’t have any folder called widgets inside the theme, so you might have mistaken
   with different flatter theme. Flatter Theme in WordPress.org is [https://wordpress.org/themes/flatter/](https://wordpress.org/themes/flatter/)
   so you might have mistaken with our theme being the same name.
 * If the issue from the [https://wordpress.org/themes/flatter/](https://wordpress.org/themes/flatter/)
   theme, then please download it and re-install it again
 * thank you
 *  Thread Starter [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-in-php7-2/#post-7454054)
 * Mmmm, OK, this error disappear. I d’ont understand…
 * But I have an another one :
    `( ! ) Notice: Undefined index: footer_block in 
   D:\wamp\www\mywebsite\wp-content\themes\flatter\functions.php on line 400`
 *  Theme Author [oceanwebthemes](https://wordpress.org/support/users/oceanwebthemes/)
 * (@oceanwebthemes)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-in-php7-2/#post-7454055)
 * in line 395 of Functions.php
    Replace with this code or just put ! before empty`
   if ( !empty( $_wp_sidebars_widgets ) ) :`
 * Or Wait for the Next update, probably going to do tonight or tomorrow,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error in php7’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [oceanwebthemes](https://wordpress.org/support/users/oceanwebthemes/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/error-in-php7-2/#post-7454055)
 * Status: resolved