Cronless Postie Throws Errors for HTTPS
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cronless Postie Throws Errors for HTTPS’ is closed to new replies.