Posted: January 31, 2024 at 6:50 pm
When on the Registrations – Overview page, there are several view options at the top.
When on the View All options the Registration CSV Report works fine and downloads as expected. I’ve attached the query parameters for the successful report and the failed report below in case there is some issue visible there. (domain and nonce removed)
|
|
Hi there, Strange! Generally if you get a 403 on export I’d recommend checking your sites permissions to confirm you can write to It could be that the filtered requests are triggering a mod_sec rule on the server. Any errors in the error logs when trying to run these exports at all? |
|
No there are no errors in either the WP debug log or the php error log. A couple of deprecation warnings but that’s it and they are from other plugins. |
|
Try adding this to your sites PHP config file:
Its not a fix for the above, it switches to the ‘old’ system for exporting registration and I’m checking to see if the request within that works. Right now I suspect this is mod_sec on your server blocking the request. You’ve posted both 403 and 404 error codes in this thread, I assume both should be 403? |
|
Hi Tony, I’ve tested it with the variable above and it works. Yes, it’s a 403 message. I’ve mentioned before that it’s quite limiting not being able to edit messages on this forum… it makes it impossible to update a message to correct errors or add clarity. |
|
It may not make sense right now, but I’ve seen much weird goings on with overreaching mod_sec rules. The filtered request has a much longer query string which can trigger mod_sec, or some rule set just doesn’t like the the contents of the request. With the above constant still in place, manually apply a filter (say, filter Approved registrations) and export, still work? (The ‘old’ system exports all of the registrations in a single request, the new system batch processes those requests)
I understand it can be frustrating but the edits also add much more complexity/confusion when users go back and completely change questions after the fact which then throws answers out of whack (yes, it’s happened 🙂 ) So not being able to edit posts is the lesser of 2 evils here. |
|
hmm well I am unable to filter the registration status with or without that constant in place. I am getting the red banner at the top with the following error message.
|
|
So you’re going to Event Espresso -> Registrations. Changing the Reg Status dropdown to Approved and hitting filter? Like this: |
|
oh sorry, no I was doing something dumb. Yes, that still works. |
|
I can’t think of anything else that would give you a 403 on those requests. I recommend opening a ticket with your host and having them confirm if the requests are being blocked on their end. We’ve not had any other reports of this, I can’t reproduce this on any of my test site (I run many on various different types of hosting) and the batch processing of CSV requests (filtered or not) has been included within core for a while now. Personally, my next step in testing this would be clone the site locally and see if the export run there, if it does you know its likely some kind of server config issue. |
|
Thanks. I’ve already opened a ticket with the host. I am waiting for a response. I will do some further troubleshooting on a dev site. |
|
Actually, another option for troubleshooting (try it on dev) is to use the Health Check & Troubleshooting plugin: https://wordpress.org/plugins/health-check/ Then go to Tools -> Site Health -> Troubleshooting and enable it. That switches to a default theme and disables all plugins but just for you the logged-in admin. Enable Event Espresso and see if the export works. If it does, work through enabling each of your plugins one by one and run an export between each on until it breaks (if it does) to narrow down a plugin conflict. When finished go to the Admin bar and Troubleshooting -> Disable Troubleshooting (If working on dev you can also do the above directly without the Health Check plugin) |
|
Tony, I’ve found that the mod_sec rule triggering the 403 error is rule 933170 which blocks
Which explains why its only blocking the filtered requests since they contain a serialised array of filters…. |
|
So while this error will only occur for users who have this rule set, it is an important rule and I would argue that it’s the code causing the issue here since it is a vulnerability that should not exist within the code. OWASP prevention technique for this vulernablity is simple: |
|
Hi there, I’ve created an issue for our developers to discuss this. In the meantime, you will need to either disable the above rule, or add/leave:
Set within wp-config.php to use exports with batch processing to run the exports. |
|
The support post ‘Registraions CSV Report – 403 Forbidden’ 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.