• Resolved katryn01

    (@katryn01)


    The plugin is not compatible with PHP version 8.0 or higher.
    It’s not displaying anything and breaks the site template.
    Any chance you can help me please?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you explain why you believe that TablePress is causing this? Are you seeing any error messages somewhere, like in the server’s error log file?
    Can you maybe enable debug output by setting the WP_DEBUG constant to true in your site’s wp-config.php file, see https://ww.wp.xz.cn/support/article/debugging-in-wordpress/#wp_debug ?

    Regards,
    Tobias

    Thread Starter katryn01

    (@katryn01)

    Hi Tobias,

    Thank you for your quick response.

    1. When I changed the PHP version to 8.1 the error occurred.
    2. I disabled all the other plugins and used the default theme to see for any possible cause, but still the table isn’t showing.

    This is the recent date from the error log
    =================

    2022/11/17 13:03:56 [error] 89076#89076: *671 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method TablePress_Row_Order::turn_off_caching() cannot be called statically in /www/resourceinsight_720/public/wp-includes/class-wp-hook.php:308
    Stack trace:
    #0 /www/resourceinsight_720/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #1 /www/resourceinsight_720/public/wp-content/plugins/tablepress/controllers/controller-frontend.php(579): apply_filters('tablepress_tabl...', Array, Array)
    #2 /www/resourceinsight_720/public/wp-includes/shortcodes.php(355): TablePress_Frontend_Controller->shortcode_table(Array, '', 'table')
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /www/resourceinsight_720/public/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(table)...', 'do_shortcode_ta...', '[table id=8 dat...')
    #5 /www/resourceinsight_720/public/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3012): do_shor" while reading upstream, client: 180.191.146.249, server: staging-resourceinsight.kinsta.cloud, request: "GET /publications/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.1-fpm-resourceinsight.sock:", host: "staging-resourceinsight.kinsta.cloud:63615", referrer: "https://staging-resourceinsight.kinsta.cloud/about/"
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks a lot for this debug log! That really helped a lot!
    In fact, it shows that the issue is not in TablePress itself, but in the TablePress Table Row Order Extension, that you are also using on your site.

    The code of the Extension is missing a keyword, which now causes the PHP 8 error. Interestingly, I had fixed this issue over 8 years ago, but for some reason had not yet released it with a new version of the Extension… Sorry about that.

    I have now done that, so that version 1.3 of the TablePress Table Row Order Extension is not available at https://tablepress.org/extensions/table-row-
    order/
    Please download that and update the Extension on your site’s “Plugins” screen and then try again. (You will have to do that manually as the Extension can not get automatic updates, as it’s not in the ww.wp.xz.cn plugin repository.)

    Thanks again for reporting this!

    Regards,
    Tobias

    Thread Starter katryn01

    (@katryn01)

    Hi Tobias,

    This is now resolved! Thank you so much!

    Plugin Author Tobias Bäthge

    (@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!

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

The topic ‘TablePress Compatibility Issue – PHP 8.0 or higher’ is closed to new replies.