• elmediano

    (@elmediano)


    Hi there,

    I’m using WP 3.2.1 and Events Manager 4.305.

    I have disabled the registration feature for bookings so any non-registered user can book and an account won’t be created.

    The problem I’m having is every time a user books a place gets 2 confirmations emails and there are two booking records in the WordPress backend under bookings. They have different consecutive IDs as well (ie. 45, 46).

    Anyone has had this duplication problem? Any ideas why it might be happening?

    Thanks a lot

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter elmediano

    (@elmediano)

    Also, the Phone number doesn’t seem to be get either. I get “Phone: Not Supplied”, when I actually added one.

    Please help! ??

    regarding your first issue, could it be your site has a javascript error that’s sending bookings twice somehow? That’s the only explanation I can think of.

    will be testing the no-user mode tot ake it out of beta, will double check the phone issue to see if it happens on ours too (first one to mention this though, so could be a plugin conflict of some sort – registration releated)

    Thread Starter elmediano

    (@elmediano)

    Cheers for that Marcus.

    I think I’ve found the problem. EM clashes with Advanced Custom Fields. When ACF is active the booking gets sent twice.

    But the strange thing is, when I look at the generated source code of the single event page, there isn’t any javascript generated by the advanced custom fields plugin or anything.

    Can you think of something?

    Thanks Marcus

    Thread Starter elmediano

    (@elmediano)

    Actually, when ACF is deactivated it only fixes the duplication of the emails sent out. The bookings in the backend still duplicate.

    I’ll keep on investigating and deactivate all plugins and activate one by one ??

    Thread Starter elmediano

    (@elmediano)

    I don’t know what’s going on really :S

    I have deactivated all the other plugins and I still get duplications.

    I’m not sure about this… but in the Firebug console, it seems that the jQuery callback is happening twice?

    I get:

    jQuery16105027785078388896_1322144537714({“result”:true,”message”:”Booking successful and pending confirmation. An email will also be sent to you once we confirm your place.”})

    and

    jQuery16105027785078388896_1322144537715({“result”:true,”message”:”Booking successful and pending confirmation. An email will also be sent to you once we confirm your place.”})

    what about your theme? Could be something like your theme using another instance of jquery…

    Thread Starter elmediano

    (@elmediano)

    Hi Marcus,

    I have checked everything and no luck. I’m using:

    <?php wp_enqueue_script('jquery'); ?>

    just before <?php wp_head(); ?> in the header and I’m not including my own version of jQuery.

    I do have a few other jQuery includes, like Cycle All, Mousewheel… but I have removed them all, deactivated all plugins except for EM and nothing :S

    I tried with the TwentyEleven theme and it seems to work. But I don’t know what’s wrong with my theme. I have removed ALL my JavaScript including Google Analytics, tried without <?php wp_enqueue_script('jquery'); ?> and no luck.

    Do you think a function might be causing this? I only have registered sidebars, post thumbnails, and a couple of others for pagination and zoombox.

    Thread Starter elmediano

    (@elmediano)

    Ok this is getting even more weird :S

    I had tested the bookings with the TwentyEleven theme and it seemed everything was working fine. After submitting the form it only sent one email and there was only one booking in the backend, just as expected.

    What’s happening now is that the details of all the previous bookings get replaced with the details of the latest. For example, I fill the form with the following for the first time (first booking):

    Name – Alex
    Phone – 01234567890
    Email – [email protected]
    Comments – Test

    and I submit the form. Everything works perfectly. I get an email saying Alex wants to book a place and Alex gets an email saying his booking is pending approval.

    Then I repeat the what I have just done with different details:

    Name – John
    Phone – 01234567890
    Email – [email protected]
    Comments – Test

    I get an email and John gets an email. BUT, when I go to bookings in the back end both rows in the table for Pending Bookings say:

    Booker – John | Email: [email protected] etc.

    So all the info that Alex put previously has been replaced with John’s. And this keeps on happening… If I now did:

    Name – Matt
    Phone – 01234567890
    Email – [email protected]
    Comments – Test

    The three bookings in the back end will show Matt’s details.

    Please help Marcus! ??

    that’s probably with no-user mode, are you assigning the bookings to yourself and logging in? Try loggign in with another admin to see if it corrects itself. Plan to fix this in v5

    Thread Starter elmediano

    (@elmediano)

    Hi Marcus,

    The bookings are assigned to the “admin” user.

    I’m not logging in to book as the whole point is to let users book without having to register or have an account automatically created.

    I think I’m going to look for an alternative while this gets fixed.

    Thanks a lot for your help Marcus!

    the solution to fix this is to just reassign your bookings in the db to another user, and choosing a dummy user.

    e.g. UPDATE wp_em_bookings SET person_id=x WHERE person_id=1;

    where x is the new user and 1 is your admin user id.

    In the next versions we’ll require you not use an administrator, as it just doesn’t make sense to give guest users bookings to a current user.

    Thread Starter elmediano

    (@elmediano)

    Hi Marcus,

    Not sure if I completely understood what you said but I have tried the above with no luck.

    I created a user called “eventbookings” (ID = 47) and run the query:

    UPDATE wp_em_bookings SET person_id=47 WHERE person_id=1;

    I then tried booking a place and the duplication still happened.

    Am I doing it wrong?

    sorry, that wouldn’t solve the duplication issue, it’d solve the repeated booking information i.e. your post starting

    Ok this is getting even more weird :S

    your duplication issue with the JS submission is something to do with your theme from the looks of it, not sure what

    btw, if you post a link, maybe we can spot something obvious.

    Thread Starter elmediano

    (@elmediano)

    Ah ok ?? Although the repeated booking info problem still happened after I did what you suggested.

    Here’s a link to one of the events on the test site:

    https://medhurst.fl1hosting.com/events/event/test-event-microsoft

    If you look at the Firebug console you’ll see that every time the form is submitted there are two jQuery responses.

    Thanks Marcus

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: Events Manager] – Booking Duplication’ is closed to new replies.