Previously, I was instructed to change line 501 of the export functions php file to correct an error generated because my version of PHP is a little out of date. I would upgrade, but we are in the middle of a major event and updates to the server are forbidden until we end the event. I updated with the suggested code:
$scanned_date_object = DateTime::__construct($participant->date_scanned);
However, this provides a new error in the exported excel function:
<b>Fatal error</b>: Non-static method DateTime::__construct() cannot be called statically in <b>/home4/ab45863/public_html/2013/wp-content/plugins/event-espresso/includes/functions/export.php</b> on line <b>501</b><br />
What do I need to do to correct this error so I can use the export reporting functions of event espresso?
Until they can make the date scanned feature of the export to be compatible with verisons of PHP that are lower than 5.3 (or until you can have your host upgrade the version of PHP), one way to work around the issue for now is to comment out the code starting on line 500 of export.php. It will look like this after it has been commented out:
The support post ‘Excel Reports Still Failing’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.