Support

Home Forums Event Espresso Premium Registration CSV Report Doesn't Filter

Registration CSV Report Doesn't Filter

Posted: October 11, 2022 at 12:45 pm

Viewing 12 reply threads


sweetrose500

October 11, 2022 at 12:45 pm

Trying to export a list of attendees to a specific event. The registration CSV report button still exports a FULL list rather than just the list for that event regardless of how I try and filter.


Tony

  • Support Staff

October 11, 2022 at 2:38 pm

Hi there,

I can’t reproduce this so need to check how you are filtered.

Just Event Espresso -> Events -> {hover over event} -> Registrations.

Then clicking the Registrations CSV Report button at the bottom of the page?


sweetrose500

October 11, 2022 at 2:41 pm

This reply has been marked as private.


Tony

  • Support Staff

October 11, 2022 at 4:56 pm

Hmm, yeah. So first, thank you for the video.

That is exactly what I’m doing but I’m only getting the registrations for the event itself.

Any custom code hooking into the registration report?

I’m thinking of this hook:

FHEE__EE_Export__report_registration_for_event

But if you have any custom code hooking in, test with that disabled, same result?

Before you click the CSV report button, set the Reg Status (dropdown says ‘Select Status’) to ‘Approved’ and click Filter. Then run the export, does that work?


sweetrose500

October 11, 2022 at 5:11 pm

This reply has been marked as private.


Tony

  • Support Staff

October 11, 2022 at 5:30 pm

Ok, so that means that none of the filters are being applied at all. Very strange.

Do you have FTP access to the server?

I can walk through some troubleshooting steps for this if you’d like?


sweetrose500

October 12, 2022 at 2:43 am

This reply has been marked as private.


Tony

  • Support Staff

October 12, 2022 at 5:44 am

Ok, so lots of ways to debug/log the contents of variables but I like to use a little helper function like this:

https://gist.github.com/Pebblo/5cef7b7b004b83f527360494f55a162c#file-ee_hooks_log-php-L4-L12

I add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

If I’m hooking into core I’ll add the functions to do so to that same plugin, but in this example, I’d simply log the contents within core and then remove my calls to log when finished.

So with that log function on the site, add this to your site’s wp-config.php:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

Put that snippet in place of just:

define( 'WP_DEBUG', false );

Which is likely already in there.

That snippet sets WordPress to log errors to /wp-content/debug.log, I use that just as its easier, if you want to use another method please feel free.

—-

Next open up \event-espresso-core-reg\core\libraries\batch\JobHandlers\RegistrationsReport.php

Line 57 should be:

public function create_job(JobParameters $job_parameters)

Within that function, just above this line:

$event_id = (int) $job_parameters->request_datum('EVT_ID', '0');

Add write_log($job_parameters);

Run and export then check the debug.log file from above, if should hold a bunch of details from job_parameters, can you add those here?

Or if you prefer for me to do this directly I’m happy to do so, just send temp credentials over using this form:

https://eventespresso.com/send-login-details/


sweetrose500

October 12, 2022 at 7:21 am

This reply has been marked as private.


sweetrose500

October 12, 2022 at 9:10 am

This reply has been marked as private.


sweetrose500

October 12, 2022 at 9:34 am

This reply has been marked as private.


sweetrose500

October 12, 2022 at 11:22 am

This reply has been marked as private.


Tony

  • Support Staff

October 12, 2022 at 3:55 pm

Hi there,

Just nothing I have replied via email to this.

For future readers of this thread, the above issue was due to some code hooking into FHEE__EE_Export__report_registration_for_event and changing the query_params used for the registration report.

Viewing 12 reply threads

The support post ‘Registration CSV Report Doesn't Filter’ 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