Support

Home Forums Event Espresso Premium Excel Report of Attendees Provides Failure Error in Exported FIle

Excel Report of Attendees Provides Failure Error in Exported FIle

Posted: September 30, 2013 at 1:51 pm

Viewing 8 reply threads


Christine Doyle

September 30, 2013 at 1:51 pm

<b>Fatal error</b>: Call to undefined method DateTime::createFromFormat() in <b>/home4/ab45863/sandbox/wp-content/plugins/event-espresso/includes/functions/export.php</b> on line <b>501</b><br />

This is the only line of information that comes out of the attendee report. It was working ok yesterday, and since then I have added the API plugin to get the mobile scanning up, and I turned on the use of Coupons for this event and added one attendee with a coupon. Im not quite sure how to correct this error on my own or what it means.


Christine Doyle

September 30, 2013 at 1:56 pm

This error is also showing in my dashboard, unknown if it is related. I have checked this setting in my WordPress implementation but it is currently set to “Post Name” already:

“Event Espresso API cannot work because it appears URL Rewrite is turned off. Please activate it from Settings -> Permalinks, and there select the ‘post name’ option for URLs. “


Josh

  • Support Staff

September 30, 2013 at 2:45 pm

Hi Ole,

If you go to Event Espresso>System status, can you let us know what it reports for PHP version and Server Software under “Server Enviroment”.


Christine Doyle

September 30, 2013 at 3:08 pm

PHP Version 5.2.17
Server Software Apache


Christine Doyle

September 30, 2013 at 3:10 pm

I re-ran the report a couple of times, and once in a while it will pull data for one attendee, then issue the failure code.


Christine Doyle

September 30, 2013 at 6:12 pm

Ive done some additional testing, and discovered there is an issue with attendee records using a particular Question group. When the exporter hits a record that has the data for those questions, it fails. Frequently, the first record it pulled was one that had answers for that question group. There were attendees already in the system before the Question group was added and they did not have this data filled out. Do you know of any issues resulting from a “checkbox” type question with only one answer option being unchecked? The three questions were admin view only, and: 1) Checkbox – Yes/No, 2) Radio Buttons – with seven options 3) Checkbox – Yes

OTherwise, could it be a result of having entered attendees, then creating a new question group and adding it after resulting in some attendee records not having answer data entered? None of the new questions were required fields.


Sidney Harrell

October 1, 2013 at 9:16 am

That function, DateTime::createFromFormat(), was introduced to php in version 5.3. You could try changing that line to:

$scanned_date_object = DateTime::__construct($participant->date_scanned);

The second error seems to indicate that the mod_rewrite apache module is not installed. You can check this in a number of ways, such as installing the EE requirements check plugin, going to Tools->EE requirements check and looking under “Recommended Apache Modules”.


Christine Doyle

October 1, 2013 at 9:37 am

Sidney, I bought this software because it looked like I didnt have to edit code in order to have an event registration system. I dont know PHP and your answer makes it seem like I will need to start editing code. I dont know where I would change that line. Is there a specific file I should look for? What would happen if I try to update php? I didnt create the function you are talking about, it is a feature from event espresso for exporting attendee data to excel.


Sidney Harrell

October 1, 2013 at 10:26 am

That line is in plugins/event-espresso/includes/functions/export.php on line 501. Or you can update your php version to one that is greater than 5.3.

Viewing 8 reply threads

The support post ‘Excel Report of Attendees Provides Failure Error in Exported FIle’ 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