Problems since update – Could not validate nonce / JS Uncaught Type errors

This topic has 12 replies, 3 voices, and was last updated 3 years ago ago by Rose Tyler

  • Avatar: laurena86
    laurena86
    Participant
    March 22, 2021 at 19:49

    Hello

    I updated the theme this morning and today we have had lots of reports of blank product pages which return a JS error in console:

    “Uncaught TypeError: Cannot read property ‘classList’ of null at Object.init (front.min.js:1) at front.min.js:1”

    I figured out that if I go in the backend and edit the product I have to remove all the apostrophes and speechmarks, resave and then it works – is this a known issue?

    A quick google brings up this? “It means that your template do not include an HTML element which is required by the javascript. So when the JS try to access that element to change the “class”, it do not retrieve it and you got the error. In order to fix it, it would require to know what is the concerned element.”

    The second issue is that customers are reporting that when they try and checkout on woocommerce, they get a “Could not validate nonce.” error message.

    Help would be greatly received! I have included the site details in the private area.

    Many thanks
    Lauren

    Please, contact administrator
    for this information.
    11 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 23, 2021 at 10:39

    Hello,

    1) Provide us with link to the product where you have the “Uncaught TypeError: Cannot read property ‘classList’ of null”
    2) I did not face issues with checkout the https://prnt.sc/10tb00z Describe your actions step by step to get the mentioned issue. Did you try to enable default Storefront theme and test the order? Do you have this issue?
    3) I see that third-party plugin generates errors https://prnt.sc/10tb438 So, contact plugin author to fix the problem because it’s not good.

    Regards

    Avatar: laurena86
    laurena86
    Participant
    March 23, 2021 at 12:53

    Hi Olga

    1. The problem is I have already fixed the 3 examples I have been sent by replacing all the apostrophes and speechmarks in text editor, so the problem doesn’t persist on those pages (this was one: https://www.cherryred.co.uk/product/the-toy-dolls-the-albums-1983-87-5cd-box-set/). It seems to happen on some and not others – and of the 4000+ products we have I have no way of knowing if there are more until someone stumbles across one.

    2) I think probably because you enabled pay cash on delivery – whereas the customers in question are having an issue with cards or paypal.

    Also I have just noticed something else that has gone wrong since yesterday’s theme update: On our front page, there are sections where I have used 8theme WordPress Bakery/VC modules for Products, Blog and Banner With Mask – which now are not showing:

    Products:
    Back End 8theme Widget: https://prnt.sc/10tf31r
    Front End Products Not Showing: https://prnt.sc/10tfb5h

    Blog: (shows but the date overlaps the title)
    Back End: https://prnt.sc/10tf4ct
    Front End Overlapping: https://prnt.sc/10tfb5h

    Banner With Mask:
    Back End 8theme Widget: https://prnt.sc/10tf571
    Front End Widget Missing: https://prnt.sc/10tfeu8

    If you look at the front end printscreens you’ll see none of these elements appear except Blog but with the aforementioned glitches.

    I have the latest version of WP Bakery (6.6)

    Cheers
    Lauren

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 24, 2021 at 12:40

    Hello,

    1) There is no error on that product anymore. Provide us with the link at least to one product with the error. We need to study it in more detail.

    2) We can’t check the other gateways because it requires real payment information. Go to Appearance > Themes > install and activate Storefront theme and check one of the mentioned gateways. Do you have the mentioned error? Do you get the mentioned error with the XStore by yourself?

    3) Provide us with FTP access to your site to check the issue with the products and banner. Provide link to page with the blog issue because you provided the wrong screenshot of the issue and I don’t understand where to check it.

    Regards

    Avatar: laurena86
    laurena86
    Participant
    March 24, 2021 at 19:19

    Hi there

    1 & 2 I will need to look int o more to find more examples.

    But 3) – The issue is on the homepage – https://www.cherryred.co.uk/ – which is the screenshots I sent.

    FTP logins in private area.

    Many thanks!
    Lauren

    Please contact administrator
    for this information.
    Avatar: laurena86
    laurena86
    Participant
    March 25, 2021 at 18:31

    Hi

    Is there a solution to this issue with your 8theme VC widgets please?

    Our homepage cherryred.co.uk is still not pulling in Blog images, nor Products or Banner with mask items in the spaces I have indicated in my screenshots.

    Many thanks
    Lauren

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 25, 2021 at 19:00

    Hello,

    3) We can’t connect – https://prnt.sc/10vavlt Please check. Is there restriction by ip or something else?

    Regards

    Avatar: laurena86
    laurena86
    Participant
    March 26, 2021 at 12:48

    Hi Rose

    No there isn’t a restriction on it – can you try via cPanel? Logins in private area.

    Below are all the errors showing in console when I inspect these areas on the homepage where the VC 8theme widgets should be:

    jquery.min.js:2 jQuery.Deferred exception: swipers is not defined ReferenceError: swipers is not defined
    at HTMLDivElement. (https://www.cherryred.co.uk/wp-content/themes/xstore/js/etheme.min.js:1:181395)
    at Function.each (https://www.cherryred.co.uk/wp-includes/js/jquery/jquery.min.js:2:2976)
    at s.fn.init.each (https://www.cherryred.co.uk/wp-includes/js/jquery/jquery.min.js:2:1454)
    at etTheme.autoinit.tabs.etTheme.tabs (https://www.cherryred.co.uk/wp-content/themes/xstore/js/etheme.min.js:1:181244)
    at Function.
    (https://www.cherryred.co.uk/wp-content/themes/xstore/js/etheme.min.js:1:156063)
    at Function.each (https://www.cherryred.co.uk/wp-includes/js/jquery/jquery.min.js:2:3026)
    at Object.etTheme.init (https://www.cherryred.co.uk/wp-content/themes/xstore/js/etheme.min.js:1:156027)
    at HTMLDocument.
    (https://www.cherryred.co.uk/wp-content/themes/xstore/js/etheme.min.js:1:156135)
    at e (https://www.cherryred.co.uk/wp-includes/js/jquery/jquery.min.js:2:30005)
    at t (https://www.cherryred.co.uk/wp-includes/js/jquery/jquery.min.js:2:30307) undefined
    S.Deferred.exceptionHook @ jquery.min.js:2
    app.js:5 works
    jquery.min.js:2 Uncaught ReferenceError: swipers is not defined
    at HTMLDivElement.
    (etheme.min.js:1)
    at Function.each (jquery.min.js:2)
    at s.fn.init.each (jquery.min.js:2)
    at etTheme.autoinit.tabs.etTheme.tabs (etheme.min.js:1)
    at Function.
    (etheme.min.js:1)
    at Function.each (jquery.min.js:2)
    at Object.etTheme.init (etheme.min.js:1)
    at HTMLDocument.
    (etheme.min.js:1)
    at e (jquery.min.js:2)
    at t (jquery.min.js:2)
    FB7.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    app.js:5 works
    DevTools failed to load SourceMap: Could not load content for http://ent/web-sourcemaps/widget-4-3b6033ff5622.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
    DevTools failed to load SourceMap: Could not load content for http://ent/web-sourcemaps/widget-8-5842af0eec73.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
    DevTools failed to load SourceMap: Could not load content for http://ent/web-sourcemaps/widget-9-6301d869b37a.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
    DevTools failed to load SourceMap: Could not load content for http://ent/web-sourcemaps/widget-0-9f8639071487.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
    DevTools failed to load SourceMap: Could not load content for http://ent/web-sourcemaps/widget-2-8eb5bcb398d6.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
    DevTools failed to load SourceMap: Could not load content for http://ent/web-sourcemaps/widget-1-d327b4afd7b4.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED

    Also regarding the 1st problem with certain products not showing up – here is another example a colleague has found: https://www.cherryred.co.uk/product/oi-the-albums-6cd-box-set/

    The error here is:

    Uncaught TypeError: Cannot read property ‘classList’ of null
    at Object.init (front.min.js:1)
    at front.min.js:1

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 26, 2021 at 16:20

    Hi,

    Thanks for the reply. We need access for FTP, not cpanel. Contact your hosting provider and ask to check why we can’t login https://prnt.sc/10w8r0b using credentials that you provided.

    Regards

    Avatar: laurena86
    laurena86
    Participant
    March 26, 2021 at 16:30

    Through cPanel you can quite easily go to file manager and access via there. I don’t know why the FTP is not working but I get the impression you are reluctnat to be of any help here – I have a boss really annoyed about the fact that your update has broken our homepage and we are losing business.

    You should be able to see from all the info and error messages I have provided what the conflict is at any case.

    I can’t waste much more time, please provide an answer to the load of js errors that are attributed to your theme.

    Also please provide your IP address so I can let the hosts know – although it is working fine for me, them and everyone else who has the same logins.

    Thanks
    Lauren

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 27, 2021 at 08:49

    Hello,

    I’m sorry about those troubles and the delay in answering!
    To be able to pass the problem to our developers I need to get FTP access.
    Here are the IPs of the experts who will work on your issues: 176.98.69.38 and 176.98.69.180 Add them to the whitelist.
    Meanwhile, I will ask our technicians if we can help via Cpanel. Due to the weekend, it may take some time, but your request already is market as a critical one for us.
    Reply back with news about FTP access, and do not change previously provided credentials. Thanks in advance.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 27, 2021 at 10:56

    Hello,

    Fixed. Clear cache and check now.
    1) Fix for the problem on your Home page will be included in the next update also.
    2) To fix this error https://prnt.sc/10wx7ia on single product page – https://prnt.sc/10wx7su (Theme Options > Speed optimization). There is a 3rd party plugin that gives an error when this option is disabled.

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.