Posted: 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: |
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? |
|
|
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. |
|
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. |
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). |
|
|
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? |
|
And thanks for the link on optimization, I’ll have a look at that later on. |
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. |
|
|
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. |
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. |
|
|
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. |
The additional details that are shown on the page:
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? |
|
|
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? |
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. |
|
|
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? |
Yes those will work in place of FTP. |
|
|
Ok, I will resubmit the form including those. |
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. |
|
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. |
|
|
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.