• Resolved jorsillo

    (@jorsillo)


    I am unable to authenticate google so I added the refresh token per the work around instructions on the settings page.

    On the authentication page the button for step 2, obtain token is greyed out and not available.

    In the helpers page the google find my albums button returns ‘ No albums found’.

    Finally, when trying to use the insert gallery function I get a 401 error, nothing found.

    Please help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    I am unable to authenticate google so I added the refresh token per the work around instructions on the settings page.

    On the authentication page the button for step 2, obtain token is greyed out and not available.

    If you have authenticated using the workaround and saved your token, you don’t need to use the Authentication page.

    Finally, when trying to use the insert gallery function I get a 401 error, nothing found.

    A 401 error means that you are getting an “unauthorized” error message, which means that your authentication is not succeeding.

    When you did your authentication did you ensure that you used your client ID and secret (instead of the default)? Did you ensure that you enabled Google Photos for your client ID, and that you added the right scopes at the time of authentication?

    If the answer to all of the above is “yes”, can you create a simple gallery using the shortcode [gallery type="google" view="albums"] on a page and let me know of the link?

    Thread Starter jorsillo

    (@jorsillo)

    https://josephandjacoborsillo.com/test-page/

    As far as
    i can tell I followed the directions correctly when setting everything up.

    Thanks for looking into this.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Doesn’t look like you have set up the shortcode … I only see some text there without the shortcode.

    To create a post with the shortcode:

    1. If you are using Gutenberg use the shortcode block and add the text exactly as I have pasted in my previous post, with the brackets and the quotes exactly as they have been written (changing the quotes from " to ” will cause this to break).
    2. If you are using the Classic Editor, switch to the “Text” mode of the editor and paste the shortcode text, again, exactly as typed above.

    go to the “Text” mode when you create the

    Thread Starter jorsillo

    (@jorsillo)

    sorry about that. i added the short code as you suggested.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I am not seeing any markup for Photonic when I visit your site, so it is likely that you have another plugin overriding the gallery shortcode, or your theme is redefining the gallery shortcode. So, try going to Photonic &garr; Settings → Generic Options → Generic Settings → Custom Shortcode, and put in a value, say photonic over there.

    Next, go back to the post you created and replace gallery with photonic (basically replace it with the new shortcode tag that you defined). Save the page and let me know – I will take a look.

    Thread Starter jorsillo

    (@jorsillo)

    ok, updated the shortcode

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – so now we are getting somewhere. The error message on your page says:

    Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

    If your authentication is set up properly, this happens due to a third party blocking some types of requests. The third party could be your theme (unlikely since your theme looks to be downloaded from www.remarpro.com, in which case it will not be allowed to have such blocking code), or a security plugin, or your hosting provider.

    I have only had two prior instances of users reporting this problem. In the first case I wasn’t able to help the user in spite of 7 pages of support requests! But in the second case the user managed to track this down to the hosting provider. Can you check with your hosting provider if they have any such restrictions in place?

    Thread Starter jorsillo

    (@jorsillo)

    Bluehost is my provider. I’m very new to all this and am not sure how to check or even who/what to ask for. I really hope it’s not something they are doing to block this as I’ve signed up for a long term contract with them.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Bluehost generally shouldn’t have any such restrictions, but they can help track the request at a server level and tell you if something is getting blocked out. If they are unable to find the root cause, the other possible culprit would be a security plugin. In that case I would request that you disable all other plugins and retry this. If it works, re-enable the plugins one by one so that we can isolate the conflict.

    Unfortunately this is one of those rare cases where I really don’t have an idea as to how the issue can be easily fixed, so we may not be able to find a resolution.

    Just one quick check – when you go to Photonic → Settings → Google Photos → Google Photos settings → Refresh Token (for Back-end / Server-side Authentication), you do see the refresh token that you had saved from your authentication, right?

    Thread Starter jorsillo

    (@jorsillo)

    Yes, the refresh token is there. I’m in a support chat with bluehost now so hopefully they can find the culprit. Will keep you posted. Thanks again for your efforts!

    Plugin Author Sayontan Sinha

    (@sayontan)

    Hi – I took a look at the site you have linked above, and it looks like you have Photonic working on it now.

    What was the issue you were facing?

    Thread Starter jorsillo

    (@jorsillo)

    I have no idea! Since we last spoke about this I tried a couple times to connect with bluehost support but always got interupted by life ( two small kids) and never got anywhere. I left it alone for a week and randomly checked again and it magically worked.

    Thanks again for your help. I wish I could tell you how it was resolved but literally changed nothing.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘google photos not working’ is closed to new replies.