Support

Home Forums Event Espresso Premium EE4 Export issue

EE4 Export issue

Posted: October 5, 2018 at 8:53 am


Elizabeth

October 5, 2018 at 8:53 am

When we export registrations, it does not export names or emails. It was working fine before last update…Was working last week and I did an EE update yesterday.


Elizabeth

October 5, 2018 at 9:09 am

https://ibb.co/jZBote


Josh

  • Support Staff

October 5, 2018 at 9:24 am

Hi Dorian,

The first thing to check is whether the registrations in Event Espresso > Registrations still have attendee names listed there. If they do, then the next thing to check is to see if your customizations to the CSV report are affecting things. If you remove your customizations do the names begin to display again?


Elizabeth

October 5, 2018 at 9:28 am

I don’t remember doing any customizations for this location…but where do I look again just in case?


Josh

  • Support Staff

October 5, 2018 at 9:52 am

Usually it would be a separate plugin, or possibly the theme’s functions.php file.


Elizabeth

October 5, 2018 at 10:31 am

Here is what is in the function.php:

add_filter( ‘FHEE__EE_Export__report_registrations__reg_csv_array’, ‘espresso_reg_report_filter_columns’, 10, 2);
function espresso_reg_report_filter_columns( $csv_row, $registration_db_row ) {
$filtered_csv_row = array_intersect_key(
$csv_row,
array_flip( array(
__( ‘First Name[ATT_fname]’, ‘event_espresso’ ),
__( ‘Last Name[ATT_lname]’, ‘event_espresso’ ),
__( ‘Email Address[ATT_email]’, ‘event_espresso’ ),
‘Time registration occurred[REG_date]’,
‘Phone[ATT_phone]’,
‘Transaction Status’,
‘Total Taxes’,
‘Ticket Name’,
‘[REG_final_price]’,
‘Amount Paid’,
‘Gateway Transaction ID(s)’,
‘Transaction Promotions’,
‘Count of this registration in the group registration [REG_count]’,
‘radio’,//custom question’s admin label, doesn’t need to be translated. note though: if you ever change the custom question’s admin label, this code will need to be adjusted
) ) );
return $filtered_csv_row;
}


Elizabeth

October 5, 2018 at 10:32 am

This hasn’t changed since it was done like over a year ago. Are the underscores correct for fname, lname and email? Looks odd


Tony

  • Support Staff

October 5, 2018 at 10:59 am

That function is fine, I’ve just added it to one of my test sites and ran an export, the details show correctly – http://take.ms/Yz0yp

If you comment out the add_filter line, like this:

\\add_filter( 'FHEE__EE_Export__report_registrations__reg_csv_array', 'espresso_reg_report_filter_columns', 10, 2);

And re-run a report, does it show the details correctly?


Elizabeth

October 5, 2018 at 11:14 am

I got this when I added the \\

Your PHP code changes were rolled back due to an error on line 4 of file wp-content/themes/Masterpiece Mixers/functions.php. Please fix and try saving again.

syntax error, unexpected ‘\’ (T_NS_SEPARATOR), expecting identifier (T_STRING)


Josh

  • Support Staff

October 5, 2018 at 11:17 am

Those should actually be // see also:

http://php.net/manual/en/language.basic-syntax.comments.php


Elizabeth

October 5, 2018 at 11:19 am

I am making sure she is clicking the Filtered CSV export.


Josh

  • Support Staff

October 5, 2018 at 12:59 pm

Let’s try this again.

If you comment out the add_filter line, like this:
//add_filter( 'FHEE__EE_Export__report_registrations__reg_csv_array', 'espresso_reg_report_filter_columns', 10, 2);
And re-run a report, does it show the details correctly?


Elizabeth

October 5, 2018 at 2:18 pm

Im going to try that once she tries the Filtered CSV option. I’ll let you know…thanks

The support post ‘EE4 Export issue’ 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