Title: unknown error
Last modified: April 16, 2023

---

# unknown error

 *  Resolved [ebrucker](https://wordpress.org/support/users/ebrucker/)
 * (@ebrucker)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/unknown-error-53/)
 * On our website (bruckerbrothersltd.com), the gallery created by the “Image and
   Video Gallery from Google Drive” plugin for WordPress constantly loses the ability
   to access our Google Drive, resulting in a “unknown error” message on our gallery
   page instead of displaying pictures. We can reactivate the gallery manually by
   revoking then granting permission (see attached images), but the gallery goes
   down again within a few hours after permissions are reset.
 * We installed this plugin in March 2023. We should be using a current version (
   2.13.0). We think we have the app created at Google Cloud set correctly (see 
   attached images) as the gallery does work for a while once permissions are reset.
 * What is happening to break the connection between this plugin and Google Drive?
   How do we fix this problem?
 * ![](https://i0.wp.com/bruckerbrothersltd.com/wp-content/uploads/2023/04/wordpress-
   plugins.png?ssl=1)
 * ![](https://i0.wp.com/bruckerbrothersltd.com/wp-content/uploads/2023/04/wordpress-
   unknownerror.png?ssl=1)
 * ![](https://i0.wp.com/bruckerbrothersltd.com/wp-content/uploads/2023/04/wordpress-
   revokepermission.png?ssl=1)
 * ![](https://i0.wp.com/bruckerbrothersltd.com/wp-content/uploads/2023/04/wordpress-
   grantpermission.png?ssl=1)
 * ![](https://i0.wp.com/bruckerbrothersltd.com/wp-content/uploads/2023/04/googleapi-
   credentials.png?ssl=1)
 * ![](https://i0.wp.com/bruckerbrothersltd.com/wp-content/uploads/2023/04/googleapi-
   oauth.png?ssl=1)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funknown-error-53%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/unknown-error-53/#post-16663182)
 * Hi,
   is this by any chance happening every 7 days? Recently, Google has changed
   the way apps work and they have this time-out. On our side, there is nothing 
   we can do about that, unfortunately. However, there is a solution – in the Google
   app console, you have to mark the app as either internal or public – then the
   token should last indefinitely.
 * Hope this helps,
   Marek
 *  Thread Starter [ebrucker](https://wordpress.org/support/users/ebrucker/)
 * (@ebrucker)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/unknown-error-53/#post-16663219)
 * This disconnect between the plugin and Google Drive is happening within an hour,
   not 7 days. And In the Google app console, I cannot change the User Type to Internal
   or Public (External is the only option available to us, other options are grayed
   out). Any other ideas?
 *  Thread Starter [ebrucker](https://wordpress.org/support/users/ebrucker/)
 * (@ebrucker)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/unknown-error-53/#post-16663588)
 * Update:
   We tried connecting the plugin to a different (paid) Google account, 
   one where we were able to change the User Type in a newly created app to Internal,
   but the “unknown error” message replaced the gallery on our website again within
   the first hour. The token does not last indefinitely.
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/unknown-error-53/#post-16714237)
 * Hmm, that’s really strange. Could you please enable WordPress debugging? That
   should also show gallery errors beyond just “Unknown error” – maybe that’ll tell
   us more…
 * Thanks,
   Marek
 *  Thread Starter [ebrucker](https://wordpress.org/support/users/ebrucker/)
 * (@ebrucker)
 * [3 years ago](https://wordpress.org/support/topic/unknown-error-53/#post-16735391)
 * Last week, we enabled WordPress debugging and reinstalled the “Image and Video
   Gallery from Google Drive” plugin on our website. The image gallery worked well
   for about six days, then the following error replaced the gallery: { “error”:“
   invalid_grant”, “error_description”: “Token has been expired or revoked.” }. 
   We have a “debug.log” file as well, but there is no simple way to attach files
   here.
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [3 years ago](https://wordpress.org/support/topic/unknown-error-53/#post-16760504)
 * Hi,
   that is really strange, however, you’re not the only person reporting this
   as of recently – I suspect Google changed something about authorization (they
   do it frequently and without warning :().
 * If I understand this correctly, you have currently marked the app as “Public”?
   In that case, maybe try reinstalling the plugin to make sure the old tokens get
   completely removed.
 * Also, please send me the debug log at [developer@dedic.eu](https://wordpress.org/support/topic/unknown-error-53/developer@dedic.eu?output_format=md),
   I’ll take a look.
 * Thanks,
   Marek
 *  [mxstudios](https://wordpress.org/support/users/mxstudios/)
 * (@mxstudios)
 * [3 years ago](https://wordpress.org/support/topic/unknown-error-53/#post-16794878)
 * Hi. Mine started getting unknown error after a few hours. The debug log says 
   that the refresh token is not being passed or being set. Plug-in works fine on
   another site of mine with exactly the same settings.
 * **`refresh token must be passed in or set as part of setAccessToken`**
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/unknown-error-53/#post-16863199)
 * Hi,
   please open a new topic instead 🙂
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/unknown-error-53/#post-17003946)
 * Hi, closing for inactivity as the original author hasn’t replied in 3 months –
   feel free to open a new topic if the issue persists.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘unknown error’ is closed to new replies.

 * ![](https://ps.w.org/skaut-google-drive-gallery/assets/icon.svg?rev=3264618)
 * [Image and video gallery from Google Drive](https://wordpress.org/plugins/skaut-google-drive-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/skaut-google-drive-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/skaut-google-drive-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/skaut-google-drive-gallery/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/unknown-error-53/#post-17003946)
 * Status: resolved