• Resolved Mijnheer Eetpraat

    (@eetpraat)


    Since I’ve upgrades to WP Recipe Maker 9.7.2 the browser console logs the following error:

    public-modern.js:1 Uncaught ReferenceError: wprm_public is not defined
    at Object.init (public-modern.js:1:9319)
    at O (public-modern.js:1:14498)
    at 82588 (public-modern.js:1:14537)
    at r (public-modern.js:8:65028)
    at public-modern.js:8:65735
    at public-modern.js:8:65819
    at public-modern.js:8:65918

    I’m using WordPress 6.6.2 and Litespeed caching plugin v6.5.2. I’ve flushed all caches. It happens on all the recipe posts. Example: https://eetpraat.nl/wordpress/index.php/minestronesoep/

    The page I need help with: [log in to see the link]

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

    (@brechtvds)

    That’s strange, as I do see that wprm_public is defined when I test it in the JavaScript console.

    It could be some kind of compatibility problem. Could you try using the Health Check plugin to test? We have a video in our documentation showing you exactly how to do that: https://help.bootstrapped.ventures/article/108-debugging-plugin-problems

    Specifically the compatibility mode shown in the video where it basically tests a default theme and no other plugins active.

    Kind regards,
    Brecht

    Thread Starter Mijnheer Eetpraat

    (@eetpraat)

    Thank you Brecht!

    After more testing, as per your suggestion, I found that it was caused by the LiteSpeed Cache WordPress plugin.

    I’ve solved the problem by changing “JS Combine External and Inline” from ON to OFF. “JS Minify” can stay ON, “JS Combine” can stay ON, “Load JS Deferred” can stay on “Deferred”. No exemptions necessary for public-modern.js on the “Fine tuning” tab. Results: Console error is gone and PageSpeed Insights are still at 100/100/100/100 for both Mobile and Desktop.

    Thank you for your assistance!

    Plugin Author Brecht

    (@brechtvds)

    Happy to hear! Thanks for sharing the solution and do let me know if you experience any further issues at all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.