• Resolved gszucs

    (@gszucs)


    Hi there!

    I’m using the latest Premium wpupg and wprm plugins and recently I have found a new issue.

    It only seems to be reproducable on iPhone (at least it works well on desktop and on my Galaxy S10), however it breaks other parts of the webpage (e.g. the hamburger menu doesn’t work).

    The page I linked is a simple Beaver Builder page, with pretty much nothing on it except a grid limited to 5 recipes and a login prompt. If I hide the grid, the page works correctly!

    Could you please investigate what’s going wrong here?

    The exception in the console is:
    SyntaxError: Invalid regular expression: nothing to repeat.

    This error seems to be bubbling up from Fuse.js v3.4.5.

    Thanks so much for looking into it!

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

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

    (@brechtvds)

    Could you disable the JavaScript minification feature of your caching plugin for a second?

    Thread Starter gszucs

    (@gszucs)

    @brechtvds I’ve disabled all JS optimization in WPRocket, but now it seems to be working fine.

    Thread Starter gszucs

    (@gszucs)

    Do you have any idea though? Disabling JS optimization isn’t really an option for me.

    Plugin Author Brecht

    (@brechtvds)

    Those JS optimization features can cause all sorts of issues, so hard to tell what the actual problem is.

    Our JS code is already combined and minified. So you could try excluding the /wp-ultimate-post-grid/dist/ folder from getting optimized.

    Thread Starter gszucs

    (@gszucs)

    Alright, that sounds like a plan! I’ll try that, thanks so much for taking a look so quickly and especially on the weekend!

    Thread Starter gszucs

    (@gszucs)

    @brechtvds It seems like the issue comes from the minification not the bundling.

    If you think it’s worth investigating I created a diffchecker for you to see what’s the difference between your minified js file and the one created by WPRocket (the issue probably comes from those whitespaces removed from the regexp): https://www.diffchecker.com/rPFxYsXt

    As for other people, if you would be facing the same problem, make sure to properly exclude the file (use the original path, not the busting cache and make sure to target the premium folder):

    /wp-content/plugins/wp-ultimate-post-grid-premium/dist/(.*).js

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Grid throws exception on iPhone and breaks other page functionality’ is closed to new replies.