• Resolved bestofbonus

    (@bestofbonus)


    Hello,

    WP-Optimize found the right database with the correct name. However, it shows the database with 0 tables, which causes the optimization to run indefinitely until I log out and log back in. I already tried the refresh button.

    What could be the reason that there are 0 tables detected?

    Cheers,
    Stan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Stan,

    It’s likely that there’s no table prefix defined for your wordpress install.
    Is it the case?
    If not, you may want to check if there’s a PHP error that could prevent the tables from being retrieved.

    Marc.

    Thread Starter bestofbonus

    (@bestofbonus)

    Hello Marc,

    The missing table prefix will likely be it.

    Is there any way to fix this or add this prefix with an active installation to make the plugin find my database?

    Cheers,
    Stan

    Hi Stan,

    You can use the filter add_filter( 'wp_optimize_get_tables_include_table', '__return_true' ); to show all the tables.

    Note that this will also show any other table that doesn’t belong to the WordPress installation, if there are any.

    Marc.

    Thread Starter bestofbonus

    (@bestofbonus)

    Added it in the Code Snippets plugin and the tables are shown now!

    Thanks for the help, Marc. And thanks for a great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Database shows 0 tables’ is closed to new replies.