Viewing 15 replies - 1 through 15 (of 18 total)
  • 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

    (@nanog5)

    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!

    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 !

    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.

    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.

    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.

    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

    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…

    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.

    @kendimatteoross and @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!

    @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!

    Thanks.

    In the end however, I found https://www.ads-software.com/extend/plugins/top-10/

    Which does pretty much exactly the same thing but started to work the minute I installed it.

    Thanks DavidBorrink!

    @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!!! ??

    Thanks @northlake, you saved my day ! ;D

    Plugin Author Hector Cabrera

    (@hcabrera)

    @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)
  • The topic ‘[Plugin: WordPress Popular Posts] No Table / Database Created’ is closed to new replies.