Support

Home Forums Event Espresso Premium "The Datetime you are attempting to unassign from this ticket is the only…"

"The Datetime you are attempting to unassign from this ticket is the only…"

Posted: March 21, 2018 at 5:41 pm


Megan Bucholz

March 21, 2018 at 5:41 pm

We are trying to delete and reassign tickets on a newly upgraded EE3 to EE4 site. Even though a Datetime has multiple ticket options, we consistently get this error when trying to unassign a Datetime from a Ticket:

“The Datetime you are attempting to unassign from this ticket is the only remaining datetime for this ticket. Tickets must always have at least one datetime assigned to them.”

When deleting the Ticket option instead of unassigning the datetime, we get this PHP error:

Fatal error: Uncaught Error: Call to a member function start_date_and_time() on null in /home1/localtab/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php:503 Stack trace: #0 /home1/localtab/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php(287): espresso_events_Pricing_Hooks->_update_tickets(Object(EE_Event), Array, Array) #1 /home1/localtab/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php(1030): espresso_events_Pricing_Hooks->datetime_and_tickets_caf_update(Object(EE_Event), Array) #2 /home1/localtab/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(969): Events_Admin_Page->_insert_update_cpt_item(6803, Object(WP_Post)) #3 /home1/localtab/public_html/wp-includes/class-wp-hook.php(286): EE_Admin_Page_CPT->insert_update(6803, Object(WP_Post), true) #4 /home1/localtab/public_html/wp- in /home1/localtab/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php on line 503


Josh

  • Support Staff

March 21, 2018 at 6:30 pm

Hi Megan,

You’ll need to add a new date time and assign it to the ticket first,(or edit the existing date time).


Megan Bucholz

March 21, 2018 at 7:59 pm

Editing the “Assigned Tickets” of an existing datetime results in the same error message. When creating a new datetime, all of the tickets are added to it / checked off automatically.

When trying to uncheck any of the tickets, the same “The Datetime you are attempting to unassign..” error comes up.

This doesn’t seem to be behaving normally. I don’t see any console errors.


Josh

  • Support Staff

March 22, 2018 at 7:16 am

Does this happen if it’s a new event? Also, you could instead set the ticket sale end date to yesterday, then those tickets will no longer be available for sale.


Megan Bucholz

March 22, 2018 at 12:27 pm

I can create a new event and duplicate a ticket. When clicking on the gear of the new ticket, a JS error comes up (and the ticket settings don’t open):

The newly added ticket does not save when publishing or saving the event draft.


Josh

  • Support Staff

March 22, 2018 at 1:31 pm

If you go to Event Espresso > Pricing, is there a default Price set? If not, then quite likely some EE3 data prevented the default price from getting migrated into EE4. We can manually fix the default price if you can send temporary access by completing this secure form.


Josh

  • Support Staff

March 22, 2018 at 3:30 pm

Hi Megan,

We received the access to the WP Dashboard. In order to troubleshoot this we’ll need FTP access. If you can complete the FTP Access part of the form we can investigate further.


Megan Bucholz

March 22, 2018 at 3:48 pm

Just sent this info


Josh

  • Support Staff

March 22, 2018 at 5:06 pm

Hi Megan,

It’s looking like there’s a plugin or theme conflict on the site. I’ve activated the Health Check plugin, activated its Troubleshooting mode which deactivates all plugins and switches to the default theme for the admin only, and the ticket & datetime editing just works.

I’ll see if I can narrow things down a bit further to see which plugin is causing the issue.


Josh

  • Support Staff

March 22, 2018 at 5:09 pm

Actually it looks like it’s the WordPress theme, it must be loading a similar script to what’s used in the datetime + ticket editor.


Josh

  • Support Staff

March 22, 2018 at 7:07 pm

Update: On closer look, the Minimaze theme has a script that’s actually manipulating the datetime and ticket editor fields. I added a tiny plugin to your site that prevents the Minimaze theme script from loading on the Event Espresso editor page. The script is not needed there and was only causing problems.

fwiw, I opened a support topic here:
https://wordpress.org/support/topic/destroys-the-event-espresso-4-ticket-editor/
So maybe thinkupthemes will fix this in an update.

The support post ‘"The Datetime you are attempting to unassign from this ticket is the only…"’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso