• Resolved eugene212

    (@eugene212)


    The plugin seems to be doing a good job, but while testing it I have observed that activating Minify JS option breaks back end editing with Colibri Page Builder Pro (front end pages look fine).

    Please see below some Firefox browser Dev Tool error lines (if it helps to resolve the issue):

    TypeError: response is undefined webpage.js:21:17
    Uncaught SyntaxError: expected expression, got ')'
    file-optimizer.php:36:93955
    TypeError: response is undefined webpage.js:21:17
    Uncaught TypeError: hop.iframeHop.mount is not a function
        mountPreview https://test.nuramed.ru/wp-content/plugins/colibri-page-builder-pro/extend-builder/assets/index.js?ver=1.0.274-pro:12
        initBuilder https://test.nuramed.ru/wp-content/plugins/colibri-page-builder-pro/extend-builder/assets/index.js?ver=1.0.274-pro:181
        jQuery 7
        trigger https://test.nuramed.ru/wp-content/plugins/colibri-page-builder-pro/assets/js/customizer/customizer-base.js?ver=1.0.274-pro:554
        previewLoadedMessageCallback https://test.nuramed.ru/wp-content/plugins/colibri-page-builder-pro/assets/js/customizer/customizer-base.js?ver=1.0.274-pro:1275
    index.js:12:27
    TypeError: o() is undefined
        c https://test.nuramed.ru/wp-content/plugins/colibri-page-builder-pro/extend-builder/assets/static//js/index.js?ver=1.0.274-pro:8
        u https://test.nuramed.ru/wp-content/plugins/colibri-page-builder-pro/extend-builder/assets/static//js/index.js?ver=1.0.274-pro:8
    ...................................
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @eugene212,

    Thanks for using Powered Cache.

    Have you tried to exclude Colibri Page Builder’s assets in the exclude section?

    Thread Starter eugene212

    (@eugene212)

    Excluding all Colibri Page Builder JS assets does not help…
    But switching off Minify JS helps – Colibri page editing screen reverts to the expected state/view.

    Thread Starter eugene212

    (@eugene212)

    It is possible to get around by temporarily disabling Minify JS while editing pages, but it would not be the desired way.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Could you try this snippet:

    add_action( 'plugins_loaded', function () {
    if ( is_user_logged_in() ) {
    add_filter( 'powered_cache_fo_disable', '__return_true' );
    add_filter( 'powered_cache_fo_disable_css_combine', '__return_true' );
    add_filter( 'powered_cache_fo_disable_css_minify', '__return_true' );
    add_filter( 'powered_cache_fo_disable_js_combine', '__return_true' );
    add_filter( 'powered_cache_fo_disable_js_minify', '__return_true' );
    }
    },999 );

    Basically, it disables the file optimizer for logged-in users. If the Colibri Page Builder sets a custom query string, you can customize the snippet for that too. Unfortunately, I’m unable to test it since it’s a premium plugin

    Thread Starter eugene212

    (@eugene212)

    Yes, the snippet fixes the issue, thank you !

    Also I believe that Colibri Theme comes with the free Colibri Page Builder (i.e. not Pro – with limited functionality), so you may consider trying it for your tests.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Yes, the snippet fixes the issue, thank you !

    You’re welcome! Glad to hear that it worked for you.

    Also I believe that Colibri Theme comes with the free Colibri Page Builder (i.e. not Pro – with limited functionality), so you may consider trying it for your tests.

    I took a quick look and couldn’t see the same error. Maybe it depends on the components (or pro features) the page uses. If you want to keep file optimizations for logged-in users, you can change is_user_logged_in() to is_customize_preview()

    If you are happy with Powered Cache overall, it would be great if you could leave a review for us – https://wordpress.org/plugins/powered-cache/#reviews 🙂

    Thanks!

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @eugene212,

    The new version (3.2) is out! It prevents to file optimizer from running while in preview mode. I’ve tested on Colibri builder and it works without an issue. You may no longer need the custom snippet that I’ve provided earlier.

    Cheers,

    Thread Starter eugene212

    (@eugene212)

    Hi @m_uysl,

    Thanks for fixing the issue and letting me know !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Minify JS issue with Colibri Page Builder’ is closed to new replies.