WordPress.org

Ready to get started?Download WordPress

Forums

WPGPlus
[resolved] Failing for German users (66 posts)

  1. Ali Sajjad
    Member
    Posted 2 years ago #

    Dual-factor authentication isn't a WordPress thing, it's a Google+ thing.

    See Advanced Sign-in Security

    If you have this "2 step verification" enabled in your google account wpgplus will fail.

    Have you looked at what is in the debug file in your wpgplus directory?

    The plugin tries to log you in to GPlus itself, via Curl, so it shouldn't matter if you are logged in to GPlus in your browser or not

    Oh, No I don't have any "2 step verification" in my G+ , Just my G+ has 1 step to login!
    in here : site.com/wp-admin/options-general.php?page=WPGPlus.php
    I put my gmail email and password... I downloaded and installed this plugin form wordpress.org all of files is correct and complete but this plugin don't work ! I don't see where table in DB ? all of my DB tables is :

    wp_BWPS_d404
    wp_BWPS_ll
    wp_BWPS_lockouts
    wp_commentmeta
    wp_comments
    wp_contact_form_7
    wp_links
    wp_options
    wp_postmeta
    wp_posts
    wp_redirection_groups
    wp_redirection_items
    wp_redirection_logs
    wp_redirection_modules
    wp_smileys
    wp_terms
    wp_termsmeta
    wp_term_relationships
    wp_term_taxonomy
    wp_usermeta
    wp_users
    wp_wps_bans
    wp_wps_logins
    wp_wps_logs

    where data of this plugin come to save?
    help me please
    thanks :)

  2. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    WPGplus stores its data (username and password) in the wp_options table.

    It stores the "message" you created in the postmeta table.

    It also tries to write to a debug.txt file inside wp-content/plugins/wpgplus/

    That's the one I was suggesting you look at to see what problems it might reveal

  3. Ali Sajjad
    Member
    Posted 2 years ago #

    Oh I see debug.txt I did not see any problem in debug.txt... WPGplus can not work in my WP right now... :(
    debug.txt content :

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  4. Ali Sajjad
    Member
    Posted 2 years ago #

    debug.txt content is :
    http://pastebin.com/22nixsBv

  5. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    @Ali - looking at the debug.txt you posted, notice that at lines 86-90, the response from Google+ is this:

    <?xml version="1.0" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Google</title>
    <meta http-equiv="refresh" content="0; url='http://www.google.com.af/accounts/SetSID?ssdc=1&sidt=ALWU2cvgakuOMEVTV0Cc9kPHuEtTYJzPAjbvutXp3w8pAo6MChcl10drmLNS1fpF5UKY54a%2B37s5zpAtpeZ8Hvlnh21YfOy3v8odhPB50Z1K5rFi28AsFcTnVD%2BBChvO5QxOyQUjHcEfylhrUFWGS6vt24%2B%2BEq%2BNuB%2BHAB%2F5N5IufIrBurT%2BcK4S843y9JTVwUH61oBE6uUaJVewOQB9LwIqgMUwIETajIUs73krmwzlPtsHAqPFJUiwvJEkzeOTh2WhgeHp3QTWrxqXSdBnINI4lnq7AFPimg%3D%3D&continue=https%3A%2F%2Faccounts.google.com%2FServiceLogin%3Fpassive%3Dtrue%26go%3Dtrue%26btmpl%3Dmobile_tier2%26continue%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26followup%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26service%3Dwebupdates%26fss%3D1&dbus=DE.2'" /></head>
    <body> <a href="http://www.google.com.af/accounts/SetSID?ssdc=1&sidt=snip&continue=https%3A%2F%2Faccounts.google.com%2FServiceLogin%3Fpassive%3Dtrue%26go%3Dtrue%26btmpl%3Dmobile_tier2%26continue%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26followup%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26service%3Dwebupdates%26fss%3D1&dbus=DE.2"> Click here</a> to continue.</body></html>

    Not sure what's going on there, but for some reason Google+ from the mobile client is responding differently than I'm expecting, and waiting for the user to click on something else to continue.

    The response from g+ also includes a meta http-equiv="refresh" which is trying to redirect the browser to a new url.

    I think the issue is that WPGPlus doesn't know how to follow those redirects sent to clients because curl doesn't do so.

    I can make it do so, but it will be a bit tricky as my account doesn't do this so I don't have anything to test against.

  6. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Actually, @ali, looking back through the debug.txt you posted, the line that jumps out at me is:

    2012-06-04 19:39:31 : Post type is page

    That says that for that run, at least, the 'type' of thing you were publishing was a 'page' not a 'post.' WPGPlus only currently posts things of type 'post' not pages.

    Do you have more debug info?

    Specifically, are there other times in your debug.txt where there is something meaningful between:

    wgplus_safe_post_google running,  past log in

    and

    wgplus_safe_post_google running,  past update

    Basically, the lines that just say:

    2012-06-03 19:20:38 : publish_to_gplus running, included wpgplus.php

    Will happen whenever a post is published, but if you don't also get:

    2012-06-04 19:39:20 : publish_to_gplus running, postID is 3836

    (with different postIDs of course) then nothing is really happening (post meta for that post was set to "no" for publishing to gpoogle+)

    I've just coded up and will shortly check in a 0.7.2 with some more debugging enabled - try that and let me know the results

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags