• If an Event has “Enable registration for this event”, then a new set of spaces is generated each time an Event is saved. For example, if an event with 10 spaces is updated twice after it’s first created, it will list 30 spaces available.

    This issue has been observed in both 4.0.3 and 4.0.4, and in both Internet Explorer and Chrome.

    Steps to reproduce the issue:

    A. Create the Event:

    1. Go to Events > Add New
    2. Enter “This is the first time the event has been saved” in the details field.
    3. Tick “Enable registration for this event”.
    4. Enter a price (here, $100).
    5. Enter a number of spaces (here, 10).
    6. Specify a valid date range.
    7. Specify “Bookings must order between between 1 and 1 spaces”.
    8. Click “Submit Event” to create the event.

    B. View the Event:

    • the “Ticket Type|Price|Spaces” table has one row, displaying a type of “Standard Ticket”, a price of $100, and a spaces dropdown with 0 and 1 options
    • Below the booking form, a label says “There are currently 10 spaces available.”

    C. Edit the Event:

    1. Go to Events > Edit and open the event
    2. Modify the details to read “This is the second time the event has been saved” in the details field.
    3. Save the Event

    D. View the Event:

    • the “Ticket Type|Price|Spaces” table has two rows, EACH displaying a type of “Standard Ticket”, a price of $100, and a spaces dropdown with 0 and 1 options
    • Below the booking form, a label says “There are currently 20 spaces available.”

    http://wordpress.org/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    hi lelak, thanks for the detailed report, hopefully this will allow me to duplicate the issue. Once I do that fixing it is easy.

    Will go through this in detail asap and sort this out.

    Hi

    I can fully confirm this behaviour that was there in the same versions mentioned before.

    There are more issues since long which I’ll add to new topics
    Please fix asap!

    Thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I’m still not getting this issue, followed your suggestions step by step on 3 installs, no luck. if you can post more details, e.g. maybe take a screenshot of your ticket and booking options settings?

    there must be some similar settings between you or event possible a conflicting plugin causing this.

    i have however duplicated another bug with tickets, so maybe that’ll fix it for you (will fix in 4.0.6)

    Thread Starter lelak

    (@lelak)

    I’ve deactivated all the other plugins in my WordPress install, and re-run the test case outlined above. The same result occurs: a second “Standard Ticket” row is displayed on the Event page.

    My Event Manager options are configured as follows:

    #General Options
    Use dropdown for locations? Yes
    Use recurrence? Yes
    Enable bookings? Yes
    Use categories? Yes
    Use event attributes? Yes
    Default Category: no default category
    Default Location: no default location
    Default Location Country: United Kingdom
    Event Attributes: (none)
    Show some love? Yes

    #Booking and Ticketing Options

    Approval required? Yes
    Currency: GBP – British Pounds
    Single Ticket Mode? Yes
    Show unavailable tickets? No
    Reserve unconfirmed spaces? Yes
    Show multiple tickets if logged out? No
    Allow overbooking when approving? Yes
    Allow guest bookings? Yes

    #User Capabilities
    administrator: all boxes checked
    editor: all boxes checked
    author: no boxes checked
    contributor: no boxes checked
    subscriber: no boxes checked

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I’m updating to 4.0.5 now but pretty sure it won’t fix your issue. one other thing to try: switch to 2010 theme (themes can break js in the back too)

    Also, I know this may sound dumb but are your editing the standard ticket that comes as default or just creating a new one whilst leaving the default there? If you are then naturally EM will create another set of “standard tickets” aswell as those you made. Make sure to delete the existing ticket after you have created your own (or just edit it!) I have had trouble in the past where I deleted the default ticket BEFORE adding my own and it then wouldnt let me do anything…

    Thread Starter lelak

    (@lelak)

    red bicycle: I’m not editing the standard ticket at all. The steps I’m following are as described above. The only thing I’m modifying on the second time through is the contents of the Details field.

    Marcus: I’ve just done a clean install of WordPress 3.1.2, and Events Manager 4.0.5. Nothing else is installed, the default WordPress 2010 theme is in place. The issue still occurs as described in my initial bug report.

    Ok, now that my ticket creation problems are out the way, the same one you have Lelak, but I know whats wrong. Or atleast think I understand where the problem lies and a workaround: when you reshedule event or modify it, the system tells you that it will delet all previous entries for this event and you will lose any previous bookings. It doesnt however delete the tickets created for those events, so naturally when you update the event, duplicate spaces appear. The work around is to delete the tickets when updating event, or delete the tickets from database. the latter isnt suitable probably as you will lose all other tickets from all other events.

    Hope this helps

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    ok, i am duplicating the issue with your settings now, so will work on a solution.

    trb, your issue must be different, will try to replicate that and fix too.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hey lelak,

    Am reproducing the issue now in single tickets, you can fix it like so:

    replace this line on events-manager/templates/forms/ticket-form.php

    <input type="hidden" name="em_tickets[<?php echo $col_count; ?>][ticket_name]" value="<?php echo $EM_Ticket->name ?>" />

    with

    <input type="hidden" name="em_tickets[<?php echo $col_count; ?>][ticket_id]" value="<?php echo $EM_Ticket->id ?>" />
    <input type="hidden" name="em_tickets[<?php echo $col_count; ?>][ticket_name]" value="<?php echo $EM_Ticket->name ?>" />

    I’ve updated the dev version with this too.

    very odd. Initially I had set 100 EURO for a ticket. On next update, this value vanished into zero. On the page I see now a list as follows:
    Ticket Type Price Plätze
    Standard Ticket €0.00
    Standard Ticket €100.00
    Standard Ticket €100.00
    Standard Ticket €0.00
    ??

    I have applied the fix above after all that, and I seem to require to redo all the events now, correct?
    I short test on an event with several updates revealed that the number of tickets remained steady.
    I was not yet able to delete the unnecessary tickets (some went from 8 initially to 56!) with means of the WP. I would need to get into the DB I am afraid….
    Well, guess need to redo the ticket then – copy paste is okay 😉

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    In 4.0.6 if you just reschedule the event it’ll reset all the tickets and create them properly. Note that you’d lose your old bookings thougg (added an extra warning for that too)

    Thread Starter lelak

    (@lelak)

    Thanks Marcus – this is working for me now with a clean install of 4.0.6. I’m now going to try upgrading the existing site instance to 4.0.6, and see how that goes.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    @lelak glad to hear, please do.

    Thread Starter lelak

    (@lelak)

    That appears to be working correctly. Thanks for the help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: Events Manager] Duplicate Spaces created when existing Event updated’ is closed to new replies.