Posted: February 3, 2015 at 4:45 am
|
When clicking ‘export’ from an event to download the csv files, I’m getting a runtime error: Line 593-596 is: Line 588 (Where the output started) is in the same function and is the @ob_flush() call. (Code below). Can someone on the support team please let me know how to fix this issue. Many thanks, //if somebody’s been naughty and already started outputting stuff, trash it |
|
Hi Bruce, What (exact) version of EE are you using? Have you updated EE or any other plugins recently? Have you tried disabling all other plugins to see if the issue persists? |
|
we are using Version 4.4.7.p nothing has changed recently, but this could be the first time someone has tried to download an export csv file. I’ve disabled all non-essential plugin’s but as the website is live, I can’t disable them all. However, since the error is happening within the same function, I doubt the reason is because of another plugin. Something is being emitted inside the @ob_flush() function, whatever that is. Many thanks, Bruce. |
Hi Bruce, I can advise cloning your live site onto a dev server, then deactivate all of the plugins except for Event Espresso, and switch the live site to use the twenty fifteen theme. This will allow you to troubleshoot the error you’re seeing without messing with the live site. |
|
|
So after playing around with a copy of the site, it looks like its coming from the custom functions.php of our child theme of avada, which is the theme that we are using. Any ideas where what to try next? |
Hi Bruce, Here is a link to the WordPress codex that has step by step instructions you can follow to troubleshoot and fix the functions.php file: |
|
|
Thanks Josh. Found a hidden non-printing character in the file. Getting rid of that cleared up the issue. Many thanks. |
You’re welcome Bruce. |
|
The support post ‘PHP Error when downloading CSV files’ 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.