Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active October 28, 2015 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzocaum/8e9f047e533248153a38 to your computer and use it in GitHub Desktop.
Save lorenzocaum/8e9f047e533248153a38 to your computer and use it in GitHub Desktop.
Workaround for creating a Registrations CSV Report with a large number of registrants in Event Espresso 4

A site may timeout while attempting to generate a Registrations CSV Report for a large number of registrants with custom questions. We have an enhancement ticket to allow batched export. This process will break up the report creation into smaller chunks. Until then, this workaround is recommended.

Codebase 7425

This workaround does require editing the core plugin using an SFTP or FTP client. If you are not comfortable making these changes, then do consult with a WordPress professional.

Raise PHP Timeout and Memory available to PHP

First, try increasing the PHP timeout setting and raising the memory available to PHP.

  1. Login to your WordPress site using your preferred SFTP or FTP client. FileZilla and Cyberduck are free options. Using a Mac? Try Transmit

  2. Browse to the WordPress root. This is the location where the wp-config.php file resides. Then open that file for editing.

  3. Go to the middle of the file and add the following macros:

/** Raise PHP timeout */
set_time_limit(90);

/** Increase memory available to PHP */
define( 'WP_MEMORY_LIMIT', '128M' );
  1. Save changes to your wp-config.php file. Then return to your WP dashboard and go to the registrations overview page for a specific event. Then try generating the Registrations CSV Report again.

If it does not work, then continue to the next part of the tutorial.

Setup Batch Report Generation via a Site Specific Plugin

Please see the following support post:

https://eventespresso.com/topic/registrations-export-time-out/#post-178446