Skip to content

JS errors in Ibexa 4.6.18 Admin UI when using Netgen Tags 5.2.4 #174

@andrea-goitia-a

Description

@andrea-goitia-a

Hello!
when using Netgen Tags Bundle 5.2.4 with Ibexa DXP 4.6.18, we are facing the following issues with the eztags field.
Initially, we couldn't even open Content Types containing an eztags field due to this error: 'Key TagsValueValidator does not exist as the sequence/mapping is empty in @NetgenTags/ibexa/admin/field/edit/view/default.html.twig. '
We changed the order of the NetgenTags Bundle to last in bundle.php.

After that, the field works, but the browser console now shows JS errors such as:

  • Cannot read properties of undefined (reading 'closest')
  • Cannot read properties of undefined (reading, 'locale')
  • Sometimes also reading 'id'

The errors look like this:
ibexa-admin-ui-content-edit-parts-js.js:97388 Uncaught TypeError: Cannot read properties of undefined (reading 'closest')
at TagsValidator.validateTags (ibexa-admin-ui-content-edit-parts-js.js:97388:50)
at TagsValidator.validateField (ibexa-admin-ui-content-edit-parts-js.js:92227:53)
at MutationObserver. (ibexa-admin-ui-content-edit-parts-js.js:97414:29)

and:
jquery.netgen_tags.js:81 Uncaught TypeError: Cannot read properties of undefined (reading 'locale')
at new Tag (jquery.netgen_tags.js:81:27)
at Base.add (jquery.netgen_tags.js:841:15)
at Base.handler_browse_tag (jquery.netgen_tags.js:603:10)
at HTMLAnchorElement.i (jquery.min.js:2:86755)
at HTMLDivElement.dispatch (jquery.min.js:2:40035)
at v.handle (jquery.min.js:2:38006)

Do you know if this could be because of a compatibility issue with this version of Ibexa, or if there is something else we should check?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions