• Resolved KentyMac

    (@kentymac)


    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 2 years, 12 months ago by KentyMac.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    That’s the JS minifier (jsmin as part of mr clay’s 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

    (@kentymac)

    Thank you! The site is https://www.barebabyorganics.com.

    • This reply was modified 2 years, 12 months ago by KentyMac.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@kentymac)

    I unchecked the box next to “Minify excluded CSS/JS” but where do I enter those 3 lines?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Those should go in Settings -> Autoptimize -> JS/ CSS/ HTML -> JavaScript options -> “Exclude scripts from Autoptimize” (which is a comma separated list).

    Thread Starter KentyMac

    (@kentymac)

    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

    (@optimizingmatters)

    indeed, goal is to narrow down things step by step ??

    Thread Starter KentyMac

    (@kentymac)

    OK, I excluded wp-content/plugins and the fatal errors seem to have stopped. Thanks for your help!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@kentymac)

    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.