Support

Home Forums Event Espresso Premium All Registrations CSV Report Theme Conflict?

All Registrations CSV Report Theme Conflict?

Posted: July 27, 2015 at 4:35 am

Viewing 9 reply threads


Jonathan Young

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!


Lorenzo Orlando Caum

  • Support Staff

July 27, 2015 at 11:12 am

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:

https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F


Lorenzo


Josh

  • Support Staff

July 27, 2015 at 11:35 am

Hi Jonathan,

Have you tried narrowing down the function within the theme that may be causing the issue?


Jonathan Young

July 28, 2015 at 3:15 am

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,
Jonathan


Tony

  • Support Staff

July 28, 2015 at 3:38 am

From what I can gather from the codex you are meant to resolve the issue by editing the files that the error message indicates

The error reporting very often shows the incorrect files. This error:

Warning: Cannot modify header information – headers already sent

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?

(it worked perfectly up until a few days ago, the theme hasn’t been edited in weeks).

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?


Jonathan Young

July 28, 2015 at 5:14 am

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
Display Posts Shortcodes
Download Manager
Easy Foundation Shortcodes
Event Espresso Core
Event Espresso – Barcode Scanner (EE 4.6.0+)
Event Espresso – MailChimp (EE4.4.5+)
Event Espresso – Social Sharing (EE4.4.4+)
Event Espresso – Ticketing (EE4+)
Event Espresso – WP Users (EE4.6+)
Favicon by RealFaviconGenerator
Gravity Forms
Gravity Forms Quantity Limits
jQuery Smooth Scroll
News Manager
Revolution Slider
User Role Editor
Wordfence Security
WPDM – TinyMce Button
WP Google Maps
WP SVG Icons

Is there any way of pinning down what is sending the headers after EE?

Cheers,
Jonathan


Tony

  • Support Staff

July 28, 2015 at 5:21 am

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.


Jonathan Young

July 28, 2015 at 8:38 am

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,
Jonathan


Josh

  • Support Staff

July 28, 2015 at 10:00 am

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:

https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F


Jonathan Young

July 29, 2015 at 4:22 am

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
Jonathan

Viewing 9 reply threads

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.

Event Espresso