• Resolved philippdnn

    (@philippdnn)


    Hi,

    I am using the plugin on multiple web-pages and experiencing the same error on every single one of them:

    Setting up the plugin and the whole configuration worked like a charm and all the galleries on my different web pages are set up and functioning perfectly fine.

    However, after a few days (this happens in all three of them), the galleries disappear, inside the plugin it only says “unknown error”.

    The error can be (temporarily) fixed by removing permission and granting permission again afterwards. However, after a few days the gallery breaks down again.

    Thank you for your help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Marek Dědi?

    (@marekdedic)

    Hi,
    the Google app has to be set (in the developer console) to either internal or public, otherwise the token expires after 7 days.

    Marek

    Hi Marek

    Can you please tell me where I can set the app to internal or public. I can’t find it in the Developer Console, and I am having the same issue.

    Thanks

    Edit:

    Sorry; I have just found it under OAuth consent Screen, but I do not see an option for “Public” and “Internal” requires a subscription for Google Workspace. If I try to “Publish App”, I am asked to do all sorts of things because I have configured the app “in a way that requires verification” and to complete verification I will need to provide:
    An official link to your app’s Privacy Policy
    A YouTube video showing how you plan to use the Google user data you get from scopes
    A written explanation telling Google why you need access to sensitive and/or restricted user data
    All your domains verified in Google Search Console

    Is there an easy way around this, without having to pay a monthly subscription to Google?

    I also get the notice “Unknown Error” under “Step 2: Root director selection”

    • This reply was modified 3 years, 4 months ago by idgrp.
    • This reply was modified 3 years, 4 months ago by idgrp. Reason: Updated information required
    • This reply was modified 3 years, 4 months ago by idgrp.
    Plugin Author Marek Dědi?

    (@marekdedic)

    Hi,
    it is indeed the case that you need the app to be under Google Workspace to be able to make it internal (it is internal to your Workspace). The other option is to make it public and that means going through the verification. Unfortunately, we don’t know of any way around this as it is imposed by Google, not us.

    Marek

    Hi Marek I think all this should be written clearly on the plugin, otherwise me like many others will go through all the process of installing and configuring it, only to discover later that every week we need to re-authorise it.
    I know it’s not your fault or choice, but your plugin interacts with Google services, and you should inform people that your plugin will need to be re-authorised every 7 days unless you have a paid subscription (I understand you might not want to do that, but should be done).

    Now an idea…is there a way to automate this authorisation process with a cron? I don’t mean within the plugin…as I admin my own server, I’m thinking…can I do something to authorise all this with a curl script to put in cron?

    Second point…like someone else said (without reply), after re-authorising it, I get unknown error still. The basic settings when asking me to select my root folder, it always shows two “My Drive” lines…which one should I select? Is there an easy way to see a meaningful log from your plugin instead of “Unknonwn Error”?

    Plugin Author Marek Dědi?

    (@marekdedic)

    Hi,
    you are absolutely right that the documentation needs updating to reflect this change in Google services (which is fairly recent…)

    However, to be clear, you absolutely do not need a paid subscription either with us or Google to use this plugin. If you don’t have Google Workspace (which is paid), it’s still possible to set the app as public. It isn’t as easy (and that’s where I think updated docs on our side could help), but it works and is free.

    I hope this clears the issue up a bit,
    Marek

    Hi Marek

    thanks for clarification, yes I think that was clear (and good about updating docs), but as others were saying, the verification process is VERY involved (at that point much easier/faster loading all images on WordPress). Also reading through the guidelines, it’s quite clear that in most cases verification will fail because these are not really “apps” but just ways to access pictures on a Google Drive.

    Do you have any idea about the process of performing the oauth via a script? I found this do you think is a good starting point? That would actually solve the whole problem very neatly and for free:

    https://stackoverflow.com/questions/19766912/how-do-i-authorise-an-app-web-or-installed-without-user-intervention

    Plugin Author Marek Dědi?

    (@marekdedic)

    Hi,
    the process is involved, but we have some thoughts on how to simplify it for the users.

    As for OAuth in a script, I don’t believe that’s possible or a good idea, honestly. You would need to run a web browser on your server and if Google found out about this, they wouldn’t look too kindly on this.

    Sorry if that’s the answer you didn’t want to hear ??
    Marek

    Alright….I’ll have a look at it anyway.

    And mostly I look forward to know if you can write some sort of guide/steps to verify apps created following your (detailed and well made) guide to create them to access the photos and use your lovely plugin ??

    Plugin Author Marek Dědi?

    (@marekdedic)

    Yes, a guide with resources is what we have in mind.

    Thanks, good luck

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Gallery unknown error after a few days’ is closed to new replies.