Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4571384
Uncaught TypeError: $(...).selectWoo is not a function
Open

Comments

  •  3
    Ronaldo Veiga started the conversation

    Hi,

    I’m using WPC Admin Columns Premium mainly to add and edit custom columns on the WordPress Users screen.

    After updating my site to WordPress 7, the inline editing modal stopped working on the Users page. When I click the pencil icon to edit a field, the modal opens, but it stays stuck on the loading spinner forever. It happens whether the field already has a value or is empty.

    I checked the browser console and found this error:

    Uncaught TypeError: $(...).selectWoo is not a function at wpcac_init_select2 (backend.js?ver=2.3.1:502)

    I’m currently using WPC Admin Columns Premium version 2.3.1.

    One detail that may or may not be relevant: this site does not have WooCommerce installed. I noticed the error is related to selectWoo, so maybe the plugin is expecting that dependency to be available even on the Users screen.

    As a temporary workaround, I added a small admin-only snippet that creates a fallback for $.fn.selectWoo, and after that the modal started loading and the inline editing worked again. So it looks like the issue is specifically that selectWoo is not available when the plugin tries to initialize the edit modal on users.php.

    Could you please check whether WPC Admin Columns Premium should enqueue or bundle this dependency on the Users screen when WooCommerce is not installed?

    Thanks.

  •  1,694
    Dustin replied

    Hi Ronaldo,

    Thank you for informing us about this issue.

    Please update the plugin to version 2.3.2, clear the cache, and try again. I have just fixed it.

    Best regards,
    Dustin

  •  3
    Ronaldo Veiga replied

    I can confirm that the issue has been resolved.
    Thank you.