• When posting some(only sometimes this occurs) polls in widget and setting them on a post specific there are few that return the following warning message displayed at the page/post. It doesn’t help even if I try to rewrite the question and answers…

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in https://www.mysite.com/wp-content/plugins/upm-polls/functions.php on line 229

    Any Ideas where the problem lies?

    link

Viewing 2 replies - 1 through 2 (of 2 total)
  • Open wp-content/plugins/upm-polls/functions.php file in notepad

    Find:
    $pnum = mysql_num_rows(mysql_query("SELECTidFROM“.$wpdb->prefix.”pppm_polls_votesWHEREqid= ".intval($POLL['id']) ));

    Replace:

    $pnum = @mysql_num_rows(mysql_query("SELECTidFROM“.$wpdb->prefix.”pppm_polls_votesWHEREqid= ".intval($POLL['id']) ));

    Hmm this forum board is showing wrong my code, please just add:
    @
    after:
    $pnum =

    So result will be:

    $pnum = @mysql_…….

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error when posting certain polls’ is closed to new replies.