• Resolved dlynch027

    (@dlynch027)


    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

    (@arapps92)

    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

    (@arapps92)

    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

    (@dlynch027)

    @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.