• Resolved soma2000

    (@soma2000)


    I am having the same issue faced by a few others. That the image is shown as a broken link in media library and file size is 0 byte.

    I am using bluehost and when I created another wordpress site without any plugin, I am still having the same issue.

    It could be related to server configuration but the bluehost specialist said they could not find any issues with the server.

    Any suggestion? I am even thinking about migrating the domain to media temple and see if it helps.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m pretty sure this came up before but just in case: no author here is permitted to login to a user’s site. That gets author’s into real trouble in these forums.

    Thread Starter soma2000

    (@soma2000)

    Non of your business and this is a trial site!!

    Plugin Author tubegtld

    (@tubegtld)

    @soma2000: as a moderator, it IS Jan’s business.

    @jdembowski: I have NO interest in logging into anyone’s site. I suggested a screen share so I could see soma2000’s issue and help show where to stick some print statements for troubleshooting.

    Is that not permitted?

    • This reply was modified 7 years, 1 month ago by tubegtld.
    Plugin Author tubegtld

    (@tubegtld)

    This issue is resolved.

    Please stay tuned for an update to the plugin.

    For those that may come across a similar in the future.

    The plugin was previously using file_get_contents() to retrieve the raw image data.

    This was causing an error on some servers…

    Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in

    By calling wp_remote_get() instead, the file contents are successfully retrieved.

    This has the added benefit of being able to trap for wp_is_error and that oh-so-fresh feeling of using native WP functions.

    • This reply was modified 7 years, 1 month ago by tubegtld.
    Thread Starter soma2000

    (@soma2000)

    Thanks truly appreciate it. That will save us tonnes of time in uploading!

    sampleader

    (@sampleader)

    I have a different issue. Featured images appear broken, although there is nothing wrong with the size and they work in media Library. The odd thing is that yesterday for some posts that featured images worked, now appear broken to.
    This is my blog, pls help:
    https://www.SampLeader.com

    Plugin Author tubegtld

    (@tubegtld)

    @sampleader – please open a new support ticket, though it seems like this is theme related.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Featured Image shown as broken link’ is closed to new replies.