Support

Home Forums Event Espresso Premium iCal download button causing error Reply To: iCal download button causing error

Reply To: iCal download button causing error

Author Replies
Tony # Posted on May 4, 2018 at 4:25 am

Hi there,

I’m not a server admin by any means (especially not windows servers) but it sounds like the same problem posted here:

https://stackoverflow.com/questions/19324407/how-can-i-post-form-data-to-a-url-without-a-trailing-slash-iis6-asp-classic-or

You can change this within EE but there’s no filter to do so so it would require a core file edit (which we don’t recommend) and will be lost each time EE updates. Although as mentioned we don’t recommend changing core I can give you the location so you can at least get something working right now:

\event-espresso-core-reg\modules\ical\EED_Ical.module.php

Line 84 will have:

$URL = add_query_arg( array( 'ee' => 'download_ics_file', 'ics_id' => $datetime->ID() ), site_url() );

Change that to:

$URL = add_query_arg( array( 'ee' => 'download_ics_file', 'ics_id' => $datetime->ID() ), trailingslashit(site_url()) );

I’m not sure if we’ll add a filter for this as it should be handled by the web server already, I’ll create a ticket for our developer to discuss it.

Do NOT follow this link or you will be banned from the site!