WordPress.org

Ready to get started?Download WordPress

Forums

Quick Flag
IP info not inside database (2 posts)

  1. thomasfals
    Member
    Posted 2 years ago #

    When echoing the short code or using your example `if(isset($_SERVER['HTTP_X_FORWARD_FOR']))
    $ip = $_SERVER['HTTP_X_FORWARD_FOR'];
    else
    $ip = $_SERVER['REMOTE_ADDR'];

    if(function_exists('quick_flag_get_info')){
    if(($info = quick_flag_get_info($ip)) != FALSE )
    $flag = quick_flag_get_flag($info);
    else
    $flag = 'IP info not inside database.';
    } else
    $flag = 'Quick Flag plugin not installed or not activated.';`

    I get the output: IP info not inside database. I have taken a look at the database and all the country and IP info is there. I have tried accessing the site via different IP addresses and country locations (remote servers and VPN) and nothing seems to work.

    http://wordpress.org/extend/plugins/quick-flag/

  2. Marko-M
    Member
    Plugin Author

    Posted 2 years ago #

    Hello thanks for your report. Quick Flag is using ip-countryside database and even though it is very accurate it doesn't have info about every single IP address out there. 'IP info not inside database.' means that your current IP address is not amongst 270 000 IP address ranges inside database. You can test this database on ip-countryside demo page or at my demo sites for plugins that use Quick Flag 1, 2. If all these demo sites can detect your country and your Quick Flag install spits 'IP info not inside database.' then this is Quick Flag bug, please report back and I'll do my best to fix it. Also some people have tested on their LAN, have to mention that Quick Flag only works on Internet not on local networks.

    Regards,
    Marko

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags