Posted: February 10, 2015 at 2:17 pm
|
I often use the Attendee Reassignment Addon to move or clone attendees from one event to another. However, it frequently happens that when I use the Email Attendees function, the wrong event date is send in the body of the email for attendees that I have moved/cloned (often it will show the date the email is sent). I use the [start_time] and [start_date] shortcodes in the email templates when sending these emails to pull the event date and time. I searched the support forums but didn’t see this specific issue addressed. Thanks in advance for any insight! Jennifer |
Hi Jennifer, I’ve not seen this happen on my sites, but what I would check first is to see if this only happens for attendees that were switched to events where the event has more than one time that can be selected during registration. Does that make sense? |
|
|
Hi, Josh – I know what you mean about having 2 times on an event. However, these are always 2 separate events, each with only one time. Sometimes I duplicate the event and change the time, but I don’t see why this would cause a problem as it’s still 2 different events. Thanks – |
Hi Jennifer, That might be a clue. So when you move an attendee to another event, is the incorrect event dates happening when it’s a duplicated event? |
|
|
Hi, Josh – I just did some more testing, and it appears to happen when I clone a user to an event, whether or not it is a duplicated event. Moving is ok. Are there any bugs you are aware of with cloning? Thanks – |
Hi Jennifer, I tested out the clone attendee to another event and I did not see this happen where the event date isn’t correct. That said, I’m using the Event Espresso 3.1.37 version that’s in the pre-release channel. and version 1.1 of the attendee mover tool. Are you running older versions of either of these? |
|
|
Hi, Josh – I was running 3.1.36, but switched to 3.1.37 and and still seeing the same issue with cloning. For example, I cloned a patron from an event on February 20 at 3:00 p.m. to an event at February 20 at 6:30 p.m. The information for the cloned patron says they are registered for the event to be held on February 14 (today) at 6:30 p.m., though there is no event today at that time. Jennifer |
Hi Jennifer, If you check your plugins list and find the Attendee Mover Add-on, what version number do you have? |
|
|
Hi, Tony – Version 1.1b Thanks – |
Hi Jennifer, When you go to input an event start date for an event, is it in this format:
|
|
|
Yes, it is in that format. |
Hi Jennifer, I’m stumped because I don’t know why it’s returning today’s date. I suspect a date format isn’t correct, but I don’t know what it would take to change the date format. Can you try adding some debugging code to the attendee mover plugin’s index.php file at line 369? Here’s the code:
What this will do is print the start date onto the top of the screen after you move/clone an attendee record to another event. The date should be the date of the destination event. We’ll have an idea where to look next depending on which date gets printed onto the screen. |
|
|
Hi, John – As you can see, the date printed at the top of the screen after cloning is the correct event date, but if you look at the second date I have circled, it is the date and time that I cloned the attendee. While the attendee does appear now on the correct event attendee list, the problem is when sending an email to the entire list of attendees to remind them of the event; it sends the cloned attendees the event date as the current day, not the event date. This doesn’t happen when moving, only cloning. Jennifer |
Hi Jennifer, I can share with you a screenshot of what we see when we test: As you can see, the dates match up on the above screenshot. I still suspect there an issue with the format of the event date. Can you let me know what is set for the Date Format setting in WP > Settings > General? |
|
|
The WP date format is the first option, so right now it reads ‘February 19, 2015’. |
Hi Jennifer, It would be good to go upstream a bit to find out what date, and its format, is being recorded for the attendee. Can you add another line of debug code to find out? This one goes into event-espresso/includes/admin-reports/edit_attendee_record on line 543 which is right after the start of the postbox: You add the third line of code like so:
|
|
|
Hi, Josh – Here’s the screenshot after I cloned the attendee: As you can see, it just lists the year. Before I cloned, it showed today’s full date. |
Hi Jennifer, If it’s showing the today’s date before you clone the attendee record, this indicates the incorrect event date is being recorded before you clone the attendee record. Are these attendees being added in the admin only, or on the frontend as well? Also, are there any customizations set up with this installation of Event Espresso? |
|
|
The attendees are primarily being added on the front end, but occasionally there are some admin ones as well. Other than custom templates, there are no other changes to EE that I am aware of. |
Hi Jennifer, I’m not sure what would cause the event dates recorded in the attendee record to get switched to today’s date. Can you look in the wp_events_attendee table and look at what’s stored for those entries in the start_date column? It should have the event’s start date, and should be formatted as YYYY-MM-DD. It may help to compare the latest attendee entries that were added via registration with the ones that were cloned or updated in the admin. |
|
|
Hi, Josh – Here is a print of the 2 relevant rows from the table: http://www.brookfieldlibrary.org/wp-content/uploads/2015/03/wp_events_attendee.jpg One thing to note is that when cloning, the cloned attendee’s last name is always changed to 0, which is also visible within the EE backend. Also, you can see that the start_date for the clone is just 2015 and not the full date as it should be. Thanks for your continued help with this issue! Jennifer |
Hi Jennifer, Thanks, the screenshot helps. I looked into this further and I found that if the database table columns for that attendees table are not in the same order as how the table columns set to be created on a new activation of EE, the wrong data format gets applied. I’m working with one of the developers on a fix and will give you an update when we have something. |
|
Hi Jennifer, Here’s an early copy of the fix that you can test out if you’d like. |
|
|
Hi, Josh – This fix appears to have done the trick! Thanks so, so much for your help with this! Jennifer |
You’re welcome. Thanks for the help with troubleshooting this. |
|
The support post ‘Incorrect Event Date in Email to Attendees’ 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.