Make WordPress Core

Opened 3 years ago

Closed 6 months ago

Last modified 3 months ago

#59355 closed defect (bug) (duplicate)

TypeError: Cannot read properties of undefined (reading 'hasClass') in wp-auth-check.min.js

Reported by: chamois_blanc Owned by:
Priority: normal Milestone:
Component: Login and Registration Version: 6.3.1
Severity: normal Keywords: reporter-feedback
Cc: Focuses: javascript

Description

Here is the trace:

at
HTMLDocument.<anonymous>(.../wp-includes/js/wp-auth-check.min.js:2:655)
at
HTMLDocument.dispatch(.../wp-admin/load-scripts.php:2:39997)
at
v.handle(.../wp-admin/load-scripts.php:2:37968)
at
Object.trigger(.../wp-admin/load-scripts.php:2:70063)
at
HTMLDocument.<anonymous>(.../wp-admin/load-scripts.php:2:70665)
at
Function.each(.../wp-admin/load-scripts.php:2:3129)
at
e.<computed>.each(.../wp-admin/load-scripts.php:2:1594)
at
e.<computed>.trigger(.../wp-admin/load-scripts.php:2:70640)
at
Object.<anonymous>(https://wednesdaynighthop.com/wp-includes/js/heartbeat.min.js:2:2186)
at
c(.../wp-admin/load-scripts.php:2:25266)

Change History (4)

#1 @chamois_blanc
3 years ago

It's probably here:

                        if ( ! data['wp-auth-check'] && wrap.hasClass( 'hidden' ) && ! tempHidden ) {
                                show();
                        } else if ( data['wp-auth-check'] && ! wrap.hasClass( 'hidden' ) ) {
                                hide();
                        }

maybe use wrap?.hasClass() instead?

#2 @johnbillion
22 months ago

  • Component SecurityLogin and Registration
  • Keywords reporter-feedback added

@chamois_blanc Sorry that nobody got back to you on this. Can you provide some further information please? Is it still an issue? Where exactly did the problem occur? Is it reproducible with no plugins active and one of the default themes in use?

Cheers!

#3 @siliconforks
6 months ago

  • Resolutionduplicate
  • Status newclosed

I think it's probably safe to close this as a duplicate of #64403.

#4 @sabernhardt
3 months ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.