Title: Fatal Error Code &#8211; Events Manager Update
Last modified: August 21, 2016

---

# Fatal Error Code – Events Manager Update

 *  Resolved [BigDogSF](https://wordpress.org/support/users/bigdogsf/)
 * (@bigdogsf)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/)
 * Hey Frank…got a new question. (BTW…the a.STRING(4 solution you previously offered
   fixed the error log issue! – thanks)
 * I just updated the Events Manager plugin by Marcus Sykes to v 5.5.3. I’m getting
   this error code at the bottom of the front-end user form for adding events.
 * Fatal error: Uncaught exception ‘JSMin_UnterminatedStringException’ with message‘
   JSMin: Unterminated String at byte 504663: “===a.STRING(4,5).toUpperCase()?r():!
   1):!1’ in /home/collecto/public_html/wp-content/plugins/autoptimize/classes/external/
   php/minify-2.1.7-jsmin.php:203 Stack trace: #0 /home/collecto/public_html/wp-
   content/plugins/autoptimize/classes/external/php/minify-2.1.7-jsmin.php(145):
   JSMin->action(1) #1 /home/collecto/public_html/wp-content/plugins/autoptimize/
   classes/external/php/minify-2.1.7-jsmin.php(84): JSMin->min() #2 /home/collecto/
   public_html/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php(175):
   JSMin::minify(‘?try{jQuery.noC…’) #3 /home/collecto/public_html/wp-content/plugins/
   autoptimize/autoptimize.php(249): autoptimizeScripts->minify() #4 [internal function]:
   autoptimize_end_buffering(‘<!DOCTYPE html>…’, 9) #5 /home/collecto/public_html/
   wp-content/plugins/wp-external-links/includes/class-wp-external-links.php(125):
   ob_end_flush() #6 [internal function]: WP_External_Links->callba in /home/collecto/
   public_html/wp-content/plugins/autoptimize/classes/external/php/minify-2.1.7-
   jsmin.php on line 203
 * If I turn off the Javascript function in Autoptimize the message disappears. 
   Any thoughts?
 * Regards,
    William
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/page/2/?output_format=md)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886842)
 * This probably is due to an error in the javascript of Event Manager, the Events
   Manager devs might be able to assist in fixing this?
 *  Thread Starter [BigDogSF](https://wordpress.org/support/users/bigdogsf/)
 * (@bigdogsf)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886915)
 * Ok..thanks for verifying this.
 * Regards,
    Will
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886942)
 * NP. I would, for now, just exclude Event Manager’s JavaScript.
 *  Thread Starter [BigDogSF](https://wordpress.org/support/users/bigdogsf/)
 * (@bigdogsf)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886966)
 * I’ve been trying to figure out what to put in the exclude for events manager…
   but nothing I have tried worked…mmm…
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886985)
 * “events-manager”?
 *  [brashell](https://wordpress.org/support/users/brashell/)
 * (@brashell)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886986)
 * I am experiencing this issue as well, but I don’t have that plugin. I also am
   experiencing a high amount of latency, I am also unable to minify and compress
   js in the footer or anywhere when the Look for scripts only in <head> is enabled.
   Force JavaScript in <head> when unchecked also causes issues. Ideas?
 *  [brashell](https://wordpress.org/support/users/brashell/)
 * (@brashell)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886988)
 * Look for scripts only in head is what appears to be causing the problem, when
   it isn’t checked, it causes the error to occur.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886989)
 * Hi Brashell;
    Some questions/ feedback;
    - are you getting the exact same error that BigDogSF is seeing?
    - It might not be optimal form a performance point of view, but a lot of jquery-
      based themes need “force js in head” and “look only in head. You can, alternatively,
      disable “look only in head” but you’ll have to search for the JS that is causing
      problems and exclude that, which might take some trial and error.
    - latency typically occurs if you don’t have a page cache plugin (e.g. wp super
      cache).
 * hope this helps,
    frank
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886990)
 * Ah, missed your 2nd remark. This means that one of the javascripts outside of
   head has a bug in it which causes the JS minifier to throw an error.
 *  [brashell](https://wordpress.org/support/users/brashell/)
 * (@brashell)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886991)
 * Just out of curiosity, are you declaring $content only here? Because it might
   make sense why it only works when just head is checked.
 *     ```
       if($options['justhead'] == true)
       		{
       			$content = explode('</head>',$this->content,2);
       			$this->content = $content[0].'</head>';
       			$this->restofcontent = $content[1];
       		}
       ```
   
 * Or am I missing it?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886992)
 * you’re missing it; $content is available before (and is used in the explode),
   but it is changed (the head is chopped off 😉 ) if justhead==true.
 *  [brashell](https://wordpress.org/support/users/brashell/)
 * (@brashell)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886993)
 * plupload.full.min.js Is the file causing the problem I determined, by adding 
   it to the whitelist it all works, but at the same time, it adds a ton of latency.
 *  [brashell](https://wordpress.org/support/users/brashell/)
 * (@brashell)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886994)
 * Question, is there a way to split it up to multiple files?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886997)
 * 1. where do you see the latency brashell; loading of the base page (HTML), the
   loading of the aggregated JS (CSS), or loading the excluded files? and when talking
   latency, do you mean “time to first byte” or the actual download?
    2. splitting
   the aggregated js (css) file up is not possible i’m afraid. 3. plupload.full.
   min.js is a great catch, thanks for that!! given it’s popularity I might add 
   it to the default JS exclusion list.
 *  [brashell](https://wordpress.org/support/users/brashell/)
 * (@brashell)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/#post-4886999)
 * Time to first byte, and all files including base load, one of the pages has over
   1MB from a single file then because the system won’t split it up not sure what
   to do.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/page/2/?output_format=md)

The topic ‘Fatal Error Code – Events Manager Update’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 22 replies
 * 3 participants
 * Last reply from: [BigDogSF](https://wordpress.org/support/users/bigdogsf/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-code-events-manager-update-1/page/2/#post-4887176)
 * Status: resolved