Title: php7.x+ support?
Last modified: November 27, 2018

---

# php7.x+ support?

 *  Resolved [dlynch027](https://wordpress.org/support/users/dlynch027/)
 * (@dlynch027)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php7-x-support/)
 * I just ran my site through PHP Compatibility Checker and noticed a lot of warnings
   with functions that were dated back to php4. . .
 *     ```
       FILE: /var/www/site.com/htdocs/wp-content/plugins/woocommerce-products-by-category/classes/class-recently-viewed-products-by-category.php
       ---------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ---------------------------------------------------------------------------------------------------------------------------------------------------
        27 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       ---------------------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /var/www/site.com/htdocs/wp-content/plugins/woocommerce-products-by-category/classes/class-recent-products-by-category.php
       ------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ------------------------------------------------------------------------------------------------------------------------------------------
        27 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       ------------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /var/www/site.com/htdocs/wp-content/plugins/woocommerce-products-by-category/classes/class-bestsellers-products-by-category.php
       -----------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       -----------------------------------------------------------------------------------------------------------------------------------------------
        27 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       -----------------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /var/www/site.com/htdocs/wp-content/plugins/woocommerce-products-by-category/classes/class-top-rated-products-by-category.php
       ---------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ---------------------------------------------------------------------------------------------------------------------------------------------
        27 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       ---------------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /var/www/site.com/htdocs/wp-content/plugins/woocommerce-products-by-category/classes/class-featured-products-by-category.php
       --------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------
        29 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       --------------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /var/www/site.com/htdocs/wp-content/plugins/woocommerce-products-by-category/classes/class-onsale-by-category.php
       ---------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ---------------------------------------------------------------------------------------------------------------------------------
        28 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       ---------------------------------------------------------------------------------------------------------------------
       ```
   
 * any word on if this plugin will get updated to support moder versions of PHP.
   WordPress 5.0 is coming out soon and it will be supporting 7.3. This test was
   only done against 7.0, so I can only imagine how many more errors would pop up
   with a test against 7.1 and 7.2

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

 *  Plugin Contributor [Andrew](https://wordpress.org/support/users/arapps92/)
 * (@arapps92)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php7-x-support/#post-10952739)
 * Hi, thanks for running the checker. I’ll certainly fix those errors. I’ll let
   you know when the update is available.
 *  Plugin Contributor [Andrew](https://wordpress.org/support/users/arapps92/)
 * (@arapps92)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php7-x-support/#post-10952854)
 * I’ve just noticed that your results are referring to files that aren’t in this
   plugin. There is no /classes/ folder. Also the folder name for this plugin is/
   woo-products-by-category/ not /woocommerce-products-by-category/, so I think 
   this is another plugin.
 * I have run my plugin installation on my website through the PHP Compatibility
   Checker and it is in fact PHP 7.2 compatible.
 *  Thread Starter [dlynch027](https://wordpress.org/support/users/dlynch027/)
 * (@dlynch027)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php7-x-support/#post-10953646)
 * [@arapps92](https://wordpress.org/support/users/arapps92/) oh, wow. such similar
   names. I’m sorry for the confusion

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

The topic ‘php7.x+ support?’ is closed to new replies.

 * ![](https://ps.w.org/woo-products-by-category/assets/icon-256x256.jpg?rev=2414798)
 * [List Products By Category Widget for WooCommerce](https://wordpress.org/plugins/woo-products-by-category/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-products-by-category/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-products-by-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-products-by-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-products-by-category/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [dlynch027](https://wordpress.org/support/users/dlynch027/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/php7-x-support/#post-10953646)
 * Status: resolved