Change 1000+ of WordPress Featured Images in 5 Minutes! › Forums › Questions and Answers › Not picking picure › Reply To: Not picking picure
I found the root cause.
From the Apache log, I can see that QFIP tries to fetch the image file and put it to the media library. However, the HTTP request URL is incorrect:
[26/Sep/2018:14:16:07 +0000] “GET /bird/bird/mt-image/img01532.jpg HTTP/1.1” 404 47868 “-” “WordPress/4.9.8; https://www.birdandgua.net/bird”
My site is under a subdirectory of the host name. The host name is http://www.birdandhgua.net, and my WP site is at http://www.birdandgua.net/bird. So the embedded image URL starts with /bird which is a correct relative URL form. However, QFIP treats the hostname as “www.birdandgua.net/bird” instead of “www.birdandgua.net”, so it puts “www.birdandgua.net/bird” in front of the image URL, and the “/bird” is doubled, hence it cannot fetch the image correctly.
I guess this is a bug in QFIP that it doesn’t consider the hostname may contain a subdirectory?