Title: PHP7 non-compatibility
Last modified: October 21, 2016

---

# PHP7 non-compatibility

 *  Resolved [davidbe929](https://wordpress.org/support/users/davidbe929/)
 * (@davidbe929)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-non-compatibility/)
 * I am forced to upgrade to PHP7 in January but PHP Compatibility Checker reports
   the following errors for the Style plugin:
 * FILE: wp-content/plugins/styles/classes/csstidy/class.csstidy.php
    249 | ERROR
   | Use of deprecated PHP4 style class constructor is not supported since PHP 7
 * FILE: wp-content/plugins/styles/classes/csstidy/class.csstidy_optimise.php
    50
   | ERROR | Use of deprecated PHP4 style class constructor is not supported since
   PHP 7
 * FILE: wp-content/plugins/styles/classes/csstidy/class.csstidy_print.php
    69 |
   ERROR | Use of deprecated PHP4 style class constructor is not supported since
   PHP 7
 * FILE: wp-content/plugins/styles/classes/styles-font-menu/classes/markdown/markdown.
   php
    223 | ERROR | Use of deprecated PHP4 style class constructor is not supported
   since PHP 7
 * Is there any chance for an update to make styles PHP7 compatible by the end of
   the year?

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

 *  Plugin Author [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-non-compatibility/#post-8340738)
 * I’m not actively supporting Styles at the moment, so this update is unlikely.
   A contracted PHP developer could make the change for you and submit a patch via
   Github. Two competitors have also come up in the years since I last updated —
   CSSHero and SiteOrigin CSS.
 *  Plugin Author [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-non-compatibility/#post-8340754)
 * These changes may resolve the issue: [https://github.com/stylesplugin/styles/commit/d8c7913f260d8d6ef4ec3e9ef0d9e33f3feb3d9d](https://github.com/stylesplugin/styles/commit/d8c7913f260d8d6ef4ec3e9ef0d9e33f3feb3d9d)
 * I don’t have my development environment for Styles available, so it’s untested—
   give it a try and let me know.
 * A .zip of the `f/php7` branch may be downloaded here: [https://github.com/stylesplugin/styles/archive/f/php7.zip](https://github.com/stylesplugin/styles/archive/f/php7.zip)
 *  Thread Starter [davidbe929](https://wordpress.org/support/users/davidbe929/)
 * (@davidbe929)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-non-compatibility/#post-8340890)
 * I made those four changes and PHP Compatibility Checker now shows Styles to be
   PHP7 compatible. Many thanks!

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

The topic ‘PHP7 non-compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/styles_d6d5d3.svg)
 * [Styles](https://wordpress.org/plugins/styles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/styles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/styles/)
 * [Active Topics](https://wordpress.org/support/plugin/styles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/styles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/styles/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [davidbe929](https://wordpress.org/support/users/davidbe929/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php7-non-compatibility/#post-8340890)
 * Status: resolved