Posted: July 27, 2015 at 4:35 am
|
Hi all, Having a recent problem with Event Espresso, basically whenever my client tries to use the All Registrations CSV report download button – it generates what I assume is the CSV file in the browser (lots of unformatted data). This happens in all browsers. I enabled WP_Debug and it shows the following error, multiple times: Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/venturefestscotland.co.uk/httpdocs/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_CSV.class.php:304) in /var/www/vhosts/venturefestscotland.co.uk/httpdocs/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_CSV.class.php on line 309 I tried switching the themes and this does resolve the issue and allow me to download the CSV file. However, this isn’t really an ideal solution for my client, so can someone help me resolve this with the theme I am using? Cheers in advance! |
Hi Jonathan, you could try forcing debugging mode along with debug display to off. This could help with the issue but it isn’t something I can guarantee. Try adding this towards the middle of your wp-config.php file which is found in your WordPress root. Note that it should replace any existing debugging macros: define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); Here is more information on the headers already sent message: — |
|
Hi Jonathan, Have you tried narrowing down the function within the theme that may be causing the issue? |
|
|
Hi Lorenzo, Josh, I’m not sure what turning debugging mode off within WordPress would accomplish? I did as suggested anyway and still receive the same wall of unformatted text when attempting to download the registrations CSV. From what I can gather from the codex you are meant to resolve the issue by editing the files that the error message indicates. However, the in all of the error messages (there’s about 8 or so) they all point towards the EE_CSV.class.php file, which is a core Event Espresso file and not part of my theme..? There also hasn’t been anything added to the themes functions file recently, certainly nothing has been added since the download registrations CSV button stopped working (it worked perfectly up until a few days ago, the theme hasn’t been edited in weeks). Sorry but I’m really struggling to understand where the problem is occurring? Cheers, |
The error reporting very often shows the incorrect files. This error:
Means that ‘something’ is trying to send headers to the page after EE has already sent its content. So it shows EE_CSV.class.php because that’s what sent the initial output. Make sense?
Have you updated any plugins in that time? Your theme may be another symptom rather than the cause, however generally when this happens it is caused by the theme doing something unexpected which is triggered when EE runs. Which theme are you using? |
|
|
Hi Tony, I’m currently using a customized version of Reverie (A Foundation Framework WordPress Theme). There are a number of plugins installed that may have been updated recently, find a list of installed and activate plugins below: Buddypress Is there any way of pinning down what is sending the headers after EE? Cheers, |
The quickest way to rule out a plugin conflict is to de-activate all non-EE plugins and retest the CSV (using your current theme). If the same issues occurs it is an issue with the theme, if not its likely a plugin. We usually recommend you do this on a development site rather than the production site as to not cause issues for visitors to the site. |
|
|
Hi Tony, Thanks for bearing with me, I put the site into maintenance mode temporarily and deactivated all plugins besides Event Espresso Core, the issue persisted so can only assume that it is theme related. Do you have an idea as to how I might pinpoint the issue with the theme? Thanks, |
Hi Jonathn, You can pinpoint the issue with the theme by loading up a fresh, unaltered copy of the theme. If the fresh copy of the theme allows for the CSV to work as expected, you can run a diff between the modified theme and the original and merge in your modifications. There are some more tips on troubleshooting “headers already sent” warnings in the codex: |
|
|
Hi All, It seems this issue was being caused by an extension on the functions.php file for the foundation off-canvas menu, this hadn’t been changed since originally installing so can only assume it is incompatible with the latest version of Event Espresso. I’ve just removed the extension as it wasn’t mandatory. Thank you all for your help in resolving this. Kind Regards |
The support post ‘All Registrations CSV Report Theme Conflict?’ 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.