s2Member causes AI1EC Calendar fail fetching events, only for non-Administrator
-
We are using Timely All In One Event Calendar (AI1EC). Calendar pages display correctly. However, when users click to advance to the next month, or go to the previous month, the action fails with the following message:
Something went wrong while fetching events.
The request status is: 200
The error thrown was: SyntaxError: Unexpected token <
Click here for technical detailsIn the role of Administrator, I do not experience this error. The calendars work fine for me. The error occurs for non-Administrator users who are logged in, and visitors who do not login.
I went through my plugins and discovered that disabling s2Member Pro clears up the problem. We are using s2Member Pro to control access to specific pages based on role (10 levels). We have calendars on a few pages. The error occurs on a page which is not restricted, as well as on pages restricted to certain user levels.
From my reading through the Forum, I have tried turning off/on the AI1EC Settings > Advanced Settings for “Use frontend rendering” and “Use advanced JS cache”, and this makes no difference. I have tried toggling “Strict compatibility content filtering” with no effect. And finally I tried changing the Calendar Theme from Vortex to something else, and back again, and resaving Permalinks.
The default calendar page is restricted to users with Admin authority. The calendars with this problem are being generated using shortcodes, specifying different categories on different pages.
I have a beta site which was cloned from the live site, which was experiencing the same problem. I deleted and restored the plugin as follows:
• Deleted /wp-content/plugins/all-in-one-event-calendar/uninstall.php
• Deactivated the plugin.
• Deleted the plugin.
• In PHPMyAdmin, deleted all ai1ec entries from the wp-options table.
• Reinstalled plugin.
• Reset default calendar.
• Cleared Cloudflare cache.This fixed the problem on the beta site. But when I followed the same procedure on the live site, it did not fix the problem. Because I just couldn’t believe it, I tried uninstalling/reinstalling multiple times. I also tried toggling off/on the settings mentioned above after the reinstall. I did not see any helpful information in Firebug. Without logging into our site, you can see a mini calendar at the bottom of this page which recreates this error consistently: http://www.thewilloughbychevychase.com/life-at-the-willoughby/amenities/party-room/
I would be grateful for any further advice. I really don’t want to abandon the Timely All In One Event Calendar. My thanks.
- The topic ‘s2Member causes AI1EC Calendar fail fetching events, only for non-Administrator’ is closed to new replies.