• Resolved Argentum

    (@argentum)


    Hi,

    I can add a Tablepress Elementor Widget. But I can’t delete it. When I try to delete it, the dev console throws errors.

    Error: A “url” property or function must be specified
    TypeError: Cannot read properties of null (reading ‘model’)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @argentum,

    Thanks for reporting this, I really appreciate it!

    Indeed, I can confirm this problem. The root cause is a bug in Elementor, but somehow the Elementor team hasn’t yet fixed it, see https://github.com/elementor/elementor/issues/5933 and https://github.com/elementor/elementor/issues/3292

    I will however implement a solution in TablePress, and release TablePress 3.1.1 shortly!

    That should fix it for new pages, but unfortunately, I don’t know how you can then remove the “broken” widget. This might have to be done in the database.

    Best wishes,
    Tobias

    Thread Starter Argentum

    (@argentum)

    >> That should fix it for new pages, but unfortunately, I don’t know how you can then remove the “broken” widget. This might have to be done in the database.

    That was not what I wanted to hear. :0

    The github issues you reference are old., really old. What is your Tablepress widget doing, so that it breaks this bad? Didn’t you test with Elementor?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Of course I did test with Elementor, but apparently I did not properly test deleting the widget or just didn’t notice the error then. I’m really sorry for that!

    Yes, these issues are old, but the problem remains: If a control in an Elementor widget (here specifically, the dropdown in the widget from which you select the table) has the name “id”, the widget-deletion in Elementor breaks. This is not documented by Elementor anywhere, so that I did name that dropdown “id” (because it’s the table ID). These two GitHub issues show that Elementor knows about this, but didn’t and doesn’t care to do anything about it (they could either allow the “id” name or actively prevent it in their code).

    I will be fixing this by renaming that dropdown to “table_id”, so that this won’t happen anymore. However, existing widgets (in their internal data) will still have the old name “id”, and I don’t know how to remove that automatically. Removing that “id” data from the raw page data might be the best solution, or re-creating the page (if it’s not too complex) will work.

    Best wishes,
    Tobias

    Thread Starter Argentum

    (@argentum)

    I manually deleted this from a postmeta post. “,{“id”:”a18ad2f”,”elType”:”widget”,”settings”:[],”elements”:[],”widgetType”:”tablepress-table”}”. It seems to have worked. Though, it is scary to edit json in the database.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Yes, I think this is the correct code (I’m not too familiar with these Elementor internals).

    Starting with TablePress 3.1.1, coming tomorrow, this problem should then no longer happen.

    Sorry again for the extra trouble, and HUGE thanks for reporting this!

    Best wishes,
    Tobias

    Thread Starter Argentum

    (@argentum)

    No, thank you for an excellent plugin!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @argentum,

    Thanks for the kind words, I really appreciate it!

    Quick update here 🙂 The mentioned update, TablePress 3.1.1, is now available: https://tablepress.org/release-announcement-tablepress-3-1/#tablepress-3-1-1

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.