Support

Home Forums Event Espresso Premium Errors when downloading to Excel or CSV

Errors when downloading to Excel or CSV

Posted: April 8, 2013 at 9:16 pm

Viewing 13 reply threads


Matt Metten

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:
Deprecated: Function eregi_replace() is deprecated in /mnt/stor10-wc1-ord1/809282/www.sahs.org/web/content/wp-content/plugins/event-espresso/includes/functions/main.php on line 933

Any thoughts?


Matt Metten

April 9, 2013 at 12:33 am

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.


Dean

April 9, 2013 at 1:15 am

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.


Matt Metten

April 9, 2013 at 7:04 am

Here you go:
PHP Version 5.3.20
Server Software Apache/2.2

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!


Josh

  • Support Staff

April 9, 2013 at 2:04 pm

Hi Matt,

Is the Roles and Permissions add-on active? If so, can you try the export with the R&P add-on deactivated?


Matt Metten

April 9, 2013 at 2:15 pm

No, I don’t have that add-on.


Matt Metten

April 10, 2013 at 8:40 am

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.


Josh

  • Support Staff

April 10, 2013 at 10:54 am

Hi Matt,

Was this working before you moved host’s?


Matt Metten

April 11, 2013 at 10:23 pm

I believe it was, yes, but not sure what could have changed by just moving? Everything else is working fine.


Josh

  • Support Staff

April 16, 2013 at 10:31 am

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.


Matt Metten

April 16, 2013 at 10:47 am

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.


Josh

  • Support Staff

April 17, 2013 at 10:43 am

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.


Matt Metten

April 18, 2013 at 9:49 pm

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.


Josh

  • Support Staff

April 22, 2013 at 2:18 pm

Thanks for the update. I’ve created a ticket in our issue tracker and noted the specific function that uses eregi_replace.

Viewing 13 reply threads

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.

Event Espresso