Not picking picure

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15510
    birdlg
    Participant

    I use such http link in my old posts to show pictures:
    <img src="/bird/mt-image/img00004" alt="eTrex-BT.jpg" width="480" height="360" />

    However, the QFIP plugin does not pick the image and make it featured image.
    I tried every option including ” Take the first post image from current site domain, copy and add it to the media library if not available there”, but it still does not pick image.

    Please help me solve the problem. 15 euros is quite expensive to me and it doesn’t work so far… Thanks.

    #15511
    Martin Stehle
    Moderator

    Hello, may I take a look at your website? Please tell me the web address of it.

    #15513
    birdlg
    Participant

    Thanks for your prompt reply. My website is at https://www.birdandgua.net/bird

    Some old posts are migrated from an old Movable-type site and the images are put in a centralized directory with the URL in my previous message,and they are not in the media library of WordPress.

    Thanks.

    #15514
    Martin Stehle
    Moderator

    Many posts have featured images. It seems the plugin worked. It is hard to find the posts “migrated from an old Movable-type site”. Please point to one of them.

    #15516
    birdlg
    Participant

    For example:

    You can check the posts back to year 2006-2010. Those are the so-called pled posts.

    #15517
    birdlg
    Participant

    Let me explain more.

    In this post:

    The URL of the first image is:

    https://www.birdandgua.net/bird/mt-image/img00004

    and the HTML source code of this embedded image is:

    <img src="/bird/mt-image/img00004" alt="eTrex-BT.jpg" width="480" height="360" />

    This is an old post that was migrated from a Movable-type platform, so the image files are stored in a relative URL path of the same host (/bird/mt-image…), and the files are NOT in the media library of the WordPress platform.

    One strange thing is that the image file has no filename extension. Does it cause any problem to QFIP? Because the browser can still show the images correctly.

    Thanks!

    #15522
    Martin Stehle
    Moderator

    QFIP takes the image URL “as is” so the missing file extension is no problem.

    And QFIP takes relative paths, starting with a slash. It adds the site URL to the path to try to download the image and to insert it into the library. Your choice for “Take the first post image from current site domain …” is correct.

    Does it work with the post “比利時一週, 法國兩週”?

    #15525
    birdlg
    Participant

    No, it doesn’t work with that post, either…

    #15528
    Martin Stehle
    Moderator

    Ok, I am trying to reconstruct your case and will reply again. Please be patient.

    #15530
    birdlg
    Participant

    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&#8221;

    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?

    #15531
    Martin Stehle
    Moderator

    Meanwhile my test on my development server showed a well working plugin when relative paths are considered. But your researches revealed the reason. Thank you for the great insight!

    I will refine the method for the next upgrade, coming soon.

    #15543
    Martin Stehle
    Moderator

    The new version of QFIP, 8.4.3, available now, fixed the wromg building with relative image paths. Please upgrade QFIP and try Buld Edit again.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in € Euros (€) EUR.
  • USDUS Dollars ($)
  • EUREuros (€)
  • GBPPounds Sterling (£)
  • CADCanadian Dollars ($)
  • AUDAustralian Dollars ($)
  • BRLBrazilian Real (R$)
  • INRIndian Rupee (₹)
  • CZKCzech Koruna
  • DKKDanish Krone
  • HKDHong Kong Dollar ($)
  • HUFHungarian Forint
  • ILSIsraeli Shekel (₪)
  • JPYJapanese Yen (¥)
  • MYRMalaysian Ringgits
  • MXNMexican Peso ($)
  • NZDNew Zealand Dollar ($)
  • NOKNorwegian Krone
  • PHPPhilippine Pesos
  • PLNPolish Zloty
  • SGDSingapore Dollar ($)
  • SEKSwedish Krona
  • CHFSwiss Franc
  • TWDTaiwan New Dollars
  • THBThai Baht (฿)
  • TRYTurkish Lira (₺)
  • RUBRussian Rubles