Title: SyntaxError: Invalid character
Last modified: August 30, 2016

---

# SyntaxError: Invalid character

 *  Resolved [GFHS](https://wordpress.org/support/users/gfhs/)
 * (@gfhs)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-invalid-character-1/)
 * I am getting the following error when I scroll to previous page on my Events 
   Page ..
    “Something went wrong while fetching events. The request status is: 
   200 The error thrown was: SyntaxError: Invalid character”
 * If I select “Strict compatibility content filtering” then this error disappears
   but my Home Page which contains Upcoming Events loses its formatting.
 * In the error log there is ….
    “All-in-One Event Calendar: ob_get_clean() [[ref.outcontrol](https://wordpress.org/support/topic/syntaxerror-invalid-character-1/ref.outcontrol?output_format=md)]:
   failed to delete buffer zlib output compression @ /home/gfhsorgu/public_html/
   wp-content/plugins/all-in-one-event-calendar/lib/global-functions.php:38 #8”
 * Can you help me correct this please ?
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

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

 *  [Benjamin](https://wordpress.org/support/users/bsokic/)
 * (@bsokic)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-invalid-character-1/#post-6193923)
 * Hi,
 * 1. Try turning on/off “Use frontend rendering” in Events -> Settings –> Advanced
   
   2. Try turning on/off “Disable gzip compression” in Events -> Settings –> Advanced
 *  Thread Starter [GFHS](https://wordpress.org/support/users/gfhs/)
 * (@gfhs)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-invalid-character-1/#post-6193952)
 * Hi Benjamin. Many thanks for your prompt reply. Will try these suggestions. Best
   Rgds
 *  [Benjamin](https://wordpress.org/support/users/bsokic/)
 * (@bsokic)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-invalid-character-1/#post-6193963)
 * No problem 😉

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

The topic ‘SyntaxError: Invalid character’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Benjamin](https://wordpress.org/support/users/bsokic/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-invalid-character-1/#post-6193963)
 * Status: resolved