• Resolved Chuckie

    (@ajtruckle)


    Do you know why I get these console errors?

    jquery.min.js?ver=3.7.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'addClass') TypeError: Cannot read properties of undefined (reading 'addClass')
        at Wpcf7cfForm.displayFields (https://www.publictalksoftware.co.uk/wp-content/cache/autoptimize/js/autoptimize_e817f69e9a28856f1ed2938b695bfe92.js:483:14)
        at https://www.publictalksoftware.co.uk/wp-content/cache/autoptimize/js/autoptimize_e817f69e9a28856f1ed2938b695bfe92.js:539:1565
        at Array.forEach (<anonymous>)
        at HTMLDocument.<anonymous> (https://www.publictalksoftware.co.uk/wp-content/cache/autoptimize/js/autoptimize_e817f69e9a28856f1ed2938b695bfe92.js:539:1543)
        at e (https://www.publictalksoftware.co.uk/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
        at t (https://www.publictalksoftware.co.uk/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
    ce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2
    jquery.min.js?ver=3.7.1:2 Uncaught TypeError: Cannot read properties of undefined (reading 'addClass')
        at Wpcf7cfForm.displayFields (autoptimize_e817f69e9a28856f1ed2938b695bfe92.js:483:14)
        at autoptimize_e817f69e9a28856f1ed2938b695bfe92.js:539:1565
        at Array.forEach (<anonymous>)
        at HTMLDocument.<anonymous> (autoptimize_e817f69e9a28856f1ed2938b695bfe92.js:539:1543)
        at e (jquery.min.js?ver=3.7.1:2:27028)
        at t (jquery.min.js?ver=3.7.1:2:27330)

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Site Reviews does not use jQuery.

    Wpcf7cfForm is the Contact Form 7 plugin. Probably you are getting this due to your optimisations.

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptirocket=1 to the URL.

    if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.

    hope this helps debugging,
    frank (ao dev)

    Thread Starter Chuckie

    (@ajtruckle)

    @optimizingmatters using that URL does not change the output I am getting in Google Chrome.

    Thread Starter Chuckie

    (@ajtruckle)

    @optimizingmatters

    Actually:

    JQMIGRATE: Migrate is installed, version 3.4.1
    jquery.min.js?ver=3.7.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'addClass') TypeError: Cannot read properties of undefined (reading 'addClass')
        at Wpcf7cfForm.displayFields (https://www.publictalksoftware.co.uk/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.4.5:252:18)
        at https://www.publictalksoftware.co.uk/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.4.5:1490:11
        at Array.forEach (<anonymous>)
        at HTMLDocument.<anonymous> (https://www.publictalksoftware.co.uk/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.4.5:1489:19)
        at e (https://www.publictalksoftware.co.uk/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
        at t (https://www.publictalksoftware.co.uk/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
    ce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2
    jquery.min.js?ver=3.7.1:2 Uncaught TypeError: Cannot read properties of undefined (reading 'addClass')
        at Wpcf7cfForm.displayFields (scripts.js?ver=2.4.5:252:18)
        at scripts.js?ver=2.4.5:1490:11
        at Array.forEach (<anonymous>)
        at HTMLDocument.<anonymous> (scripts.js?ver=2.4.5:1489:19)
        at e (jquery.min.js?ver=3.7.1:2:27028)
        at t (jquery.min.js?ver=3.7.1:2:27330)
    Wpcf7cfForm.displayFields @ scripts.js?ver=2.4.5:252
    (anonymous) @ scripts.js?ver=2.4.5:1490
    (anonymous) @ scripts.js?ver=2.4.5:1489
    e @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    ce.readyException @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    e @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2

    OK, so although you still get errors, there is no mention of Autoptimize any more, which indicates the problem is not with AO as such.

    Plugin Author Gemini Labs

    (@geminilabs)

    Check if you are conditionally loading jQuery on your page. If so, then that is breaking the Contact Form 7 plugin.

    Or, jQuery may be loading on your page after the Contact Form 7 javascript.

    In any case, double-check any script loading optimizations you may have enabled on your site.

    Thread Starter Chuckie

    (@ajtruckle)

    Hi

    I had feedback here:

    Console errors | www.remarpro.com

    They say I need to remove the wpcf7-form class from this form:

    <form class="glsr-filters-form glsr-form wpcf7-form" method="get" >

    Because it is a non-CF7 form.

    Plugin Author Gemini Labs

    (@geminilabs)

    In that case, change the Site Reviews “Plugin Style” setting back to the default. The Contact Form 7 plugin style won’t work if you are conditionally loading the Contact Form 7 assets.

    Thread Starter Chuckie

    (@ajtruckle)

    Done. Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Console errors’ is closed to new replies.