• Resolved Richard

    (@rgenck)


    Just started getting the following error:

    Fatal error: Cannot declare class JSMin_UnterminatedStringException, because the name is already in use in /wp-content/plugins/psn-pagespeed-ninja/ress/vendor/jsmin-php/jsmin.php on line 395

    Also got the following error, not sure if it’s related:

    Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Denis Ryabov

    (@dryabov)

    Most likely you have another active optimizing plugin that use JSMin library. Try to either disable that plugin, or disable JS minification (i.e. set “Minify Javascript Method” to “None” in the “Minify JavaScript” section of PageSpeed Ninja Advanced settings).

    Thread Starter Richard

    (@rgenck)

    Good to know, in your opinion do I need to use PageSpeed Ninja with Autoptimize, or should I not need Autoptimize?

    Plugin Author Denis Ryabov

    (@dryabov)

    Most likely it’s better to use a single optimizing plugin (Autoptimize or PageSpeed Ninja) to don’t duplicate optimization tasks. If you like to use both, I’d try both ways and choose one that works better (i.e. gives higher PageSpeed Insights scores and takes less time to generate page).

    Thread Starter Richard

    (@rgenck)

    Update: I also had Cloudflare going, I deleted Autoptimize and flushed the Cloudflare cache and the error is gone.

    Thanks!

    • This reply was modified 7 years, 5 months ago by Richard.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: Cannot declare class’ is closed to new replies.