Support » Plugin: Yoast Duplicate Post » Custom fields copied too many times

  • When cloning a post that has custom fields, the custom fields are copied more than once. When you clone a cloned event, they are doubled again and again for each clone.

    Not only does this slow down the clone process and increase the database size, with one of my custom post types that uses many custom fields I got to the limit of 64k custom fields records and WP crashed whenever it tried to load this post. I had to manually de-dup the custom fields entries in the database to bring WP back to life.

    https://wordpress.org/plugins/duplicate-post/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi,
    since you are talking about “events” I suppose you are using a plugin for those. What is it?

    Thread Starter ry

    (@razyalov)

    Don’t know why I wrote event, it is actually happening with both 3rd party CPT (e.g. wp-alo-easymail-newsletter) or just my own CPTs.
    The crash actually happened with a CPT I created using the advanced-custom-fields pluging.
    I later on looked into the database and noticed that all custom fields of cloned posts had duplicate custom fields entries.

    Plugin Author Enrico Battocchi

    (@lopo)

    Hi,
    does it happen only with ACF custom fields?
    I’ll try and see if I can reproduce the bug.

    Thread Starter ry

    (@razyalov)

    It happen with ACF for sure. Not sure if only with ACF.

    I can try debugging it more on my side and give you more inputs soon.

    Plugin Author Enrico Battocchi

    (@lopo)

    Thank you, that would be very appreciated: I’ve tried quickly to reproduce the bug (on standard posts with custom field created with ACF) but still couldn’t.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom fields copied too many times’ is closed to new replies.