• Resolved Allen Freeman

    (@allenfreeman)


    A user at https://northernohio.golf pointed out that he gets no activity by clicking either MENU or the search icon when the site is viewed on a mobile device, which I have confirmed on my own device.

    This is the Primary Menu, and it works just fine once the window size hits larger than mobile. But a click on mobile sizing does nothing.

    Tom at GeneratePress reviewed the site and replied:

    You have a javascript error on the page:

    Uncaught TypeError: apbctCheckAddToCartByGet is not a function

    The page is cached/minified, so I can’t see where it’s coming from, but it looks to be a plugin that you’re using.

    Javascript errors will prevent any further javascript (used to open modals, menus etc…) from working.

    ###

    Unfortunately, it is the LiteSpeed Cache plugin that is causing the conflict. When I disable the LiteSpeed Cache plugin in WordPress, the Primary Menu works as expected on mobile.

    Thoughts on this? Thank you!

    (If you review https://northernohio.golf, I still have the plugin disabled so mobile users can use the site…)

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi

    Posting here as I have the same error.

    I have deactivated each plugin and LiteSpeed is the one that is creating the issue.
    When it’s deactivated, everything works.
    When it’s activated, the first load of the home page takes a very long time, and none of my popups, buttons or menus work.
    It’s the same on both mobile and laptop.
    IIRC, there was a LiteSpeed update a few days ago.

    Thread Starter Allen Freeman

    (@allenfreeman)

    Further info for the javascript error:

    apbct is from cleantalk, an anti-spam plugin. Referenced here:
    https://cleantalk.org/help/cookies-description
    WordPress Anti-Spam cookies (list of the cookies that CleanTalk plugins use and short descriptions of these cookies):
    apbct_* – Group of cookies which are set from backend and contain information about the current user.

    The cleantalk plugin is still active on the site and the GeneratePress Primary Menu works fine.

    The menu malfunction is definitely caused by the LiteSpeed Cache plugin.

    Plugin Support qtwrk

    (@qtwrk)

    sounds like something related to JS optimization

    could you please try go to Page Optm -> JS option ->disable all JS options, purge all , see how it goes ?

    Hi

    Thanks for the speedy reply.

    I turned off all 4 settings and the functions now all work, but ‘Performance’ on PageSpeed Insights on mobile has dropped from 95+ to 62, although Desktop seems unaffected.

    Plugin Support litetim

    (@litetim)

    Hello @allenfreeman and @jasperdemann
    I am sorry for the problems you have.

    These kind of error appear because of JS minification OR combine.
    There is this page that will help you identify the file that needs to be ignored: https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/
    Setting I am talking about is: https://docs.litespeedtech.com/lscache/lscwp/pageopt/#js-excludes

    Okay, thanks.
    I’ll give that a try tomorrow as it’s bedtime here now.
    I’ll let you know how it goes.

    Plugin Support qtwrk

    (@qtwrk)

    okay , now please enable them back one by one , to narrow down which option that is , then we will see what to do next.

    The issue is with Load JS Deferred.
    If I turn that off, all the functions are working but the site is still slow.

    I followed the troubleshooting instructions and found three files in Network/JS/Console:
    /wp-content/uploads/2023/09/cropped-google.favicon.png
    jquery-migrate.min.js?ver=3.4.1
    frontend-modules.min.js?ver=3.23.4
    The top one is highlighted in red and has GET and 404 (Not Found) on the same line, and the bottom two have [Violation].
    I added all three to JS Deferred / Delayed Excludes and used Purge All but the problem still remains.
    The site address is https://vital50plus.com/

    Plugin Support litetim

    (@litetim)

    What did you added in exclude?
    Should be written: jquery-migrate and frontend-modules

    I deleted my entries and added yours.
    No change.

    Plugin Support litetim

    (@litetim)

    @jasperdemann Let’s try a different version of LSC
    Set Load JS Deferred to Delayed? and remove the exclusions added.
    Install the version of LSC from this link: https://github.com/timotei-litespeed/lscache_wp/commit/40849c9649e08c083c1f0e650471247bb041ad77 by going to Beta Test tab: https://docs.litespeedtech.com/lscache/lscwp/toolbox/#beta-test-tab1
    Paste the link and click Upgrade.
    Version installed is 6.5.0.2(latest at this moment) with some changes to how Defer logic is built

    If you test it, please keep me updated.

    • This reply was modified 2 months, 2 weeks ago by litetim.
    • This reply was modified 2 months, 2 weeks ago by litetim.
    Thread Starter Allen Freeman

    (@allenfreeman)

    I’ve been out of the office for a few days and am now back. Later today, I’ll go back to the initial suggestions posted here, see how that works out, and report back.

    (But I must say, if I’m following all of this, you guys seem to have gone way off of my initial topic post about a navigation display issue between GP, cleantalk and LiteSpeed Cache. You should have started a new separate thread…)

    Plugin Support litetim

    (@litetim)

    @allenfreeman yes, you are right


    If further help is needed @jasperdemann please create a new topic or create a ticket by sending email to address: support at litespeedtech.com

    Yup.

    Thread Starter Allen Freeman

    (@allenfreeman)

    Per this earlier instruction:

    sounds like something related to JS optimization. could you please try go to Page Optm -> JS option ->disable all JS options, purge all

    Yes, that did the trick. Thank you!

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