Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Unknown Error
Last modified: November 18, 2021

---

# [NSFW] Unknown Error

 *  Resolved [agi21](https://wordpress.org/support/users/agi21/)
 * (@agi21)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/)
 * Hello
    I successfully connected a private google cal to the plugin,but it only
   works when I’m logged in as admin.. if not logged in as admin (i.e. not logged
   in at all or logged in as subscriber), the plugin does not load / display the
   private google calendar in the frontend but displays ‘unknown error’. Any idea
   how to solve this? Thanx in advance… agi
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funknown-error-41%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15079808)
 * Hi,
 * I see that this plugin is trying to get data from your main website (without /
   Test2) instead of the /Test2 website. So it looks like you have a test website
   but the plugin calls your main website. I don’t know why this is, but maybe this
   can help you?
 *  Thread Starter [agi21](https://wordpress.org/support/users/agi21/)
 * (@agi21)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15079882)
 * Hi
    Thank you for your quick anwer.. I’m sorry but I am not sure what you mean..
   Do I have to specify in the plugin settings on which page exactly I wan’t to 
   display the calendar? Strange thing is, that the calendar displays perfectly 
   if I am logged in in wp backend as admin… Best agi
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15079900)
 * No the plugin should just work on every page.
 * This plugins does a call to /wp-admin/admin-ajax.php (this is common practice
   see [https://developer.wordpress.org/plugins/javascript/ajax/#url](https://developer.wordpress.org/plugins/javascript/ajax/#url))
   and I see from the logs on your website that it receives a 302 code which is 
   a redirect. So it looks like you have some plugin or some code that doesn’t allow
   to call this if you’re not logged in.
 *  Thread Starter [agi21](https://wordpress.org/support/users/agi21/)
 * (@agi21)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15080042)
 * Thanks again for your quick reply.. hm, I’ll check later today if there is any
   redirect active.. could be.. thanx for this!
    Best agi
 *  Thread Starter [agi21](https://wordpress.org/support/users/agi21/)
 * (@agi21)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15080148)
 * Found it! Thanks for your tipp – I had a redirect function in functions.php which
   blocks backend access for subscribers… I deactivated this and now the calendar
   is showing up! I’ll see how to solve the “backend-block” a different way..
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15080170)
 * Good to hear!

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

The topic ‘[NSFW] Unknown Error’ is closed to new replies.

 * ![](https://ps.w.org/private-google-calendars/assets/icon-256x256.png?rev=2203549)
 * [Private Google Calendars](https://wordpress.org/plugins/private-google-calendars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/private-google-calendars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/private-google-calendars/)
 * [Active Topics](https://wordpress.org/support/plugin/private-google-calendars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/private-google-calendars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/private-google-calendars/reviews/)

## Tags

 * [unknown error](https://wordpress.org/support/topic-tag/unknown-error/)

 * 6 replies
 * 2 participants
 * Last reply from: [michielve](https://wordpress.org/support/users/michielve/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/unknown-error-41/#post-15080170)
 * Status: resolved