Title: Need to fix deprecated constructor method
Last modified: May 22, 2017

---

# Need to fix deprecated constructor method

 *  Resolved [onebc](https://wordpress.org/support/users/onebc/)
 * (@onebc)
 * [9 years ago](https://wordpress.org/support/topic/need-to-fix-deprecated-constructor-method/)
 * After installing this plugin when using PHP7 you get the following warning:
 * > Deprecated: Methods with the same name as their class will not be constructors
   > in a future version of PHP; ftChangeTaxonomyCheckboxlistOrder has a deprecated
   > constructor in /Users/joebloggs/Sites/www.my-site-here.com/server/public_html/
   > wp-content/plugins/categories-in-hierarchical-order/settings.php on line 14
 * This can be resolved locally by changing line 14 from:
 * `function ftChangeTaxonomyCheckboxlistOrder(){`
 * …to…
 * `function __construct(){`
 * However, this change would obviously be lost upon the next update. Can you include
   this in the next update?
    -  This topic was modified 9 years ago by [onebc](https://wordpress.org/support/users/onebc/).

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

 *  Plugin Author [Amit Sonkhiya](https://wordpress.org/support/users/amitaits/)
 * (@amitaits)
 * [9 years ago](https://wordpress.org/support/topic/need-to-fix-deprecated-constructor-method/#post-9204001)
 * Hello [@onebc](https://wordpress.org/support/users/onebc/)
 * Thanks to drawing attention. In next release we will update according to PHP 
   7 requirement.
 * Thnaks
 *  Thread Starter [onebc](https://wordpress.org/support/users/onebc/)
 * (@onebc)
 * [9 years ago](https://wordpress.org/support/topic/need-to-fix-deprecated-constructor-method/#post-9204470)
 * Cool. Thanks for the response. 🙂
 *  Plugin Contributor [K.K.Agarwal](https://wordpress.org/support/users/kka284556/)
 * (@kka284556)
 * [9 years ago](https://wordpress.org/support/topic/need-to-fix-deprecated-constructor-method/#post-9217088)
 * Thanks for the drawing attention and we have updated the plugin.

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

The topic ‘Need to fix deprecated constructor method’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/categories-in-hierarchical-order.
   svg)
 * [Categories in Hierarchical Order](https://wordpress.org/plugins/categories-in-hierarchical-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/categories-in-hierarchical-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/categories-in-hierarchical-order/)
 * [Active Topics](https://wordpress.org/support/plugin/categories-in-hierarchical-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/categories-in-hierarchical-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/categories-in-hierarchical-order/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 3 replies
 * 3 participants
 * Last reply from: [K.K.Agarwal](https://wordpress.org/support/users/kka284556/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/need-to-fix-deprecated-constructor-method/#post-9217088)
 * Status: resolved