Max execution time error with stream_body() in wp-includes/class-http.php

From personal experience this is network/hosting issue with original images used, which are hosted (and CDNed) by wordpress com. I had never had it bad enough to break import, but I had errors with importing them on multiple occasions.

Possible solutions:

  • the issue comes and goes, import on another day (sounds silly, but least effort 🙂
  • increase PHP execution time limit
  • filter http_request_timeout to reduce network timeout wait time (defaults to 5 seconds)

Note that even without errors there are several megabytes worth of them and on slow enough connection it can be sizable to download in short time.