Posted: March 5, 2021 at 10:42 am
|
We are running Stella Maris (https://stellamaris.org) on a multi-site install, which has not been a problem in the past. However, I wonder if this might be a factor in the following issues. We are having three issues: CSV Export: However, the path provided is: https://www.stellamaris.org/files/espresso/batch_temp_folder/6WLvEMlSsu4cPmp/event-espresso-registrations-2021-03-05-17-35-51.csv Frontend Registration: Backend Registration: |
Hi there, CSV Export Did exports work previously? Frontend Registration Logged in or out? I tested a quick registration and didn’t run into issues but if you know the steps to reproduce I’ll test again. Note links to the checkout process won’t work for other people, it’s linked to your session so loads fine for you but I can’t view that link. It’s best to include the link to the event your testing and the steps to reproduce it so we can take a look. Backend Registration That error is from the messages generating and usually means there is at least one file missing from your EE install. If you download the latest version from your account page and install it over the current version, does that fix the above error? I know you already have the latest version installed, but that error is showing that EE is trying to open a file that isn’t there. Did you previously install via FTP? |
|
|
Hi Tony, Thanks for your quick response! CSV Export: Frontend Registration: I went to the first event on the list and tried to register as a volunteer/staff (aka $0). I had all the fields filled out and kept receiving errors that various fields were required and needed information (despite them being filled out). Backend Registration: Thanks again! |
|
Hi again Tony, I have finished deleting and re-uploading the plugin. Here’s a quick update to each item. CSV Export: Frontend Registration: Backend Registration: So, it looks like it’s just the CSV link that remains. |
Frontend/Backend registrations. Great! CSV Export Ok, so the URL that is used is whatever is returned by
So, a couple of questions. Any plugins to alter the sites wp-content directory? Or, any code hooking into:
(Uses Or:
(Uses |
|
|
Hi Tony, I looked into this and found that the uploads_dir seems to be correct and unaltered by either the theme or other plugins. I have printed them out just after the opening body tag (in a display:none div) and again just before the closing body tag. You can see them here: Any pointers as far as what needs to be adjusted? |
This reply has been marked as private. | |
I’ve posted the details from your site in a private reply above just so it’s easier to reference here. It didn’t occur to me previously that your directories use When you said this worked previously, was that also using the batch system? Where when you click on the export it takes you to a progress bar and then directs you to download. Or did it work when you clicked the report and the file downloaded instantly? Try adding the following to your
You add the above to a line above where it says:
Does it work then? |
|
|
This reply has been marked as private. |
|
Client got back to me. Prior to this, there was no loading bar. You simply clicked the export button and it would download – no interim screen. |
Ok, so that makes a little more sense then as I couldn’t work out how it worked prior. The CSV opening in the browser means that either your browser is set to automatically open CSV or the MIME types are incorrect on the server. Using nginx or Apache? |
|
|
We are using WP Engine as the host, so I believe we have nginx |
Ok, contact WPEngine and ask them to set the following MIME:
This may also work:
Then switch EE to use the ‘old’ CSV export using the code I gave you earlier and retry. I’ve created a ticket to investigate the MultiSite URL used for the export, it works with the ‘new’ MS set up but looks like we may need a shim for the ‘old’ way using |
|
|
Hi Tony, I followed the steps you provided – had WPEngine add the MIME and change the wp-config file to include “define( ‘EE_USE_OLD_CSV_REPORT_CLASS’, true );” Unfortunately, it didn’t change anything. I still go that page with the csv printed out instead of downloaded. Any other ideas? |
Can you send me temp login details so I can view the request? If so, you can use this form: https://eventespresso.com/send-login-details/ |
|
|
Hi Tony, I just submitted that for you. Note that I am using. company account (which has my name as Dennis Kenny), but I, typing, am Elly Cabral (elly@illuminage.com) – our Lead Developer. As such, I’ve used my information to fill out that form rather than the company’s global information (makes it easier for me to stay informed this way). Thanks! |
Have you removed the constant above? EE is currently using the batch system on your site. |
|
|
Oh yeah I did. But I just put it back. Sorry about that. |
The server is still returning a content type of We already set this when sending the output:
However, the server can override it and it looks like that is what is happening above. Can you recheck with WPEngine and confirm they have applied the correct MIME type for CSV’s? |
|
|
I reached out to WPEngine and got the following responses: Thanks for the patience. This is currently in place. I just ran an apply on the config file for this to take affect. … Thanks for the patience. By default the platform disallows this file type [csv] to be uploaded. However we can negate this rule with the defined added to the wp-config.php that’s currently present. Unfortunately we cannot change the configuration to allow by default on the server. |
I’m not really sure what they are trying to get at there, but that answer doesn’t apply to this issue. Nothing is being UPLOADED through WP itself here, there is no need to enable EE generates the CSV in a temp location, its not uploaded but generated from data on the site. The batch process generates the CSV in batch and writes to the temp file location until the total batch has been processed, then streams it to the browser to download. (This is not working on your site with the MultiSite set up you have and whilst we don’t officially support MultiSite I’ve created a ticket to see if we can work around that). The ‘old’ export system (the one in use when So nothing in either of those functions is uploading to the site through WordPress. The batch function obviously works in terms of the .CSV file it’s just with your setup but the URL ends up being incorrect, we can tell this works as you have the ‘correct’ URL and can download the CSV. The ‘old’ system is ‘working’ in the sense that that generates the CSV except the content_type return by the server for that request is set to text/html, so the browser simply outputs it to the page. To show you this, here are the response headers for a request using the old export on a test site: https://monosnap.com/file/HVRvphHayaU50jiD1boNftC0z2TYRQ The two headers I’ve highlighted are explicitly set within the request to stream the CSV to the browser as a download. Now on your site: https://monosnap.com/file/eir9zgCmlkq0xouR5VFnCMhTJCOmlp Those headers don’t exist there, so something on the server-side is overriding them. The answer they’ve given above simply doesn’t apply to any of the above so I’m not sure what to recommend you reply with. |
|
|
Thank you so much for that explanation! I will work with WP Engine to see what they can do to adjust on their end. That said, is it fair to assume that if StellaMaris was on a multi-site that used the standard uploads directory (uploads/sites/###), the export would work without issue? In other words, is the primary issue the blogs.dir directory for the new batch system? |
It should do yes, I have a few local installs of multisite and they use the ‘new’ system, I can export registrations there fine. This is a new install I set up specifically for this thread to confirm: https://monosnap.com/file/xI3zGT3C5PONV1Gk7QtQdEIUU0ecLv Note the download location for both of those exports: |
|
I am marking this as a topic I am going to come back to. I have a multisite install (April of 2020 on WP Engine, not sure when ‘new’ system started) as well and wasn’t able to download the export the registrations. It went through the process and looked to generate the csv file, it just didn’t give me the option to download or download through the browser. I haven’t had any errors and the registration process has been really smooth. All email messages have seemed to go through including the Batch message. If I have any updates I will come back to note them. |
|
As of WordPress 3.5+ if you set up a Multisite network it will use the ‘new’ location If the network was set up before then it uses Sounds like you are likely on the ‘new’ system.
Did it go to a 404 page or just not download? Using Chrome? Retest with another browser, does it work then? HTTPS or HTTP? |
|
The support post ‘Registrations – Register and Export’ 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.