Home>Support>Page Builder bug – infinite loop – wp_insert_post

Page Builder bug – infinite loop – wp_insert_post

Hi,

I’ve got a problem that happens only when the Page Builder plugin is active.
The page has a form (custom plugin) which gathers some data that the user filled, then performs a wp_insert_post().
The Page Builder plugin seems to create an infinite loop on the wp_insert_post: the page never gets back, yet many many entries are created.

I don’t know exactly when behaviour started. I didn’t check this page every time I updated the plugin.

Any idea of what’s going on here? A bug in Page Builder? Something I should do in my code (for the custom form)?

Thanks,
BBM

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Bbm,

    We already have checked in place to prevent this from happening with the base WordPress functionality. We sadly can’t automatically account for all instances, as such your only option is to ensure your code for the post-insertion will only be run once, and not multiple times.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More