Title: Fatal Error
Last modified: March 10, 2022

---

# Fatal Error

 *  Resolved [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/)
 * I updated the plugin and got a 500 error. Uninstalled and 500 error went away.
   Also see this error:
 * > 436 PHP Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated
   > String at byte 281: ‘use strict\\’; in /nas/content/live/barebabystore/wp-content/
   > plugins/autoptimize/classes/external/php/jsmin.php:214\nStack trace:\n#0 /nas/
   > content/live/barebabystore/wp-content/plugins/autoptimize/classes/external/
   > php/jsmin.php(152): JSMin->action(1)\n#1 /nas/content/live/barebabystore/wp-
   > content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min()\
   > n#2 /nas/content/live/barebabystore/wp-content/plugins/autoptimize/classes/
   > autoptimizeSpeedupper.php(38): JSMin::minify(‘/*!\\r\\n * @copyri…’)\n#3 /nas/
   > content/live/barebabystore/wp-includes/class-wp-hook.php(307): autoptimizeSpeedupper-
   > >js_snippetcacher(‘/*!\\r\\n * @copyri…’, ‘/nas/content/li…’)\n#4 /nas/content/
   > live/barebabystore/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘/*!\\
   > r\\n * @copyri…’, Array)\n#5 /nas/content/live/barebabystore/wp-content/plugins/
   > autoptimize/classes/autoptimizeScripts.php(554): apply_filters(‘autoptimize_js_…’,‘/*!\\
   > r\\n * @copyri. in /nas/content/live/barebabystore/wp-content/plugins/autoptimize/
   > classes/external/php/jsmin.php on line 214
 * Any idea what might be going on? Is there an update needed? Thank you.
    -  This topic was modified 4 years, 2 months ago by [KentyMac](https://wordpress.org/support/users/kentymac/).

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15446830)
 * That’s the JS minifier (jsmin as part of [mr clay’s minify](https://github.com/mrclay/minify))
   breaking due to an isuue in the JS being optimized.
 * Things you could do:
    1. disable JS optimization alltogether 2. try to identify
   the JS that is causing this (search for the `@copyright` string) and exclude 
   that from being optimized
 * If you can share your site’s URL I’ll be happy to take a quick look myself to
   try to identify the JS.
 *  Thread Starter [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447053)
 * Thank you! The site is [https://www.barebabyorganics.com](https://www.barebabyorganics.com).
    -  This reply was modified 4 years, 2 months ago by [KentyMac](https://wordpress.org/support/users/kentymac/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447116)
 * hmm, no luck (yet) .. :-/
 * Can you disalble “minify excluded CSS/ JS” and then in the JS optimization exclusion
   field, can you try excluding one of below each line and report back?
 * * `wp-content/themes`
    * OR `wp-content/plugins` * OR `wp-includes/js`
 *  Thread Starter [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447136)
 * I unchecked the box next to “Minify excluded CSS/JS” but where do I enter those
   3 lines?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447142)
 * Those should go in Settings -> Autoptimize -> JS/ CSS/ HTML -> JavaScript options-
   > “Exclude scripts from Autoptimize” (which is a comma separated list).
 *  Thread Starter [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447152)
 * Oh, do I enter them in “Exclude scripts from Autoptimize:”? If so, are you saying
   to enter them one at a time and check?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447158)
 * indeed, goal is to narrow down things step by step 🙂
 *  Thread Starter [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447330)
 * OK, I excluded wp-content/plugins and the fatal errors seem to have stopped. 
   Thanks for your help!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447378)
 * OK, now ideally you would (could) drill down even more, trying to exclude each
   plugin one at a time, e.g. `plugins/layered-popups/`, `plugins/woocommerce-side-
   cart-premium/`, … (the exact directory names can be found in the HTML source 
   of any page on your site)?
 *  Thread Starter [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447642)
 * OK, thank you. I’ll try that.

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

The topic ‘Fatal Error’ 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/)

 * 10 replies
 * 2 participants
 * Last reply from: [KentyMac](https://wordpress.org/support/users/kentymac/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4100/#post-15447642)
 * Status: resolved