Hi, I have an event which last occurrence is today. When people try to book, there is an error saying: please choose an event, please choose a date and this:
Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in /html/wp-content/plugins/event-organiser-pro/includes/booking-tickets.php on line 511
Warning: array_diff_key() [function.array-diff-key]: Argument #1 is not an array in /html/wp-content/plugins/event-organiser-pro/includes/booking-tickets.php on line 511
Documenta/Escenicas
if I add a next date, i.e. for next friday, it works fine. the site is already operational so I have to solve this asap. 🙁
thanks!

Gabriela Halac
Hi Gabriela,
Sorry that you’re experiencing issues with the plug-in. Can you tell me what time the event is for today? Or is it an all-day event?
Does the error message appear only after they click ‘Book’ or when the page loads?
Are you able to link to the site, or otherwise contact me with a link?

Stephen Harris

Gabriela Halac
I am also noticing that when there is only today’s date, the “please select a date” before form submission appears. If I add another date, it disappears. But even adding another date, I cannot book for today.

Gabriela Halac
Thanks Gabriela,
I shall look into this and try to replicate it.
Do you know what PHP version you are using?

Stephen Harris
It is 5.3.29 cgi stable
thanks!!

Gabriela Halac
Could it be something to do with occurrence picker js?
I am getting this error
Uncaught TypeError: Cannot read property ‘tickets’ of undefined

Gabriela Halac
If instead of select I choose calendar nothing appears.

Gabriela Halac
Sorry for so many messages, but I am in datepicker js, and I find this could be the problem:
var morning = new Date();
morning.setHours( 0 );
morning.setMinutes( 0 );
morning.setSeconds( 0 );
morning.setMilliseconds( 0 );
or something related to time.

Gabriela Halac
I’m not seeing any JavaScript errors….

Stephen Harris
I still need to investigate this further, but I may have replicated this issue.
When editing an a ticket on the event admin screen, there is a datepicker next to the ticket details (when selling by date). Ensure that all dates are correctly selected (blue background).
The plug-in will automatically select the next available occurrence. I found, though, that if the occurrence didn’t have any tickets, I would see javascript errors in the console. This would also explain why the datepicker doesn’t appear on the booking form when you switch from the dropdown.
It doesn’t explain why creating another date appears to fix the issue, however.

Stephen Harris
The dates are correctly selected. I checked that, deleted everything, started all over.
the picker doesn’t get the ticket. I dont know if that is the issue, probably php is not sending the ticket data.

Gabriela Halac
I’ve installed a new wp without any plugins only event organiser and I am getting the same error. If event ends today, booking fails. I add a date and it works again.

Gabriela Halac
HI Gabriela,
I’ve just sent you an e-mail. (I may have addressed you by the wrong name as I’ve used the details in your profile).

Stephen Harris
I also see set occurrence (ID) undefined
occurrence-picker.js?ver=1.11.7:407

Gabriela Halac