-
Allen Freeman
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.
But the menu works just fine once the window size hits larger than mobile, i.e. on a laptop, desktop, ipad.
The issue may be related to the recent theme updates? It was working correctly before.
Thank you!
-
Allen Freeman
(To be more exact, the Primary Navigation works on iPad in wide mode when the full menu is shown, but fails just like on a mobile device when rendered tall, and the MENU link is displayed.)
-
Hi there,
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.
-
Allen Freeman
Thanks Tom.
I turned off LiteSpeed Cache. Can you better pinpoint which plugin might be causing the error?
We have so many plugins running, doing the one-by-one route is a project…
-
Allen Freeman
Argh, I think I found it. But it’s a problem. It’s the Litespeed Cache plugin itself.
I turned off the cache option in the plugin first. No difference.
Then just now, I deactivated the entirety of that plugin. And the menu started working again.
Any thoughts or ideas on how to be able to use that cache plugin and the Generate Press primary menu, too?
-
Any thoughts or ideas on how to be able to use that cache plugin and the Generate Press primary menu, too?
I would recommend checking with LiteSpeed’s support team. They should be familiar with GP and know the steps need to be taken.
-
Allen Freeman
Thanks. I’ve posted a support request to the LiteSpeed Cache plugin forum, and will report back with their response.
-
The
apbctCheckAddToCartByGet
function looks like a function coming from a third-party plugin.apbct
should be their prefix if that offers any clues. -
Allen Freeman
apbct is from cleantalk, an anti-spam plugin. They reference it 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.But 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.
Maybe apbct is causing a javascript error, but it’s not the culprit for the GP menu issue?
-
Alvind
Another thing to check: The issue could be related to a conflict between the CleanTalk and LiteSpeed plugins. LiteSpeed might be causing CleanTalk to throw a JavaScript error, which could then affect the menu functionality.
-
Allen Freeman
I don’t know how to “check” that. Nor what to do with the info if I did…
-
Alvind
I mean that’s something for LiteSpeed support to possibly check if they need additional context on the issue.
-
Allen Freeman
Got it, thx. I’ve added the info to the LiteSpeed support ticket.
-
Allen Freeman
*
-
Alvind
Let us know how it goes.
-
Allen Freeman
The issue was a javascript combine setting in the LiteSpeed Cache plugin.
The fix: under Page Optm -> JS option -> disable all the JS options, then purge all
Thanks for all of the responses!
- You must be logged in to reply to this topic.