• Resolved TRGIT

    (@trgit)


    After update from 2.68 to 2.69 polls would not allow registered user to vote after initial vote. I have traced the issue down to logging method and the system not recognizing IP or registered user logging. It tracks everyone as guest with no IP logging. I had to turn off logging in order to work. However this allows users to vote multiple times.

    https://ww.wp.xz.cn/plugins/wp-polls/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lester Chan

    (@gamerz)

    For 2.69, I make a fix to the IP, so they validate the IP validity more strict than last time. Are you using it for internal IPs?

    Thread Starter TRGIT

    (@trgit)

    We have the WP host setup as an internal website for an Intranet. So all users are on our network.

    Plugin Author Lester Chan

    (@gamerz)

    Can you find this line

    https://github.com/lesterchan/wp-polls/blob/master/wp-polls.php#L728

    Replace
    if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false ) {
    With
    if ( filter_var( $ip, FILTER_VALIDATE_IP ) !== false ) {

    Let me know if this works for you

    Thread Starter TRGIT

    (@trgit)

    That fixed the issue. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Logging Issue causing polls not to work’ is closed to new replies.