• Resolved Meagan

    (@mtruglio)


    Hello,

    I’m trying to add this awesome calendar plugin to a website and keep getting this following error when the calendar view is changed.

    “Something went wrong while fetching events.
    The request status is: 200
    The error thrown was: SyntaxError: Unexpected token <“

    I have followed your support site’s procedure of turning off plugins and switching themes to test for conflicts but I still get this error even with all other plugins turned off and wp’s twenty-fifteen theme activated.

    I could really use some help figuring this out as i’m not a developer, and we are really excited to use this plugin and potentially purchase some of the add-on’s, assuming we can get it working.

    help me obi-wan… you’re my only hope.

    https://wordpress.org/plugins/all-in-one-event-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Install firebug and look at what the AJAX call is returning, the cause it’s that something which is not JSON is returned, it’s probably some kind of error

    Here is where to look http://take.ms/Xn75E

    Thread Starter Meagan

    (@mtruglio)

    It’s fixed! 🙂 🙂 🙂

    Inspecting the console in firebug revealed the following note in the JSON

    “<!– WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. –>”

    I reactivated WP Super Cache and it repaired the config file, then the calendar began working again. I have deactivated WP Super Cache again as we weren’t using it anyway. But it seems the unexpected JSON Parse was do to an error with WP Super Cache. Thank you so much for all your help! Great Support! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The error thrown was: SyntaxError: Unexpected token’ is closed to new replies.