• Resolved mhatdreamsdotdk

    (@mhatdreamsdotdk)


    Hi
    I am having a problem with ” in my wordpress page titles. Every time I have those I get the following error ind the log:
    PHP Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 198: “); in /var/www/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:214

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    just tried to reproduce on https://blog.futtta.be/2021/02/18/autoptimize-image-optimization-to-be-less-lazy-with-pictures/ but no errors here mhatdreamsdotdk .. can you share a URL where you have quotes in the title (there are many different types of quotes and even here on the forum they can get altered)?

    frank

    Thread Starter mhatdreamsdotdk

    (@mhatdreamsdotdk)

    Hi
    Thanks for responding. I have the problem on this site:
    http://chemicalworld.dk.linux233.unoeuro-server.com/p/filterpatron-rustfri-10-400my/

    I have pinpointed the problem to occure when I run the post data through this function from Elementor:
    Elementor\Plugin::instance()->frontend->get_builder_content()

    So I am guessing it is somewhat of a compatiblity issue with that plugin

    /Martin

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, afraid I see a JS error in the browser console now (with AO JS opt. off);

    and indeed the inline JS code is broken as the inch-sign, being a quote, closes the string:

    and that will cause the JS minifier to spit out that JSMin_UnterminatedStringException indeed.

    based on a quick examination of the HTML source it looks like the JS-code is your theme’s, so you’ll have to ask the theme developer to escape the product name when outputting it in the JS (this would actually be a security issue too).

    as a workaround: make sure NOT to “also aggregate inline JS” and I *think* all will be fine.

    hope this helps,
    frank

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

The topic ‘Problem with Quote (“) in title’ is closed to new replies.