WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cronless Postie Throws Errors for HTTPS (2 posts)

  1. terriann
    Member
    Posted 4 years ago #

    I was getting errors when loading wp-cron.php with cronless postie enabled

    Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/wp-content/plugins/postie/cronless_postie.php on line 23

    Warning: fsockopen() [function.fsockopen]: unable to connect to :80 (Unknown error) in /var/www/wp-content/plugins/postie/cronless_postie.php on line 23

    [...]

    There's no exception to include blogs whose 'siteurl' is https://

    Fix

    Change line 15 of cronless_postie.php from
    preg_match("/http:\/\/(.[^\/]*)(.*)/",$host,$matches);

    to
    preg_match("/https?:\/\/(.[^\/]*)(.*)/",$host,$matches);

    No other modifications needed

    http://wordpress.org/extend/plugins/postie/

  2. robfelty
    Member
    Posted 4 years ago #

    Thanks for that fix terriann. I have included it in the latest development version.

Topic Closed

This topic has been closed to new replies.

About this Topic