Custom table save error
Support › MB Custom Table › Custom table save error
- This topic has 8 replies, 2 voices, and was last updated 7 years, 7 months ago by
ingegnimultimediali.
-
AuthorPosts
-
May 9, 2018 at 2:18 PM #9489
ingegnimultimediali
ParticipantHi,
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?May 9, 2018 at 2:20 PM #9490ingegnimultimediali
ParticipantThe metabox for custom table is correctly set and view only on order post
May 10, 2018 at 5:51 PM #9502Anh Tran
KeymasterHello,
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.
May 15, 2018 at 2:57 AM #9538ingegnimultimediali
ParticipantHi,
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?May 15, 2018 at 3:38 PM #9547Anh Tran
KeymasterHello, can you give me the code to test? This seems to be a weird situation.
May 15, 2018 at 4:09 PM #9550ingegnimultimediali
ParticipantHi,
I've replicate all on a pilvia installation.https://mbtest.demo.site/wp-admin/
user: mbtest-admin
pass: demopasshttps://app.pilvia.com/yourphpmyadmin/copper/sql.php?server=1&db=mbtest&table=wp_customtable&pos=0
user: mbtest
pass:h6YeC7yceywcgUEScenario:
CPT test #1 -> Test CPT test #1 (metabox with custom table wp_customtable)
when I save CPT also wp_customtable was populateCPT test #2 -> no metabox
when I save CPT nothing happened on wp_customtablestandard 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_customtableMay 16, 2018 at 11:26 AM #9564Anh Tran
KeymasterHello, I got what you meant. Let me debug it.
May 17, 2018 at 9:48 AM #9576Anh Tran
KeymasterHi, I've just fixed the bug in the version 1.1.3. Please update and let me know how it goes.
May 17, 2018 at 1:55 PM #9577ingegnimultimediali
ParticipantHi,
It seems that the problem was resolved
thanks -
AuthorPosts
- The topic ‘Custom table save error’ is closed to new replies.