Support

Home Forums Event Espresso Premium Incorrect Event Date in Email to Attendees

Incorrect Event Date in Email to Attendees

Posted: February 10, 2015 at 2:17 pm

Viewing 24 reply threads


Jennifer Doyon

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


Josh

  • Support Staff

February 11, 2015 at 7:16 pm

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?


Jennifer Doyon

February 12, 2015 at 8:15 am

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 –
Jennifer


Josh

  • Support Staff

February 12, 2015 at 9:06 am

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?


Jennifer Doyon

February 12, 2015 at 9:46 am

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 –
Jennifer


Josh

  • Support Staff

February 13, 2015 at 4:09 pm

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?


Jennifer Doyon

February 14, 2015 at 10:59 am

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


Tony

  • Support Staff

February 16, 2015 at 11:58 am

Hi Jennifer,

If you check your plugins list and find the Attendee Mover Add-on, what version number do you have?


Jennifer Doyon

February 16, 2015 at 1:47 pm

Hi, Tony –

Version 1.1b

Thanks –
Jennifer


Josh

  • Support Staff

February 16, 2015 at 7:30 pm

Hi Jennifer,

When you go to input an event start date for an event, is it in this format:

YYYY-MM-DD


Jennifer Doyon

February 16, 2015 at 7:53 pm

Yes, it is in that format.


Josh

  • Support Staff

February 19, 2015 at 8:36 am

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:

echo '<h3>' . $attendee_data['start_date'] . '</h3>';

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.


Jennifer Doyon

February 19, 2015 at 9:32 am

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.

Clone 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


Josh

  • Support Staff

February 19, 2015 at 9:40 am

Hi Jennifer,

I can share with you a screenshot of what we see when we test:

https://www.evernote.com/shard/s4/sh/ae1257a1-68fd-4ed7-b6e5-5503c9e6d65f/eebb76e5a1a1c43348d9b3e6e7e1ba22

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?


Jennifer Doyon

February 19, 2015 at 11:12 am

The WP date format is the first option, so right now it reads ‘February 19, 2015’.


Josh

  • Support Staff

February 20, 2015 at 11:34 am

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:

<div class="metabox-holder">
	<div class="postbox">
		<h3><?php echo 'Start Date recorded for attendee is  ' . $start_date; ?></h3>


Jennifer Doyon

February 20, 2015 at 11:44 am

Hi, Josh –

Here’s the screenshot after I cloned the attendee:

Clone

As you can see, it just lists the year. Before I cloned, it showed today’s full date.


Josh

  • Support Staff

February 20, 2015 at 12:35 pm

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?


Jennifer Doyon

February 27, 2015 at 12:09 pm

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.


Josh

  • Support Staff

March 4, 2015 at 6:22 pm

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.


Jennifer Doyon

March 5, 2015 at 11:57 am

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
The second row is the clone.

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


Josh

  • Support Staff

March 11, 2015 at 8:15 pm

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.


Josh

  • Support Staff

March 11, 2015 at 8:45 pm

Hi Jennifer,

Here’s an early copy of the fix that you can test out if you’d like.

https://gist.github.com/joshfeck/f6001219264e92f49cf8


Jennifer Doyon

March 12, 2015 at 12:45 pm

Hi, Josh –

This fix appears to have done the trick! Thanks so, so much for your help with this!

Jennifer


Josh

  • Support Staff

March 12, 2015 at 1:39 pm

You’re welcome. Thanks for the help with troubleshooting this.

Viewing 24 reply threads

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.

Event Espresso