WordPress.org

Ready to get started?Download WordPress

Forums

Popularity Contest Problem (9 posts)

  1. kyleofalberta
    Member
    Posted 7 years ago #

    Every time I try to post to my blog, I get the following error:

    Warning: Invalid argument supplied for foreach() in /home/koaca/public_html/blog/wp-content/plugins/popularity-contest.php on line 1295
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3

    What's with that?

  2. thornomad
    Member
    Posted 7 years ago #

    Do you have a plugin called "populairty-contest" by chance ? Is it enabled ? Do you have a call to the plugin in your theme ?

  3. kyleofalberta
    Member
    Posted 7 years ago #

    Yes to all of them. I intentionally installed Popularity Contest and I was hoping to know what the problem is with that.

  4. thornomad
    Member
    Posted 7 years ago #

    Ah - then it looks like there is a problem with the plugin ... sorry, I do not know.

  5. kyleofalberta
    Member
    Posted 7 years ago #

    Oh, well thanks anyways.

  6. Mike Koepke
    Member
    Posted 7 years ago #

    Do you have the Google Sitemap plugin loaded? There is a non conflict with this.

    You might want to refer to this post. http://www.thunderguy.com/semicolon/2005/09/22/popularity-contest-for-pages/

  7. kyleofalberta
    Member
    Posted 7 years ago #

    Thanks dude!

  8. fortyfoxes
    Member
    Posted 7 years ago #

    Even with the fixes by http://www.thunderguy.com/semicolon/2005/09/22/popularity-contest-for-pages/ I am gettig the following errors when I activate the plugin:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.goethe/fortyfoxes/cod.architex.tv/wp-content/plugins/popularity-contest.php on line 263
    Table 'cod_blog.wp_ak_popularity' doesn't exist

    Then when I look at the reports:

    WordPress database error: [Table 'cod_blog.wp_ak_popularity' doesn't exist]
    SELECT p.*, pop.* FROM wp_posts p LEFT JOIN wp_ak_popularity pop ON p.ID = pop.post_id WHERE p.post_status = 'publish' ORDER BY pop.total DESC LIMIT 50

  9. moshu
    Member
    Posted 7 years ago #

    @fortyfoxes

    Don't double and triple post if you don't want all your posts deleted...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags