WordPress.org

Ready to get started?Download WordPress

Forums

UpdraftPlus Backup and Restoration for WordPress
[resolved] Cannot Authenticate with Google Drive (7 posts)

  1. codybriansisco
    Member
    Posted 9 months ago #

    I installed Updraft Plus 1.7.35 (using Word Press Add Plugin panel), created a Client ID and secret using the Google API interface, and entered the details accurately into the Updraft Plus settings page.

    When I click on the authentication page, I get the following error:

    Error: redirect_uri_mismatch
    The redirect URI in the request: http://www.codysisco.com/wp-admin/options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth did not match a registered redirect URI

    Request Details
    from_login=1
    scope=https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file https://docs.googleusercontent.com/ https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/
    redirect_uri=http://www.codysisco.com/wp-admin/options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth
    state=token
    as=7998da77328d1a31
    display=page
    pli=1
    hl=en
    cookie_policy_enforce=false
    response_type=code
    access_type=offline
    zt=ChRuUzJienEtOG1QeEFBaUg2UEhuUBIfNGt1LTJlYTNWWlFiTXFUbUhqeVRGR011R1dZWGhBSQ∙APsBz4gAAAAAUnGZVI79eJ-4QkBsCRrqzuAYLpu81i6_
    prompt=consent
    client_id=425164432989.apps.googleusercontent.com
    authuser=0

    http://wordpress.org/plugins/updraftplus/

  2. David Anderson
    Member
    Plugin Author

    Posted 9 months ago #

    Hi codybriansisco,

    This one is in the FAQs: http://updraftplus.com/faqs/what-does-the-error-error-redirect_uri_mismatch-mean/

    Best wishes,
    David

  3. codybriansisco
    Member
    Posted 9 months ago #

    Hi David,

    I read the FAQ before I submitted the question. I should have mentioned that.

    I copy and pasted the Redirect URL from the UpdraftPLus page. Likewise, I copy and pasted the Client ID and Secrets, so the problem is not that the URI don't match, despite what the error message says.

    I know other users have had this problem. I'm hoping you can help pinpoint a solution.

    Thanks David.

    Cody

  4. David Anderson
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Cody,

    Please can you send a link to a screenshot of the settings in your Google Drive console? (Use http://snag.gy if it helps).

    David

  5. codybriansisco
    Member
    Posted 9 months ago #

    Wait! I figured this out.

    The problem is with Google's new Cloud Console...It creates a very sneaky error.

    When I went to the old APIs Console interface, I discovered the URI had been truncated (even though it appeared correct in the new Cloud Console interface AND in the error message).

    I fixed the URI and now authentication succeeds.

  6. Thunderfunk
    Member
    Posted 4 months ago #

    I know this thread is from a while back, but I had to post a comment to thank codybriansisco very much for his solution to this problem that's bugged me for months on end with UpdraftPlus. I searched high, low, far and wide on other threads but with no joy.

    After reverting to the old console now, everything's authenticated.

    Thanks once again, codybriansisco.

  7. Thunderfunk
    Member
    Posted 4 months ago #

    Additionally, I would strongly suggest to the authors of UpdraftPlus that the Google Drive setup information should be rewritten to stress to other users to use the old console while setting up their Client ID/app so as to avoid the same problems. Also, the screenshots of the 'new' Google API console used in the current documentation do not match what Google has now.

Reply

You must log in to post.

About this Plugin

About this Topic