• Resolved jhennahane

    (@jhennahane)


    My Managed WordPress host is automatically going to upgrade me to PHP 7.2 because legacy versions of that framework will not be supported in 2019.. I ran the PHP Compatibility WP Plugin and TablePress came back with 2 errors and 2 warnings. If this plugin is not compatibable, we will likely switch to another Table plugin or build it with HTML/CSS. We currently love TablePress and want to know from the developer if there are plans to make it PHP 7.2 compatible.

    Below are the errors:

    FILE: /nas/content/live/cscs/wp-content/plugins/tablepress/views/view-about.php
    ————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————
    186 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    187 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————

    FILE: /nas/content/live/cscs/wp-content/plugins/tablepress/libraries/excel-reader.class.php
    ————————————————————————————————————————————————————-
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ————————————————————————————————————————————————————-
    222 | WARNING | Method name “OLERead::__readData” is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
    240 | WARNING | Method name “OLERead::__readPropertySets” is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
    ————————————————————————————————————————————————————-

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    No worries, everything’s compatible here, please see https://wordpress.org/support/topic/is-tablepress-compatible-with-php-7-and-php-7-1/

    Regards,
    Tobias

    Thread Starter jhennahane

    (@jhennahane)

    Thank you for your quick response! Although, I am asking about PHP 7.2

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    same answer 🙂 (Also for PHP 7.3.)

    Regards,
    Tobias

    Thread Starter jhennahane

    (@jhennahane)

    Perfect!! Hopefully this post helps out lots of people 😀

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hello, I just upgraded to PHP 7.2 and TablePress is working fine. However, it is throwing an error that prevents the plugin to be listed in the plugins menu. In fact, it stops anything from showing alphabetically after it. For example, my Yoast plugin also doesn’t show (but it works).

    I can get to TablePress (and Yoast) by using the search box. I tried disabling TablePress and then it shows up in the menu along with the others that come after “T” so I can confirm that is the problem and it started right after the 7.2 upgrade.

    any ideas? error pasted below

    Thu Dec 13 14:53:16.578796 2018] [php7:error] [pid 9478] [client 68.8.79.83:22931] PHP Fatal error: Uncaught TypeError: Argument 1 passed to TablePress_Admin_Controller::add_plugin_action_links() must be of the type array, string given in /nas/content/live/tystewart888/wp-content/plugins/tablepress/controllers/controller-admin.php:313

    • This reply was modified 5 years, 10 months ago by tystewart888.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi tystewart888,

    this is actually caused by another plugin on your site, TablePress just happens to expose this. There’s a plugin that returns an unallowed value in a filter hook (a string instead of an array). You’ll probably see a plugin in the list that does not have the usual links after its description, version number, and author.

    Regards,
    Tobias

    thanks Tobias. I don’t see any of my plugins that are missing that info but I suppose I’ll need to copy my site to staging and go one by one deactivating them to find the actual problem since it doesn’t sound like it’s TablePress.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    can you provide a screenshot of your list of plugins maybe? Maybe I can spot something.
    Another idea would be to search for “plugin_action_links_” inside the PHP code of the plugins (e.g. using grep if you have shell access to the server). That would show us which plugins use the relevant filter.

    Regards,
    Tobias

    thank you for the offer. I did identify it was WPEditor – https://wordpress.org/plugins/wp-editor/

    Now the next thing to do is figuring out if I actually need that plugin!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    nice find! Thanks for trying this!
    You most likely don’t need this anymore. The plugin and theme editors use CodeMirror natively now and do some sort of error checking. And the post editor is Gutenberg now anyways 🙂

    Regards,
    Tobias

    Hi,

    experiencing massive errors with the plugin…:

    [03-Apr-2019 11:57:34 UTC] PHP Notice: Undefined offset: 4 in /var/www/html/wordpress/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 867

    foreach ( $table_row as $col_idx => $table_cell ) {
    if ( 0 === $table[‘visibility’][‘columns’][ $col_idx ] ) {
    // Column is hidden, so don’t search in it.
    continue;
    }
    // @todo: Cells are not evaluated here, so math formulas are searched.
    if ( false !== stripos( $table_cell, $search_term ) ) {
    // Found the search term in the cell content.
    $query_result[ $search_term ][] = $table_id; // Add table ID to result list
    // No need to continue searching this search term in this table.
    continue 3;
    }
    }

    It apparently has led to my site to crash several times… Can you help?

    Thx a lot!

    /Jens

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This indicates that some table data is corrupted, presumably in the wp_postmeta database table.
    Can you please try saving all your tables again, one by one?

    Regards,
    Tobias

    hmm, that´ll be hundreds of tables… ;-( are you sure this will save the problems?

    thx!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, that’s quite a lot indeed. If possible, I’d like to take a direct look at this on your site. Could you therefore please get in touch by email (the address is in the main plugin file “tablepress.php”)?

    Regards,
    Tobias

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘TablePress Compatibility with PHP 7.2?’ is closed to new replies.