Viewing 13 replies - 1 through 13 (of 13 total)
  • I had the same problem – easily fixed.

    Go to the Google API you set up, and then from the sidebar choose:
    API & Auth’s
    -> Credentials

    You should see the Client ID for Web Application screen. The fourth item down should be Redirect URIs. If that line doesn’t say
    https://stockholmstypografiskagille.se/wp-admin/options-general.php?page=docs_to_wp then click on Edit Settings and enter it into the second box, Authorized Redirect URIs.

    Should do the trick. If you’re having any problems finding the screen, let me know and I’ll send you a screen shot.

    Good luck!

    Thread Starter JojjeG

    (@jojjeg)

    Thank you Tararebeka this was really helpful and now I see the information I previously did not have. Great!
    However, I cannot make any changes to the Docs to WP settings. WP just skips to the same 400 page as before. I’m stuck in an evil loop!
    My next step would be to go into the database, find the settings and do the changes. I’m not too thrilled about that as I’m not very comfortable with database handling. Any thoughts on this is much appreciated.

    I’m stuck in the same loop myself. I had an issue with an API I setup for one of the papers, so I foolishly thought I’d delete it and start from scratch. No such luck – my loop just keeps telling me the API has been deleted and it won’t let me enter the new API info.

    Damn, I also hate the thought of touching the database… *shudders* Unlimited potential to screw up so many things…

    Let me know if you end up braving it. I may have to do the same.

    I forgot to ask – do you have your Drive API enabled?

    I’m setting up another of our sites and remembered that this was also a sticking point for me the first time around. I kept getting the 400 error until I enabled it.

    I got out of my 400 loop…but I had to go into PHPMyAdmin and alter the files in the database. I sorted them by name and found the two ‘Docs to WP’ files I needed – one for the Client ID and one for the Client Secret. I deleted the API info in each and saved, then refreshed the WordPress side, where it let me enter new info on the options page.

    scary, but it worked.

    Thread Starter JojjeG

    (@jojjeg)

    Sorry for the late response, I did not to get into a mess. You’ve got me back on track here. The Drive API wasn’t activated. I thought I activated anything with the word Drive on it.
    I found it under: APIs & auth/ APIs/ Google Apps APIs/ Drive API

    However it didn’t fix my issues. I’ve had the same plan to delete the plugin settings in the database but where did you find the Docs to WP settings? I just can’t find the data table.

    I had to go into PHPMyAdmin and then selected wp-options and browsed the records.

    https://quailcreekcrossing.com/database.jpg

    Then I sorted by option_name until I found the two files I needed:

    docs_to_wp_client_id
    docs_to_wp_client_secret

    https://quailcreekcrossing.com/delete.jpg

    Delete the id and secret out of those files and save. Then in a different tab with the WordPress site open, go to the Docs to WP settings and it should let you in. If it’s looping, make sure you do a hard refresh to make sure it’s trying again, rather than pulling from the cache.

    Thread Starter JojjeG

    (@jojjeg)

    Ok! Now we’re getting somewhere!

    To recap the whole procedure:

    1) Install theDocs-to-WP plugin
    2) Set up a Google Drive API over at https://console.developers.google.com. You need to create a new app project.
    3) In the menu find APIs & auth / Credentials /
    4) Create new Client ID for web application(!)
    5) Copy the Client ID and Client secret to your Docs-to-WP settings in WordPress. You’ll find it under Settings.
    6) Copy the URL for the Google Docs document you want to post; Origin Folder Share Link.
    7) Create a new, blank document in Google Docs and add the link into the Docs-to-WP settings; Destination Folder Share Link.
    8) Cross your heart and hope the Connection Status will turn into Connected when you hit Save.

    Do you want to add something here Tararebeka?

    2) Create a new app project over at https;//console.developers.google.com. Make sure to enable the Drive API within the project (under APIs & Auth/APIs/Google Apps APIs/Drive API)

    Under the settings for Authorized redirect URIs enter https://YOURWEBSITE.com/wp-admin/options-general.php?page=docs_to_wp

    6) Copy the URL for the Google Docs folder you want to grab posts from (Origin Folder Share Link)

    7) Copy the URL for the folder you want posts moved to after they’ve been imported into your site (Destination Folder Share Link)

    Thread Starter JojjeG

    (@jojjeg)

    Great work! Next step is to get doc up on the website…

    Thank you both so much for spelling out these steps, including the PHPmyadmin info and what to put in the Authorized redirect URI field!!!

    I don’t really know what I just did, but I followed them and this amazing plugin is operational again!

    I’d never messed with Google Developers Console and when I tried to create a project the first time I got sucked into some rabbit hole where I was downloading things and using the command line…eesh.

    Searching forums to fix things I don’t understand at all makes me feel like some sort of magician’s apprentice reciting incantations from random spell books in some vast library. No wonder it’s such a cool feeling when one of them works!

    This is far too complicated for the average WP user to follow–and I’ve been managing my site on WP for over a decade (though clearly I’m not a technical genius). Your instructions need much greater specificity & clarity including screenshots. I’m especially lost about what you’re telling us to do on the Google Docs side. You also use Google Drive & Docs sometimes interchangably. I use Google Docs, but generally not Google Drive (though they may be related to each other.

    In short, I’ve tried following your directions & the plugin isn’t working for me. I’ve got the Client ID and the Secret. I think I’ve got the origin URL, but not sure what or how to tell what the Destination URL is.

    Yr instructions say to create a new Google Doc & then add that URL as the destination URL. That didn’t work for me. I’m not even sure why the URL for a specific document would work at destination URL for all your future Docs that you want to upload to WP.

    Have you viewed the setup video?

    https://www.youtube.com/watch?v=oFLjn2VOn-U&feature=youtu.be

    I realized this was a lot of intense rigamarole (and I’ve installed this setup on eight sites), so I did a walkthrough video. I thought it was on the main page for this plugin, but I guess not. Anyway, let me know if that makes it clearer.

    Yr instructions say to create a new Google Doc & then add that URL as the destination URL.

    The next reply to that makes a correction and says a new Google Doc FOLDER. You need a folder for your RTF files and then folder to move them into once they’ve been ported into WordPress.

    Hope this clears some things up.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Error: redirect_uri_mismatch’ is closed to new replies.