• Resolved supportocubessrl

    (@supportocubessrl)


    Hi,

    After updating TablePress to the latest version (two weeks ago), we have been experiencing a 500 Internal Server Error when saving tables.

    We have already increased all relevant PHP limits on our server (memory_limit, max_input_vars, post_max_size, upload_max_filesize, max_execution_time, and max_input_time) to ensure that TablePress can handle large tables, but the problem persists.

    Interestingly, the tables are still being modified correctly despite the error, which suggests that the issue might be related to the new plugin version itself.

    Could you please advise if this is a known bug or if there is a workaround to prevent the 500 error when saving tables?

    Thank you for your support.

    Best regards,

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

    (@tobiasbg)

    Hi @supportocubessrl!

    Thanks for your post and sorry for the trouble!

    The last couple releases of TablePress didn’t contain specific changes to the table saving code, so this likely has other issues, on the server. You did already try good things here, but if those did not help, we’ll need to find out more details.

    For that, please set the WP_DEBUG constant to true in your site’s “wp-config.php” file, see https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/#wp_debug , or maybe check the server’s error log file (if you don’t have access to that yourself, you web host company’s support team should have access).

    Regards,
    Tobias

    Thread Starter supportocubessrl

    (@supportocubessrl)

    The error occurs in admin-ajax.php when saving or editing a table in TablePress.
    The changes are successfully applied, but the browser still returns a 500 Internal Server Error.
    I also checked the WordPress debug logs, and there is nothing related to TablePress or admin-ajax.php.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Can you please also check the PHP error log files? You might also want to try with the WP_DEBUG_LOG constant, see https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/#wp_debug_log

    Regards,
    Tobias

    Thread Starter supportocubessrl

    (@supportocubessrl)

    I think I’ve found the error:

    [07-Oct-2025 08:27:05 UTC] PHP Fatal error: Uncaught Error: Undefined constant Elementor\Core\Base\Document::CACHE_META_KEY in /var/www/portal/wp-content/plugins/tablepress/models/model-table.php:632
    Stack trace: 0 /var/www/portal/wp-content/plugins/tablepress/models/model-table.php(332): TablePress_Table_Model->_flush_caching_plugins_caches() 1 /var/www/portal/wp-content/plugins/tablepress/controllers/controller-admin_ajax.php(130): TablePress_Table_Model->save() 2 /var/www/portal/wp-includes/class-wp-hook.php(324): TablePress_Admin_AJAX_Controller->ajax_action_save_table() 3 /var/www/portal/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 4 /var/www/portal/wp-includes/plugin.php(517): WP_Hook->do_action() 5 /var/www/portal/wp-admin/admin-ajax.php(192): do_action() 6 {main}thrown in /var/www/portal/wp-content/plugins/tablepress/models/model-table.php on line 632

    It seems that a constant from Elementor—which we use on our WordPress portal—is being called, but it appears that this constant does not exist or is not defined. This issue has arisen after the latest update.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, great find! Looks like you are affected by https://ww.wp.xz.cn/support/topic/cache_meta_key-undefined/ then.

    I assume that you are using a rather old version of Elementor then?

    Regardless, I’m working on a fix that will be released with TablePress 3.2.4 very soon!

    Best wishes,
    Tobias

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

The topic ‘Error 500 only when save or modify the tables’ is closed to new replies.