Title: Not working
Last modified: June 11, 2019

---

# Not working

 *  Resolved [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/)
 * Clicking on button “Run all selected optimizations” [it stuck ](https://i.imgur.com/fSRhw6I.png)
   on “Optimize database tables”.
    No error nor log is created. Also, it [shows nothing](https://i.imgur.com/4ouHqW3.png)
   on tables. How to solve this?

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

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11629580)
 * Hi [@rogeriodec](https://wordpress.org/support/users/rogeriodec/),
 * That’s strange, specially the fact that the tables are empty.
 * Would you mind answering those questions to help see where the problem could 
   be:
    - Which version of WPO are you using?
    - What’s your server config?
    - When you say “No error nor log is created.”, does that include php error logs?
    - You say: ‘Clicking on button “Run all selected optimizations” it stuck on “
      Optimize database tables”.’, could you check if there is an error in the javascript
      console? (open the console before pressing the button). If the spinner is 
      stuck, there’s probably an error somewhere.
 * Thank you,
 * Marc
    -  This reply was modified 7 years, 1 month ago by [Marc Lacroix](https://wordpress.org/support/users/marcusig/).
 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11630778)
 * Better, I created a Sandbox site you can access ([https://sandbox.rogeriodec.com.br/](https://sandbox.rogeriodec.com.br/))
   and you test it. It’s a sandbox, so you can change what you want.
    -  This reply was modified 7 years, 1 month ago by [rogeriodec](https://wordpress.org/support/users/rogeriodec/).
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11630947)
 * Please note that the forum guidelines forbid to post login access: [https://wordpress.org/support/guidelines/#the-bad-stuff](https://wordpress.org/support/guidelines/#the-bad-stuff)
 * You should edit it to remove those informations.
 * In any case, I can’t access php error logs from the admin.
 * So could you confirm this:
 * – When you say “No error nor log is created.”, does that include php error logs?
 *  Plugin Support [statyanenko](https://wordpress.org/support/users/statyanenko/)
 * (@statyanenko)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11631048)
 * [@rogeriodec](https://wordpress.org/support/users/rogeriodec/) This issue happened
   bacause you have not define `$table_prefix = '';` value in `wp-config.php`. Please,
   try to set it to the correct value and check again.
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11631063)
 * To clarify – using an empty table prefix is not supported by WordPress ([https://core.trac.wordpress.org/ticket/16229](https://core.trac.wordpress.org/ticket/16229)),
   and will cause various bugs.
 * Just adding one in `wp-config.php` won’t be sufficient, though – you’ll also 
   need to use phpMyAdmin to edit your table names to add the prefix to them.
 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11631287)
 * I use WordPress for several years and I NEVER used prefixes for tables, since
   I have an individual database for each site in this way, table prefix becomes
   unnecessary.
 * Wordpress works perfectly without table prefixes.
    All plugins work perfectly
   without table prefixes. Except for WP Optimize.
 * In fact, by creating a new WordPress installation on [http://sandbox.rogeriodec.com.br](http://sandbox.rogeriodec.com.br),
   using a table prefix, the plugin worked.
 * This way I see two problems in the plugin:
    1) If it really requires prefixes
   in the tables, it MUST ALERT USER that the plugin will not work without table
   prefixes. 2) The plugin SHOULD NOT REQUIRE TABLES PREFIXES!
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11631898)
 * [@rogeriodec](https://wordpress.org/support/users/rogeriodec/) Thank you, we 
   appreciate your feedback.
 * I’ve looked into it, and the reason for excluding the tables without prefix to
   only process tables that belong to the WordPress installation.
 * To force the optimisation of all your database tables, you can add this filter
   somewhere, for example in a mu-plugin:
 * `add_filter('wp_optimize_get_tables_include_table', '__return_true');`
 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/not-working-2955/#post-11631994)
 * Now with this code, the plugin is working, as it should.
    I leave here the suggestion
   to remove this limitation in future versions of the plugin. Thanks for the answer.
 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/not-working-2955/#post-12089055)
 * I’m reopening this issue because the same problem is occurring with another site.
   
   The environment is the same, ie, I’m not using a table prefix, however, I inserted
   the suggested code above inside my current child’s theme `functions.php`. But
   for this new site, it’s not working, ie, it gets stuck on “optimize database 
   tables” and also doesn’t show any tables: [Image 1](https://i.imgur.com/U2SVY6l.png)
   [Image 2](https://i.imgur.com/sEgPkv4.png)
 * Nevermind, it was my mistake, you can close this post.
    -  This reply was modified 6 years, 8 months ago by [rogeriodec](https://wordpress.org/support/users/rogeriodec/).
    -  This reply was modified 6 years, 8 months ago by [rogeriodec](https://wordpress.org/support/users/rogeriodec/).
    -  This reply was modified 6 years, 8 months ago by [rogeriodec](https://wordpress.org/support/users/rogeriodec/).
    -  This reply was modified 6 years, 8 months ago by [rogeriodec](https://wordpress.org/support/users/rogeriodec/).

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

The topic ‘Not working’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/not-working-2955/#post-12089055)
 * Status: resolved