Sensei: Uncaught TypeError: jQuery(...).select2 is not a function

Created on 25 Jan 2019  路  5Comments  路  Source: Automattic/sensei

Reported in 1747502-zen

I see this javascript error in all my admin pages. The error is being caused by this code which is loaded on every admin page:

jQuery( '#lesson-order-course' ).select2( { width: 'resolve' } );

This should only be used on /wp-admin/edit.php?post_type=lesson&page=lesson-order, no?

Related: #1530

[Pri] Low [Status] Accepted [Type] Bug

Most helpful comment

No, the PR doesn't fix that issue.

All 5 comments

@richardmtl What are the consequences of this error? Is there any functionality that's not working properly?

No consequences that I can see. So probably a lower-priority bug. :)

Fixed in 2.0.0.

We probably want to close https://github.com/Automattic/sensei/issues/1530 too maybe?

No, the PR doesn't fix that issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danjjohnson picture danjjohnson  路  7Comments

danjjohnson picture danjjohnson  路  6Comments

danjjohnson picture danjjohnson  路  5Comments

jenhooks picture jenhooks  路  6Comments

cycomarcooo picture cycomarcooo  路  5Comments