If during export bookings to CSV at the WP Booking Calendar > Booking Listing page you have 404 error, then check these steps:
- Go to: WordPress Settings > Permalink page. Please be sure that you set the "Permalink structure" option "Post name" instead of "Plain" value.
- Please double-check the root folder of your website for any .htaccess files. Make sure these files don't have security restrictions affecting link generation. It's a good idea to reach out to your hosting support for assistance, as they are more knowledgeable about potential security restrictions.
- Take a look at any other security plugins in the WordPress > Plugins menu that might be blocking the creation of the URL structure for the CSV feed. Try deactivating each active plugin one by one and test after each deactivation. If the issue persists, deactivate all plugins and switch to the default WordPress theme. Test again to see if this resolves the problem.
- Review your server's error.log for any related errors in your server configuration. If you can't locate the error.log file, contact your hosting company's support for assistance in finding this file.
- If the previous steps don't resolve the issue, it suggests there might be server configuration restrictions. In this case, only your hosting support or server administrator would know how to reconfigure your server to avoid blocking the generation of the CSV feed.
- Please inform your hosting support that the "CSV" file is not a physical file on your server; the script generates it on-the-fly.
- Please note, Booking Calendar generates virtual CSV feed form the php script. So it’s not the real file in the folder. It generates such feeds dynamically.
- System has to work in the same way as WordPress working with pages at your website. As you may know, you can have a link to some page like this: https://server.com/category/some-page/ . But it does not mean that you have a real file like category/some-page/index.html at your server. Your system accesses a general index.php file at the root of your website and then loads specific pages based on permalink structure.
- The same with CSV export in Booking Calendar, when the server tries to access the url, then the CSV feed is generated dynamically from the php file.
Kind Regards.