Error after upgrading Metabox

Support MB Custom Table Error after upgrading Metabox

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45376
    Rob van TuinRob van Tuin
    Participant

    Hi, after upgrading Metabox via composer I'm getting the following error when I try to save a custom post type to a custom table.

    PHP Fatal error: Uncaught TypeError: MetaBox\CustomTable\Cache::query_get(): Argument #1 ($object_id) must be of type int, WP_Post given.

    #45383
    PeterPeter
    Moderator

    Hello Rob,

    I don't see that error on my demo site. Please try to clear all caches, deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme of WordPress and check this issue again.

    #45427
    Rob van TuinRob van Tuin
    Participant

    so it took me a little but the problem is when you use a custom table with 'revision' => true on the metabox, you get the same error if you use the meta box AIO plugin and you create a custom post with revisions and add some custom field with a custom table and add revision => true to the meta box.

    #45428
    Rob van TuinRob van Tuin
    Participant

    Sorry forgot to say you have to edit the record 2/3 times for the error to appear

    #45429
    PeterPeter
    Moderator

    Thanks for the details.
    I can reproduce the issue on the demo site and I've escalated this issue to the development team to fix it. I will get back to you soon.

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