Title: PHP 8 Compatibility Fix.
Last modified: September 27, 2024

---

# PHP 8 Compatibility Fix.

 *  [luanluta](https://wordpress.org/support/users/luanluta/)
 * (@luanluta)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-8-compatibility-fix/)
 * I’ve updated the plugin so that it works with PHP 8.
 * You can find the new plugin on GitHub: [https://github.com/luanluta/Easy-Columns-PHP-8-Update](https://github.com/luanluta/Easy-Columns-PHP-8-Update)
   
   Or direct download it [here.](https://github.com/luanluta/Easy-Columns-PHP-8-Update/raw/refs/heads/main/easy-columns-2.1.3.1.zip)
 * The issue was that the plugin was using an outdated method to create a class.
   The only change has been to update the method used in `easy-columns.php` on line
   35 from:
 * `function EasyColumns() { //constructor`
 * To
 * `function __construct() { //constructor`
 * Tested up to PHP 8.3.
    -  This topic was modified 1 year, 8 months ago by [luanluta](https://wordpress.org/support/users/luanluta/).
      Reason: Pressed submit button too soon

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

 *  [yvallejo](https://wordpress.org/support/users/yvallejo/)
 * (@yvallejo)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-fix/#post-18116416)
 * Thanks [@luanluta](https://wordpress.org/support/users/luanluta/) , a single 
   detail
 * this warning message is displayed
 * `**Warning**: Undefined property: EasyColumns::$use_custom in` **plugins/easy-
   columns/easy-columns.php** on line **233**
 *  [caybaratrogerwestcom](https://wordpress.org/support/users/caybaratrogerwestcom/)
 * (@caybaratrogerwestcom)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-fix/#post-18244236)
 * The fix for the error on line 233, should be as simple as changing $this->use_custom
   to $this->options[‘use_custom’].
 * So once you’re done, it should look as follows:
 * <?php if($this->options[‘use_custom’] || !empty($this->options[‘custom_css’])){?
   >

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

The topic ‘PHP 8 Compatibility Fix.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-columns_abb3b5.svg)
 * [WP Easy Columns](https://wordpress.org/plugins/easy-columns/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-columns/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-columns/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-columns/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-columns/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-columns/reviews/)

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)
 * [php 8](https://wordpress.org/support/topic-tag/php-8/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 2 replies
 * 3 participants
 * Last reply from: [caybaratrogerwestcom](https://wordpress.org/support/users/caybaratrogerwestcom/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-fix/#post-18244236)
 * Status: not resolved