Title: PHP 7
Last modified: August 31, 2016

---

# PHP 7

 *  Resolved [Frank](https://wordpress.org/support/users/t-mug/)
 * (@t-mug)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-16/)
 * Hi guys,
 * would love if you could resolve the “deprecated constructor” issue so that PHP
   7 can give the newsletter plugin a boost – without error messages.
 * Thanks.
 * [https://wordpress.org/plugins/newsletters-lite/](https://wordpress.org/plugins/newsletters-lite/)

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

 *  Plugin Author [Tribulant Software](https://wordpress.org/support/users/contrid/)
 * (@contrid)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-16/#post-6908216)
 * [@frank](https://wordpress.org/support/users/frank/)
 * Thank you for your post and we will assist you with this problem.
 * Can you please post the deprecated constructor error/warning here that you’re
   getting? And are you specifically getting it with PHP 7?
 * I look forward to your response.
 *  Thread Starter [Frank](https://wordpress.org/support/users/t-mug/)
 * (@t-mug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-16/#post-6908217)
 * Hi,
 * you need to replace all old-style constructors from **all** your classes and 
   replace them with `__construct()` to be PHP7 compatible.
 * Hope this helps!
 *  [sosacek](https://wordpress.org/support/users/sosacek/)
 * (@sosacek)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-16/#post-6908241)
 * Any progress on php7 compatibility?
    for changing the constructors, you can try
   using this regex class(\s(\w+)\s[\w\s\{]+(?s:(?!function\s\2|function\s__construct).)
   +function\s)\2([\s\(])
 * class$1__construct$3
 * I’m not a regex guru, but I successfully converted the whole plugin, I’d however
   check each replacement manually rather than running it all on auto
 *  Plugin Author [Tribulant Software](https://wordpress.org/support/users/contrid/)
 * (@contrid)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-7-16/#post-6908243)
 * Thank you for your response.
 * We have made this improvement in our latest development.
    To eliminate the deprecated
   constructors and to be PHP7 compatible.
 * We will release an update soon with this included.

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

The topic ‘PHP 7’ is closed to new replies.

 * ![](https://ps.w.org/newsletters-lite/assets/icon-256x256.png?rev=1184265)
 * [Newsletters](https://wordpress.org/plugins/newsletters-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/newsletters-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletters-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletters-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletters-lite/reviews/)

## Tags

 * [bulk email](https://wordpress.org/support/topic-tag/bulk-email/)
 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)
 * [Newsletter Software](https://wordpress.org/support/topic-tag/newsletter-software/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 4 replies
 * 3 participants
 * Last reply from: [Tribulant Software](https://wordpress.org/support/users/contrid/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/php-7-16/#post-6908243)
 * Status: resolved