• Resolved prowo24

    (@prowo24)


    Hello,

    I get the following issues displayed by the plugin “PHP7 compatibility checker”.

    FILE: /is/htdocs/wp11082020_GHQ53PBT44/www/portal/wp-content/plugins/tablepress/libraries/excel-reader.class.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
     223 | WARNING | Method name "OLERead::__readData" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     241 | WARNING | Method name "OLERead::__readPropertySets" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /is/htdocs/wp11082020_GHQ53PBT44/www/portal/wp-content/plugins/tablepress/libraries/simplexlsx.class.php
    --------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    --------------------------------------------------------------------------------------------------------------
     602 | WARNING | The use of function dl is discouraged from PHP version 5.3
     604 | WARNING | The use of function dl is discouraged from PHP version 5.3
    --------------------------------------------------------------------------------------------------------------
    
    FILE: /is/htdocs/wp11082020_GHQ53PBT44/www/portal/wp-content/plugins/tablepress/views/view-about.php
    --------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    --------------------------------------------------------------------------------------------------------------
     185 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     186 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
    --------------------------------------------------------------------------------------------------------------
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    There is nothing to worry about. TablePress is fully compatible to PHP 7. For details on those warnings that you are probably seeing in the compatibility checker, please see https://ww.wp.xz.cn/support/topic/tablepress-php-70-compatibility/

    Regards,
    Tobias

    P.S.: Please note that the same question was asked 7 posts below yours already.

    I the PHP7 checker found 2 Errors in the plugin:

    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————–
    185 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    186 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.

    thank you for help

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @mustermann,

    please see the link that I posted above for details on exactly these two error messages, thanks!
    https://ww.wp.xz.cn/support/topic/tablepress-php-70-compatibility/

    Regards,
    Tobias

    Thanks Tobias for the reply, please post it to the support “PHP7 compatibility checker” to fix the tool.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    well, their tool is working totally fine! Their report is absolutely correct! It’s just that they can not detect (because from what I know they do static code analysis) that TablePress contains measures to prevent that the functions in questions are called when PHP 7.0 is used.
    However, I can not simply remove these functions as they are needed when older versions of PHP are used on the server.

    Regards,
    Tobias

    Thanks for the explanation Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

The topic ‘PHP7 Compatibility’ is closed to new replies.