Viewing 4 replies - 1 through 4 (of 4 total)
  • I think that is true, I just installed the latest version and no generated invitation code is working?

    This SQL looks like a wrong line:
    $res = $wpdb->get_var( $wpdb->prepare(
    “SELECT 1 FROM “.INVITES_PREFIX.”invites WHERE value= %s LIMIT 1″,addslashes(invites_unbeautify($val))));
    if(is_null($res))

    This works for me:

    function invites_ifreal($val)#check if it’s a real invite code
    {global $wpdb;

    $meta_key = ‘miles’;
    $res = $wpdb->get_var( $wpdb->prepare(
    “SELECT COUNT(*) FROM “.INVITES_PREFIX.”invites WHERE value= %d LIMIT 1”,addslashes(invites_unbeautify($val))));
    if(is_null($res))
    {
    echo $wpdb->last_error;
    return FALSE;
    }
    if(!$res)
    return FALSE;
    return TRUE;
    }

    Plugin Author Jehy

    (@jehy)

    Hello! This error is fixed in version 2.50.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error:Wrong invite code’ is closed to new replies.