Custom table save error

Support MB Custom Table Custom table save error

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #9489
    ingegnimultimedialiingegnimultimediali
    Participant

    Hi,
    I've a WordPress installation with 2 Custom Post Type (orders and products, over wp default post types).
    I'm using Custom Table (order_table) for Order CPT.
    When I save a new order, new row is correctly create and populate in custom table order_table.
    But also a new empty row (only ID e autoincrement index obviously - others columns are empty) is create in custom order_table when any post type was saved in posts table.
    Can you help me?

    #9490
    ingegnimultimedialiingegnimultimediali
    Participant

    The metabox for custom table is correctly set and view only on order post

    #9502
    Anh TranAnh Tran
    Keymaster

    Hello,

    I've just tested again with the custom table for only 1 CPT. When I save another CPT, there's nothing happened. Can you please check again? Maybe there's somewhere else that you use the same CPT.

    #9538
    ingegnimultimedialiingegnimultimediali
    Participant

    Hi,
    I’ve do several test.
    when I have a cpt with metabox with custom table I’ve seen this behavior:
    If I have other cpt without metabox there’s nothing happened when it is Saved.
    But if another cpt has only one metabox, the custom table was populate with an empty row.
    when I have more metabox for other cpt nothing happened when it is saved.
    Is there some bug?

    #9547
    Anh TranAnh Tran
    Keymaster

    Hello, can you give me the code to test? This seems to be a weird situation.

    #9550
    ingegnimultimedialiingegnimultimediali
    Participant

    Hi,
    I've replicate all on a pilvia installation.

    https://mbtest.demo.site/wp-admin/
    user: mbtest-admin
    pass: demopass

    https://app.pilvia.com/yourphpmyadmin/copper/sql.php?server=1&db=mbtest&table=wp_customtable&pos=0
    user: mbtest
    pass:h6YeC7yceywcgUE

    Scenario:

    CPT test #1 -> Test CPT test #1 (metabox with custom table wp_customtable)
    when I save CPT also wp_customtable was populate

    CPT test #2 -> no metabox
    when I save CPT nothing happened on wp_customtable

    standard posts -> (ONLY ONE METABOX) "new meta box for posts" (metabox for standard post)
    when I save new post also wp_customtable was populate with an empty row (only postId and AI)

    Pages -> two classic metabox
    when I save a new page nothing happened on wp_customtable

    #9564
    Anh TranAnh Tran
    Keymaster

    Hello, I got what you meant. Let me debug it.

    #9576
    Anh TranAnh Tran
    Keymaster

    Hi, I've just fixed the bug in the version 1.1.3. Please update and let me know how it goes.

    #9577
    ingegnimultimedialiingegnimultimediali
    Participant

    Hi,
    It seems that the problem was resolved
    thanks

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Custom table save error’ is closed to new replies.