Skip Navigation

[Resolved] Default information shows for custom fields on a new post

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 12 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 3 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2647431

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

No worries, the second-tier support managed to download the website somehow and they are working to find out the reason why this is happening on your installation.

I will send you a message as soon as I have an update.

Thanks.

#2647445

OK, thanks.
I look forward to hearing from you.

#2647921

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I have an answer from the second-tier support

The database is filled with entries in wp_postmeta with values for the Types custom fields, even though there are no corresponding entries in wp_posts. So a lot of lot posts got deleted directly from the database, not using wp_delete_post, leaving lots of orphaned entries in wp_postmeta.

So when creating a new post, the database would re-use empty post IDs, but there would already be wp_postmeta entries for those IDs, making it appear that the post had been populated with custom fields.

The solution is to clean up the database using a plugin such as Advanced Database Cleaner, to remove the orphan wp_postmeta entries. Once that is done the problem disappears.

Thanks.

#2648055

Hi Christopher,

It's WORK !
Thank you for ur help.

Quentin