Posted: April 8, 2013 at 9:16 pm
|
Not sure what’s happening, but when I download the Excel or CSV of an event I get a huge list of errors…it’s just a repetition of: Any thoughts? |
|
Just an update on this, I went in and changed the eregi_replace with preg_replace() and I can see without the errors, however, all I see are the top header fields, and one column of Group 1, Group 2, Group 3….no actual registation data that has been collected. The data is on the site as I can see it under Attendees, but not coming out in the Excel. Please help. |
|
Hello Matt, Thanks for bringing that to our attention ,I will get a developer to look at replacing that function. I am however confused as to why you got that error in the first place. Can you provide your server/php specs please? You can get the information from the Server Status menu in the Event Espresso menu list. |
|
Here you go: My main issue though is the 2nd part of the comment in that I don’t get any data to export. Any tips on that? I appreciate the speedy reply! |
Hi Matt, Is the Roles and Permissions add-on active? If so, can you try the export with the R&P add-on deactivated? |
|
|
No, I don’t have that add-on. |
|
One more bit of info…recently we moved hosts, but not sure if that would affect the downloading. All the data is showing through the admin panel so there’s no issue there, just not sure why we’re not getting any data to actually export to CSV. Any help is much appreciated. |
Hi Matt, Was this working before you moved host’s? |
|
|
I believe it was, yes, but not sure what could have changed by just moving? Everything else is working fine. |
It may be that the other host was running PHP 5.2. That doesn’t seem to account for what I’m seeing when I test the export on sites running PHP 5.3 and PHP 5.4 where it still works without errors. I would suggest turning off error reporting and changing the code back to its default state, then try the export again. |
|
|
How do I turn off error reporting and change the code back to it’s default state? We have live events running right now so I don’t want to mess too much with the actual code, but I agree, I believe the old host was running 5.2 while the new is running 5.3. |
Hi Matt, Usually error reporting is set in the PHP ini file. If you don’t have access to the PHP ini file on your server, your host should be able to make sure it’s turned off. http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors In some cases it’s possible to override what’s set in the PHP ini file by editing the wp-config.php file: http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging You can restore Event Espresso back to its default state by downloading a fresh copy of the plugin and uploading fresh copies of the files that were modified. |
|
|
So here’s what I had to do: 1. Included a php_flag display_errors “0” in my .htaccess file 2. Updated /wp-content/event-espresso/includes/functions/main.php, line 933 from preg_replace to str_replace Now it works to download the Excel/CSV files. |
Thanks for the update. I’ve created a ticket in our issue tracker and noted the specific function that uses eregi_replace. |
|
The support post ‘Errors when downloading to Excel or CSV’ 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.