Support » Plugin: TablePress - Tables in WordPress made easy » Error thrown when trying to access table

  • Resolved Hardo

    (@hardo)


    I am using WP-Table Reloaded plugin, but now when trying to edit a table I get following error: Call to undefined function mysql_real_escape_string()

    I am running the newest version of WordPress.

    My intention is of course to install TablePress.

    What shall I do?

    Regards
    Jonhard

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    First, to confirm: Are you really using the old and outdated “WP-Table Reloaded”, or are you using “TablePress”? If you are not yet using TablePress, you should migrate, by following the steps from https://tablepress.org/migration-from-wp-table-reloaded/

    Now, that error that you mention indicates that something is not configured properly with your site’s database. This mysql_real_escape_string function is only called in very rare circumstances by WordPress (and not by TablePress or WP-Table Reloaded), and those cases indicate that the database software is not up-to-date, or that the database support functions in PHP on the server are not installed.
    Can you please check which version of PHP your site is using?

    Regards,
    Tobias

    Thread Starter Hardo

    (@hardo)

    Hi Tobias,

    Thank you for your quick answer.

    I am indeed running WP-Table Reloaded 🙂 WordPress version 5.6.2 og PHP 7.4.12

    When I am in edit mode on the frontend table page and press Edit I a blank page with the error:
    Error thrown
    Call to undefined function mysql_real_escape_string()

    This is the link:
    http://tvernoe.dk/wp-admin/tools.php?page=wp-table-reloaded&action=edit&table_id=1

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the details! Can you check if the php-mysqli extension is installed on the server? This can be done by the server admin by running

    sudo apt install php-mysqli
    

    Other than that, I don’t really have ideas on what could be causing this.

    You could maybe also try again after temporarily deactivating all other plugins, to rule out interference by another plugin.

    Unrelated to this issue, you really should migrate to TablePress.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error thrown when trying to access table’ is closed to new replies.