AesopInteractive / lasso

Code Repository for Editus (formerly Lasso) Commercial Plugin
https://edituswp.com
GNU General Public License v2.0
147 stars 25 forks source link

Duplicate post/page on new post/page creation #92

Closed michaelbeil closed 9 years ago

michaelbeil commented 9 years ago

Master has a bug, that goes back to our latest release of 0.9.5, where there is a duplication happening.

slack-imgs-1 com

bearded-avenger commented 9 years ago

The form isn't submitting twice and neither is the AJAX call I tested both of these. As far as I can tell the internal API is running twice for this?

bearded-avenger commented 9 years ago

I tracked this down to the API itself. When kill the process what creates a post, the API returns an error twice. I think the updates to the meta option api are what's causing this. This means that the api is running twice for EVERy action created. :(

Shelob9 commented 9 years ago

That doesn't use lasso-internal-api that uses the wp api via the client.js

On Thu, Jun 18, 2015, 3:50 PM Nick Haskins notifications@github.com wrote:

I tracked this down to the API itself. When kill the process what creates a post, the API returns an error twice. I think the updates to the meta option api are what's causing this. This means that the api is running twice for EVERy action created. :(

— Reply to this email directly or view it on GitHub https://github.com/AesopInteractive/lasso/issues/92#issuecomment-113270484 .

bearded-avenger commented 9 years ago

image 2015-06-18 at 2 48 34 pm

bearded-avenger commented 9 years ago

when i wp_die() at the point where it runs wp_insert_post, it returns two errors instead of one. any thoughts?

Shelob9 commented 9 years ago

I think I need to make time to reproduce this locally.

On Thu, Jun 18, 2015, 6:00 PM Nick Haskins notifications@github.com wrote:

when i wp_die() at the point where it runs wp_insert_post, it returns two errors instead of one. any thoughts?

— Reply to this email directly or view it on GitHub https://github.com/AesopInteractive/lasso/issues/92#issuecomment-113300710 .