• Resolved Armands

    (@armandsdz)


    Hi!

    In latest version 1.58.0 of plugin there seems to be a bug in base/js/admin.js where it throws a JS error when trying to open up a repeater field that has no label set – Uncaught TypeError: Cannot use ‘in’ operator to search for ‘table’ in undefined

    It’s these lines:
    // Setup Repeater Table Header if necessary.
    const itemLabel = $el.data( ‘item-label’ );
    if ( ‘table’ in itemLabel ) {

    if data-item-label is missing (which it may as php part is even checking if labels are set and don’t output if it’s missing) then it tries to find ‘table’ in undefined which it can’t and throws an error.
    Probably an additional check is needed.

    For now a rollback to previous version remedied the situation.

    Didn’t really do deep dig but even setting the label on repeater itself didn’t help as it wasn’t being output but it may be some mistake of mine, didn’t really investigate for now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexgso

    (@alexgso)

    Hello Armands,

    Thank you for the report. I’ve come up with a fix for this issue, and this fix will be included in a future Widgets Bundle update. In the meantime, I’ve prepared a build for you to use, and you can download it by clicking here.

    Before proceeding, do a backup.

    Navigate to Plugins > Installed Plugins, and deactivate SiteOrigin Widgets Bundle, and then delete it. Scroll to the top of the page and click Add New, Upload Plugin. Upload so-widgets-bundle-1.58.1-beta.zip. When prompted, activate it.

    Kind regards,
    Alex

    Plugin Support Andrew Misplon

    (@misplon)

    Hi Armands. An update has been released to resolve the issue. If any follow-up queries arise, please let us know. Cheers. Andrew

    Thread Starter Armands

    (@armandsdz)

    Thanks!

    All seems to be working fine now!

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks for the update and your support; I’m glad to hear the issue is resolved.

    Cheers for now.

    Andrew

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot use ‘in’ operator to search for ‘table’ in undefined’ is closed to new replies.