Title: Problem with retrieving plugin&#8217;s database table
Last modified: November 7, 2018

---

# Problem with retrieving plugin’s database table

 *  [pixelbrad](https://wordpress.org/support/users/pixelbrad/)
 * (@pixelbrad)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problem-with-retrieving-plugins-database-table/)
 * Hello,
 * You might want to be careful storing the Simple Documentation table as a site
   option. I had to migrate a website from one environment to another, where the
   database prefixes were completely different.
 * Due to the plugin storing the Simple Documentation table, complete with the prefix,
   in the WordPress options table, the plugin kept trying to load data from a table
   that didn’t exist, and so aside from being unable to see all the content that
   migrated over, I was seeing database errors.
 * Old database table, probably from when this plugin was installed: `wp_simpledocumentation`.
   
   New table post-migration that this plugin couldn’t locate: `local_simpledocumentation`.
 * I guess you probably have this logic in the `client-documentation.php` file for
   compatibility as the plugin matured. But this turned out to be a problem during
   migration.
 * Thanks,
    B
    -  This topic was modified 7 years, 6 months ago by [pixelbrad](https://wordpress.org/support/users/pixelbrad/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [mathieuhays](https://wordpress.org/support/users/mathieuhays/)
 * (@mathieuhays)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problem-with-retrieving-plugins-database-table/#post-10858120)
 * Hi [@pixelbrad](https://wordpress.org/support/users/pixelbrad/),
 * Thanks for reporting it!
 * Storing the table name is definitely something I want to go away from but I’m
   a bit stuck due to backward-compatiblity as you mentioned.
 * I’ll probably do an update that will migrate the table of the oldest installs.
   
   This will only affect people that installed the plugin when it was version 1.0.0
   so probably not that many people.

Viewing 1 replies (of 1 total)

The topic ‘Problem with retrieving plugin’s database table’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/client-documentation_fdfdfd.svg)
 * [Simple Documentation](https://wordpress.org/plugins/client-documentation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/client-documentation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/client-documentation/)
 * [Active Topics](https://wordpress.org/support/plugin/client-documentation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/client-documentation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/client-documentation/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mathieuhays](https://wordpress.org/support/users/mathieuhays/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/problem-with-retrieving-plugins-database-table/#post-10858120)
 * Status: not resolved