Title: [Plugin: WordPress Popular Posts] No Table / Database Created
Last modified: August 20, 2016

---

# [Plugin: WordPress Popular Posts] No Table / Database Created

 *  Resolved [NanoG5](https://wordpress.org/support/users/nanog5/)
 * (@nanog5)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/)
 * Hi,
    I checked my database but there are no wp_popularpostsdata and wp_popularpostsdatacache
   created during the plugin installation. I give the user database full permission.
   I also check my theme and found <?php wp_head(); ?>. Server is using lighttpd.
   Any advice would be greatly appreciated. Thank you!
 * [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/page/2/?output_format=md)

 *  [northlake](https://wordpress.org/support/users/northlake/)
 * (@northlake)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365329)
 * Using your preferred text editor, open the file wordpress-popular-posts.php. 
   At line 1123, change the entire line from this
 * `register_activation_hook('WordpressPopularPosts', 'wpp_install');`
 * to this
 * `register_activation_hook(__FILE__ , array('WordpressPopularPosts', 'wpp_install'));`
 * Hope this will help.
 *  Thread Starter [NanoG5](https://wordpress.org/support/users/nanog5/)
 * (@nanog5)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365373)
 * Hi Northlake,
    Yes it works! Table created and plugin runs smoothly. Do I have
   to change it back? But I still don’t understand what cause this problem. I’m 
   using all the latest release for wordpress, theme, and plugins. Thank you!
 *  [pascaloChines](https://wordpress.org/support/users/pascalochines/)
 * (@pascalochines)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365652)
 * Hi, good that the change works for u NanoG5, only it is a step forward for me
   as the tables are created with the change on line 1123 but then they are not 
   populated. And I get the same message “Sorry. No data so far.” on the admin interface/
   Wordpress Popular Posts Stats.
    Can someone provide help about it ? I saw this
   plugin running well on a friend s 3.0 but now with my wordpress 3.2.1 and latest
   version of plugin it seems it does not work. Thanks in advance !
 *  [northlake](https://wordpress.org/support/users/northlake/)
 * (@northlake)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365653)
 * > Yes it works! Table created and plugin runs smoothly. Do I have to change it
   > back?
   >  But I still don’t understand what cause this problem. I’m using all 
   > the latest release for wordpress, theme, and plugins.
 * You don’t have to change it back. I think the main cause is the improper use 
   of `registration_activation_hook` function. Probably one of the coders of the
   said plugin thought that the first parameter of the said function is a function
   callback, not a file, which is according to the [documentation](http://codex.wordpress.org/Function_Reference/register_activation_hook).
 * > And I get the same message “Sorry. No data so far.” on the admin interface/
   > Wordpress Popular Posts Stats.
   >  Can someone provide help about it ? I saw this
   > plugin running well on a friend s 3.0 but now with my wordpress 3.2.1 and latest
   > version of plugin it seems it does not work. Thanks in advance !
 * Will do my best to check what’s wrong.
 *  [northlake](https://wordpress.org/support/users/northlake/)
 * (@northlake)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365654)
 * pascaloChines,
 * Logout first from the admin panel. After logging out, you can browse other posts
   in the blog you are working with.
 * The the said plugin won’t count posts when the you are logged-in.
 *  [pascaloChines](https://wordpress.org/support/users/pascalochines/)
 * (@pascalochines)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365656)
 * Dear northlake,
 * thanks a lot for your help : it works. Guess I was in too much a hurry to see
   this nice plugin work so I posted to quickly on this forum, just had to wait 
   one night and guess what, you were right !
    Thanks again,
 * Pascal
 *  [kendimatteoross](https://wordpress.org/support/users/kendimatteoross/)
 * (@kendimatteoross)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365662)
 * Hi
 * I’m having the same problem.
 * I’ve done the change:
 * …from this
 * register_activation_hook(‘WordPressPopularPosts’, ‘wpp_install’);
 * to this
 * register_activation_hook(__FILE__ , array(‘WordPressPopularPosts’, ‘wpp_install’));
 * … but it still does not work.
 * I’ve also checked the following
 * header.php andit is OK.
 * Don’t understand the “is the “admin folder” password protected. Aren’t they all.
   I need to have a password at mydomain.com/wp-admin. This cannot be the folder
   you mean right so…
 *  [David Borrink](https://wordpress.org/support/users/davidborrink/)
 * (@davidborrink)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365670)
 * > Using your preferred text editor, open the file wordpress-popular-posts.php.
   > At line 1123, change the entire line from this
   > register_activation_hook(‘WordPressPopularPosts’, ‘wpp_install’);
   > to this
   > register_activation_hook(__FILE__ , array(‘WordPressPopularPosts’, ‘wpp_install’));
 * I made this change, too, this morning, and I also checked my database to see 
   if the proper tables were set up and I see no wp_popularpostsdata and wp_popularpostsdatacache.
   So I’m not sure what to do now. If there are no tables created, then I know it’s
   not going to work even if I wait 24 hours.
 *  [northlake](https://wordpress.org/support/users/northlake/)
 * (@northlake)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365671)
 * [@kendimatteoross](https://wordpress.org/support/users/kendimatteoross/) and 
   [@davidborrink](https://wordpress.org/support/users/davidborrink/),
 * I forgot one essential step: you have to deactivate the plugin first before changing
   the code! After making changes, you can reactivate the plugin.
 * In case you already made changes, you may deactivate the said plugin and reactivate
   it again.
 * Sorry!
 *  [David Borrink](https://wordpress.org/support/users/davidborrink/)
 * (@davidborrink)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365672)
 * [@northlake](https://wordpress.org/support/users/northlake/),
 * Aha! Like so many computer issues, “rebooting” cures so many things, it’s amazing.
   I now see those two tables on my database. Thank you! Now we should see something
   soon.
 * Thank you!
 *  [kendimatteoross](https://wordpress.org/support/users/kendimatteoross/)
 * (@kendimatteoross)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365673)
 * Thanks.
 * In the end however, I found [http://wordpress.org/extend/plugins/top-10/](http://wordpress.org/extend/plugins/top-10/)
 * Which does pretty much exactly the same thing but started to work the minute 
   I installed it.
 *  [ctechrocks](https://wordpress.org/support/users/ctechrocks/)
 * (@ctechrocks)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365674)
 * Thanks DavidBorrink!
 *  [marty](https://wordpress.org/support/users/smirtman/)
 * (@smirtman)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365700)
 * [@northlake](https://wordpress.org/support/users/northlake/)
 * U R Da Man! I thought all was lost with this plugin until your helping hand reached
   out… all is working as the clever developer intended!
 * Thanks again!!! 🙂
 *  [kayrules](https://wordpress.org/support/users/kayrules/)
 * (@kayrules)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365701)
 * Thanks [@northlake](https://wordpress.org/support/users/northlake/), you saved
   my day ! ;D
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/#post-2365702)
 * [@northlake](https://wordpress.org/support/users/northlake/), thanks for posting
   this fix. I’m adding this patch to the next release of WPP. Good catch!

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/page/2/?output_format=md)

The topic ‘[Plugin: WordPress Popular Posts] No Table / Database Created’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 18 replies
 * 11 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-no-table-database-created/page/2/#post-2365707)
 * Status: resolved