Forum Replies Created
-
AuthorPosts
-
Hi Mike,
thanks for the functions.php tip, I was able to find the code in there.
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );
After removing it, the site works again.
Thank you!
Best regards
StephSeptember 12, 2022 at 11:54 am in reply to: Uncaught Error: Syntax error, unrecognized expression #1364723Thank you Rikard, please close the topic.
September 9, 2022 at 4:23 pm in reply to: Uncaught Error: Syntax error, unrecognized expression #1364435Hi Ismael
Thanks so much. Sorry for bothering you.
I was not aware of this change.
Best, JaySeptember 8, 2022 at 7:34 pm in reply to: Uncaught Error: Syntax error, unrecognized expression #1364380Thanks Rikard.
Credentials in the private area.Hi Rikard,
you can go ahead and close this topic, thank you.
Best regards
Hi Rikard,
that did it – thank you!
Best regards
StephOne more update. Why does wordpress want to validate elements I have deleted already?
Hi Rikard
I have another update on that topic.
I tried to narrow down the error by deleting element after element in this site – now most of the page is empty, but the error is still there – please have a look at the link below.
I ve ended up getting another (3rd) console error while above mentioned site was still in draft. I will add a screenshot link below.
I have no idea how to investigate this any further unfortunately.BR, Jay
Hi Rikard
Thanks for your feedback.
Update: to get rid of the console error, I had to remove all of the tabs from the tab section. It does not matter if I delete from the beginning of the tab bar to the end or the other way round. I have to conclude, the error just disappears if all are deleted. What can we conclude from there?BR, Jay
Hi Rikard,
I’ve disabled (and then again enabled) all plugins but the error in the console of the page in question is still there either way.
I can’t reproduce the issue with the post/page preview currently either – a theme update might have taken care of it already. The page is still, inexplicably, broken though and we’re not sure what happened or how to fix it without having to rebuild the whole thing.
I’ve included an image link of the console error.
Best regards
Hi Rikard,
I’ve attached a new link that will be valid for 1 week.
Best regards
Hi Rikard,
we’ve updated to 4.8.6 but, unfortunately, both issues are still occuring.
Best regards
Hi Jordan,
unfortunately we’re encountering issues like this across multiple sites.
Is there any chance this could be analyzed properly and fixed in an upcoming theme update?Best regards,
StephHi Ismael,
disabling the User Switching plugin didn’t do anything for us. Disabling User Role Editor Pro plugin solved the issue but we have this combination of theme and plugin across multiple pages and don’t have this error usually.
However, it reminded me of a similar issue we had a while ago: https://kriesi.at/support/topic/maintenance-page-in-footer/#post-1203426
I’ve tried changing the class-avia-custom-pages.php file as described in the post I’ve linked to, which resolved the issue.
Best regards
StephHi Ismael,
only indicating it and not using it as custom cookie did the trick, thank you!
We’ve been adding it as custom cookie because of a specification our customer gave us for the cookie banner.
Since our issue’s been resolved, the topic can be closed, thanks.
Hi Ismael,
we’ve moved the cookie banner to a test page, you can find the new login data in the private content field.
Changing the class of the parent div container seemed to work. We added a little styling for the toggle to make it checked as well.
This works for accepting all cookies as well as opening the modal and saving settings there.However, if you change the cookie settings after initally accepting (main navigation link “cookies” reopens the settings modal), the custom cookie PHPSESSIDDisabled will be true, blocking our cookie. Saving it again will unblock it again, the value switching between true and false. The goal is for it to stay “false” though so PHPSESSID is always allowed (being defined as an essential cookie)
The classes of the parent div seem to match now, so the problem may lie elsewhere.
Hi Victoria,
we’re wondering about the ‘link settings’ enfold offers for multiple modules, specifically when the type ‘page’ is selected. A screenshot of a button module with the link settings in question is attached.
How is enfold saving the references page? Is the page-id used to store this information and ensure that title and slug can be changed? Or does enfold save some other kind of information to identify the selected page?
Best regards
StephHi Mike,
yes the thread can be closed, thank you.
BR
The plugin will create a new page and then replace the old page. So while it is scheduled there are two pages with the same title in the pages list. After the scheduled time has passed, the original page is gone and the new one took its place.
BR, Jay
Hi Mike,
we’ve found what’s causing the error and it was indeed a polyfill issue.
In IE11 some ‘modern’ JS functions don’t work, which is why a lot of libraries stock up on them. WordPress is doing this with wp-polyfill, Google Maps does the same thing – these two code parts collided.
Our solution was to only load 90% of the polyfills since the missing 10% will be delivered by Google Maps. wp-polyfill will assume that the browser already knows the functions and therefore this part will not be loaded double.
To achieve that, we’ve added the following code in the last line of our functions.php
// load custom polyfill for IE11 <-> Google Maps collision function maps_my_custom_js() { echo '<script src="https://polyfill.io/v3/polyfill.js?features=Symbol%2CObject.getOwnPropertySymbols%2CSymbol.asyncIterator%2CSymbol.for%2CSymbol.hasInstance%2CSymbol.isConcatSpreadable%2CSymbol.iterator%2CSymbol.keyFor%2CSymbol.match%2CSymbol.replace%2CSymbol.prototype.description%2CSymbol.search%2CSymbol.species%2CSymbol.split%2CSymbol.toPrimitive%2CSymbol.toStringTag%2CSymbol.unscopables"></script>'; } add_action( 'wp_head', 'maps_my_custom_js' );
That solved the issue for us and the map is being displayed again.
Best regards
StephHi Mike,
the script error you referred to seems to be from a Google API JS (see screenshot).
As for the site where the SLP is working: it’s not identical but all the plugins our ‘broken’ site has are installed on the working site as well (and then some). We’ve also compared the plugin versions for possible discrepancies but they’re the same ones.
Not sure if the polyfill errors are related as i only have access to our minified version of the polyfill JS stated in the error.
Best regards,
StephHi Mike,
each of the plugins we have on this site, is integrated with the same version on another page of ours where Store Locator Plus works on IE11 as well.
I’ve attached a screenshot of the errors our IE11 console is giving us.
We’ve had enfold running on Gutenberg at first but switched to WP classic editor as we saw the polyfill error. Could it still have something to do with that?Best regards
StephHi Rikard,
sorry for the late reply – yes everything is working now.
Best regards
StephHi Victoria,
thanks for the tip!
As far as I’ve seen now, the error originally occurred because a 1/4-row above wasn’t filled with four columns.
That somehow had effects on the following rows and arranged them weirdly that way.BR
StephHi,
no, we haven’t been using the Google Services > Google Analytics field, we integrated our Google Tag Manager with the Tracking Code in our functions.php in order to make the page more customer friendly. Google Analytics and FB Pixel are in the Google Tag Manager, being set on the site via the GTM script. They’re not integrated directly into our site, only the Google Tag Manager is.
We were hoping to use [av_privacy_google_tracking][/av_privacy_google_tracking] to disable the Google Analytics cookies but it hasn’t been working.
I’ve put additional Custom Cookies for Analytics now, the FB ones had already been set.
The behaviour is still unchanged; the Google Analytics and FB Pixel Cookies are being set upon page load and disabling them with the toggle switch just adds an additional cookie, claiming it’s disabled. The cookies aren’t being deleted though.
Our issue seems to be that Cookies from the GTM cannot be blocked with Custom Cookies. Would this change if we integrated the Google Tag Manager snippet with the Google Services > Google Analytics field instead? (assuming this integration is possible)
Best regards
StephHi Ismael,
the FB Pixel as well as Google Analytics is integrated into the website via the Google Tag Manager.
We can’t seem to block these cookie, therefore they’re being set upon page load. They’re already set as Custom Cookies but that doesn’t have any effect on the behaviou.Best regards
StephHi Ismael,
the jQuery error originated from the Google Tag Manager and has been resolved.
Unfortunately, the cookie behaviour still persists.
Best regards
StephHi,
added them again.
Kind regards,
StephHi,
the FB pixel snippet is still on the site. I’ve tried it again and made a screen recording of the behaviour in question which you’ll find in the private section.
I was using Chrome Version 81.0.4044.138 on macOS Catalina Version 10.15.4 (19E287)Also tried it on Windows 10 with Chrome and had the same behaviour there.
Kind regards,
StephDid you have a chance to take a look at this already?
-
AuthorPosts