Title: Invalid JS syntax
Last modified: August 22, 2016

---

# Invalid JS syntax

 *  Resolved [Dylan Barlett](https://wordpress.org/support/users/dbarlett/)
 * (@dbarlett)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/invalid-js-syntax/)
 * In /classes/em-location-posts-admin.php, `admin_head()` outputs JS with `public
   static`, which is not valid syntax.
 * Line 23: `jQuery(document).ready( public static function($){`
    Should be: `jQuery(
   document).ready( function($){`
 * [https://plugins.trac.wordpress.org/browser/events-manager/trunk/classes/em-location-posts-admin.php?rev=983845#L23](https://plugins.trac.wordpress.org/browser/events-manager/trunk/classes/em-location-posts-admin.php?rev=983845#L23)
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/invalid-js-syntax/#post-5482795)
 * just to narrow down the problem and help us debug the issue is it possible to
   try the following temporarily:
 * – deactivating all other plugins to see if this resolves the problem. If this
   works, re-activate the plugins one by one until you find the problematic plugin(
   s).
    – switching to the default theme to rule out any theme-specific problems

Viewing 1 replies (of 1 total)

The topic ‘Invalid JS syntax’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/invalid-js-syntax/#post-5482795)
 * Status: resolved