Ideas

This board is only for raising and voting on feature requests (Ideas / Suggestions).
Please raise any Bugs via "Get Help" button on your calendar admin dashboard.

SyntaxError: AIOEC plugin is returning a non-JSON response

Multiple users have encountered this issue: Something went wrong while fetching events.The request status is: 200. The error thrown was: SyntaxError: Unexpected token <

The plugin is waiting for a JSON response and it's receiving from the web server a non-JSON response instead. User should install a browser extension like Firebug and look at the returned call.

  • Robert Whiteside
  • Feb 10 2016
  • Shipped to WP & Hosted
  • Jun 22, 2016

    Admin Response

    Possible solutions for this issue:

    1. Install these PHP extensions: 
      • iconv (http://php.net/manual/en/book.iconv.php ) installed. So, need to check the PHP installation, for that, run a script with phpinfo() function inside the server the PHP installation and see it iconv is enabled.
      • Multibyte String (http://php.net/manual/en/book.mbstring.php ) installed. So, need to check the PHP installation, for that, run a script with phpinfo() function inside the server the PHP installation and see it mbstring is enabled.
    2. Self hosted users (No hosted in Timely Cloud) please try disabling the option "Use front-end rendering" inside Events -> Settings -> Advanced.
    3. If above solutions don't work, unfortunately there are a multitude of environment settings and conflicts that can cause this, unrelated to our plugin, which could only be fully avoided if user signs up to one of the Timely hosted plans. In the next 6 months we should release the first version of our free plan for Timely hosted calendar, based on a non-wordpress SaaS that you will be able to easily embed into your WP site.
  • Attach files
  • Derek Dalton commented
    February 12, 2016 22:39

    I am still looking for a solution on the Syntax Error. I started this thread back in the beginning of December and still waiting for some resolution - https://wordpress.org/support/topic/clicking-next-month-error/page/2?replies=32. I am still waiting for any reply back from your support guy. Benjamin asked a while back: Do you use a cache plugin? What code is in your .htaccess file? 

     
    Here is our server details: 
    The site is running onNginx. Not Apache. Here's the php version output:
    PHP 5.6.15 (fpm-fcgi) (built: Nov 20 2015 09:36:35)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    Running Ubuntu 14.04 LTS version of O/S
    nginx version: nginx/1.9.7
     
    I read through this thread - https://wordpress.org/support/topic/events-syntaxerror?replies=23 - I tried some of it and the rest were not applicable.
     
    Hoping to hear back from you guys. 
  • Admin
    Robert Whiteside commented
    February 18, 2016 00:16

    @derek we're still looking into this.... we'll keep you posted...

  • Team 218 commented
    February 24, 2016 11:15

    Following

  • Eli Renato commented
    April 21, 2016 13:06

    Another reason:

    - For WP users (No hosted in Timely Cloud). You Must have to disabled the option "Use frontend rendering" inside Events -> Settings -> Advanced.

  • Derek Dalton commented
    April 22, 2016 21:30

    I have done that, still same error.

  • Luke Moffat commented
    January 25, 2017 14:59

    Following