Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using the widget from "amr ical events" plugin. After updating my plugins, the widget now outputs the following error:

Ungültige Ical URL http://www.ec-nordheide.de/?ical

Note: the php validation functon does not cope with internationalised domain, please contact the developer if this affects you.

I tried a bit with the URL, if I delete the hyphen, the error disappears (but the file can't be found anymore) ... what do I do?

share|improve this question

closed as too localized by toscho Jul 14 '12 at 21:48

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Ok, so I found a workaround. I commented out some code in the amr-ical-events-list-main.php:

//  if ((function_exists('filter_var')) and (!filter_var($v, FILTER_VALIDATE_URL))) { /* rejecting a valid URL on php 5.2.14  */
//    echo '<h2>'.sprintf(__('Invalid Ical URL %s','amr-ical-events-list'), $v).'</h2>';
//    echo '<p>Note: the php validation functon does not cope with internationalised domain, please contact the developer if this affects you.</p>';
//  }
//  else
      $shortcode_params['urls'][$i] = esc_url_raw($v);

Now the error message has disappeared (of course I literally commented it out) and the iCal URL is computed correctly, the contents are displayed by the widget.

This means beforehand the filter_var function returned that the URL is invalid, does somebody know this function? Why would it do that?

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.