Support

Home Forums Event Espresso Premium Unable to Download CSV List of Registrations

Unable to Download CSV List of Registrations

Posted: November 6, 2024 at 1:20 am

Viewing 6 reply threads


smit und partner

November 6, 2024 at 1:20 am

The ‘Download CSV List’ function isn’t working. When attempting to create the CSV, it tries to open a file that doesn’t exist. Clicking on the function only redirects me to my homepage.


Tony

  • Support Staff

November 6, 2024 at 2:54 am

Hi there,

When attempting to create the CSV, it tries to open a file that doesn’t exist.

Can you explain this further, please? How do you know its trying to open a file?

The CSV is generated in a batch process, so the file will not exist until its created during that process and then it is automatically deleted again once its streamed to the browser.

Clicking on the function only redirects me to my homepage.

Are you using the latest version of EVent Espresso? 5.0.29.p?

So you click the Registration CSV Report button and that instantly takes you to your home page? No other output between clicking on arriving at home?


smit und partner

November 6, 2024 at 4:30 am

Hi Tony, thanks for your response!

When I click the button to export the CSV, I’m redirected to a page showing the generation progress. Once it completes, however, I’m immediately redirected to the homepage, and no download occurs.

It seems like the index.php file in the batch folder might be either empty or not permitted for download, but I’m not entirely sure.

I am using the update version 5.0.23


smit und partner

November 6, 2024 at 4:40 am

For your information: I updated the plugin. Now it is running on the latest version.


Tony

  • Support Staff

November 6, 2024 at 4:51 am

The batch process creates directories/files within:

/wp-content/uploads/espresso/batch_temp_folder/

Any index.php files within directory or subdirectories should be empty, well, actually it should have just:

You are not permitted to read from this folder

So if you are getting to the batch process, the file is being created otherwise it would error out (each batch write checks the file exists).

Take a look /wp-content/uploads/espresso/batch_temp_folder/ and let me know what you see there, please.

You can add a screenshot if preferred.

It sounds like something may be blocking the request for the download, but that’s more likely to be something like mod_sec than your index.php files.

Whilst this isn’t a solution, you can add:

define( 'EE_USE_OLD_CSV_REPORT_CLASS', true );

To your wp-config.php file somewhere above /* That's all, stop editing! Happy blogging. */ and retest a registration CSV. That code disables the batch process and streams the CSV directly to the browser. That should at least get you the CSV downloaded whilst troubleshooting this further (remove the above code once done).


smit und partner

November 6, 2024 at 5:13 am

I added the suggested code to the wp-config – now it works!
Thank you!


Tony

  • Support Staff

November 6, 2024 at 5:26 am

As mentioned, that’s not really a solution. It works and is ok to use, but it doesn’t ‘fix’ anything.

What that code does is turn off the batch processing for CSV, which is for for events with anywhere between 2000-5000 registrations (very much depends on your server and event setup).

So if you’d like to troubleshoot the batch processing further, we can do?

Viewing 6 reply threads

The support post ‘Unable to Download CSV List of Registrations’ 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