Support

Home Forums Event Espresso Premium Can't Download Registration Report

Can't Download Registration Report

Posted: October 29, 2018 at 10:24 am


Tom Canfield

October 29, 2018 at 10:24 am

I am trying to download registrations for an event this upcoming weekend, but am unable to do so. It’s starts as usual, but after a few seconds, the following message appears:
The file will download automatically when done, and then you will be redirected.
Registrations report started successfully…
{“notices”:”
<\/div>”,”data”:{“file_url”:””,”status”:”continue”,”units_processed”:51,”job_size”:770,”job_id”:”FQXsUd1ElKzqGfa”,”update_text”:”Wrote 50 rows to report CSV file…”},”isEEajax”:true}
An error occurred and the job has been stopped.


Josh

  • Support Staff

October 29, 2018 at 10:51 am

Hi Tom,

May I ask have you previously been able to download a registration report? If so, has anything been changed on the website since that time? For example, have any new plugins been added?


Tom Canfield

October 29, 2018 at 1:45 pm

Yes, we’ve been downloading the report on a regular basis for all our events. The last time 10/24, I believe. After that date, the site crashed. Our hosting company said this was due to a lot of traffic hitting the site at once (although we are talking less then 100 people over a 2 hour span). They recommended to optimize the website starting with images, so we deleted some unused images, older posts and pages.


Tom Canfield

October 29, 2018 at 1:49 pm

I also tried adding some code to the function.php file to add a file size column to the WordPress media library (which we are also having problems with), but that didn’t work, so I removed that code. Can’t think of any other changes we’ve made since 10/24.


Josh

  • Support Staff

October 29, 2018 at 2:09 pm

You could check the /wp-content/uploads/espresso/ directory. If that folder got altered while other things were deleted that could cause some problems for the exporter.

As an aside, merely deleting images, pages, and posts are not going to optimize the website. I can point you to a guide that will show how to make some optimizations that will help speed up the site (and reduce the impact on the server from each visitor request).
https://daverupert.com/2010/06/web-performant-wordpress/


Tom Canfield

October 29, 2018 at 2:18 pm

The only folder in that directory that was recently modified is a folder called batch_temp_folder. There are a few subfolders in there that were modified today. Looks like those subfolders contained csv files (with file names such as event-espresso-registrations-2018-10-29 10-15-46.csv) and index.php file. I’m guessing those might be the attempted report downloads today?


Tom Canfield

October 29, 2018 at 2:20 pm

And thanks for the link on optimization, I’ll have a look at that later on.


Josh

  • Support Staff

October 29, 2018 at 2:30 pm

Yes that’s a good guess, the subfolders are remnants of failed reports. Normally when the report runs it automatically deletes the temp. folder when it’s done, but it’s not getting that far on your site. You can delete the subfolders in batch_temp_folder, leaving only the index.php file.

You could try temporarily deactivating all other plugins on the site, then run a report again, to rule out a plugin conflict.


Tom Canfield

October 29, 2018 at 2:37 pm

I tried that twice without success. BTW, I also confirmed that this is not a browser specific issue. I tried downloading in Chrome and Firefox (on Mac and PC), same problem in both.


Josh

  • Support Staff

October 29, 2018 at 4:05 pm

You tried what exactly twice without success? Was it deactivating all other plugins, then doing the report with those plugins deactivated?

If so, then I don’t know what else would have changed on your site since this was working. You could check with the host to see if they’ve disabled anything on that server since the time of the crash and also check the PHP error log to see if it has captured errors when the reports were attempted.


Tom Canfield

October 30, 2018 at 6:36 am

Yes, I tried deactivating all other plugins and running the report twice, and the same error happened. We checked with the host regarding this issue, and they have not found anything that might have caused it, but I’ll ask them to check the php error log.


Tony

  • Support Staff

October 30, 2018 at 6:56 am

The additional details that are shown on the page:

{“notices”:”
<\/div>”,”data”:{“file_url”:””,”status”:”continue”,”units_processed”:51,”job_size”:770,”job_id”:”FQXsUd1ElKzqGfa”,”update_text”:”Wrote 50 rows to report CSV file…”},”isEEajax”:true}

Is the response from the batch process to build the CSV, so the first ‘batch’ appaears to be running, but the response from that process are being output to the page rather than caught by the JavaScript that runs on that page (which is also why you see the .CSV files in the batch folder, its starting the process but on the next ‘step’ its failing).

Have you also tested this with a default theme such as swentyseventeen? (something in your functions.php file may but hijacking the request, I can’t say for sure, but its worth testing) You can test using the WP Health Check plugin enabling troubleshooting mode (which disables all plugins and switches to a default theme) and then enabling EE through the wp admin bar again and retesting.

Also, if you open up Chrome dev tools when running an export and look in the console section, do you see any errors there?


Tom Canfield

October 30, 2018 at 7:26 am

I’ve run Google dev tools while running the export. The first time around, it showed a warning about the maxbuttons plugin. So I deactivated just that plugin and tried again. That time it still didn’t work, and dev tools didn’t show anything at all. No warnings, no errors, just blank space. I’ve since reactivated the max buttons plugin, since it didn’t seem to make a difference with the report download or the wp media library issue we are also having.

As for the functions.php file, after our site first crashed and the host told us to optimize the site, starting with images, I tried to add some code to the functions.php file to add an image file size column to the library, but that didn’t work, so I removed the code I added. I do not believe that I deleted anything that was there before, but if that file somehow got corrupted, could that cause a problem with the report download?

One more thing: yesterday in addition to this post, I opened a support ticket, providing login credentials for the site. We never received a confirmation via email about the ticket, even though after submitting the ticket, the page said something along the lines of “thanks for submitting a ticket, we’ll be in touch”. Was that support ticket received?


Tony

  • Support Staff

October 30, 2018 at 7:37 am

My apologies.

I just checked and it looks like the content triggered out spam filters, so the submission was set aside, I’ve now pulled the submission and marked it to no longer be spam.

However, looking over the form, there are no FTP credentials included, can you resubmit providing all of the requested details? We’ll need to add some debug code to site to investigate.


Tom Canfield

October 30, 2018 at 7:43 am

The FTP credentials weren’t marked as required, so I submitted without that info. I don’t think we actually have an FTP account set up. Would the cPanel credentials work instead?


Josh

  • Support Staff

October 30, 2018 at 7:48 am

Yes those will work in place of FTP.


Tom Canfield

October 30, 2018 at 7:49 am

Ok, I will resubmit the form including those.


Tony

  • Support Staff

October 30, 2018 at 8:00 am

Just to note, we don’t mark FTP credentials as required as they aren’t needed for every support token (most but not all).

If, like above, the user doesn’t have them we’d rather they can at least submit the form so we can investigate what we can from there, even if then the first reply we make is to request FTP credentials anyway.


Josh

  • Support Staff

October 30, 2018 at 8:16 am

Hi,

It looks like that functions.php file did indeed get corrupted from making those edits earlier. I went through and cleaned it up, and the reports work as expected now.

This is one of the reasons why we encourage using a custom functions plugin instead of placing custom functions into the theme’s functions.php file. A custom functions plugin can be deactivated whereas the functions.php file within the theme cannot be deactivated without resorting to switching to another theme.


Tom Canfield

October 30, 2018 at 8:29 am

Wonderful news. I just went in to run a report, and it worked perfectly fine. I’ll make a note about the functions plugin.

Thank you very much for fixing this so quickly!! I appreciate it.

The support post ‘Can't Download Registration Report’ 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