Support » Plugin: Pixabay Images » Error: File attachment metadata error

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Simon Steinberger


    At the moment, no idea unfortunately. Since this is the only report of this error, it may be something very specific to your WordPress installation. Let’s wait and see if others also have this issue.

    OK, so I digged a little bit deeper into it and have some new insights.

    The URL the plugin will obtain is

    In my desktop browser it works and shows me a fellow dragon.

    But my server, or much rather wp_remote_get() (pixabay-images.php line 198) says the URL 301ses to

    which gives me a Bad Request (400). In both WordPress and my desktop browser.

    If you could have a look into that since the 301 is on your end and out of my scope, I would appreciate.

    Here’s the pastebin of the complete response including the initially called URL:


    Same problem here. Since yesterday.


    Why is that labeled as “resolved”? Problem persists.

    Well, technically, it’s another error right now (timeout because takes longer than timeout), but it still eventually gives HTTP400 and thus the error above.



    we’ve got the same trouble like Alduin. It would be great if you could fix this issue as fast as possible.




    I was having this issue as well. The plugin is intentionally avoiding HTTPS for some reason, and the Pixabay server seems to be intermittently throwing Bad Request (HTTP 400) errors on the non-secure http:// URLs.

    The following change should stop the Pixabay plugin from forcing non-secure image download URLs.

    In pixabay-images.php, replace line 190:

    $url = str_replace('https:', 'http:', $_POST['image_url']);


    $url = $_POST['image_url'];

    THANK YOU @dancriel!

    That fixes the problem.

    Please apply this patch to the plugin and release an update 🙂


    Plugin Author Simon Steinberger


    Hmm, no idea why we converted the URLs there. Doesn’t make any sense to me now. We’ll remove this line with the next plugin update.

    Thanks a lot, dancriel!

    Plugin Author Simon Steinberger


    Update is on the way. Tested up to WP 4.9 and this update additionally includes an optional SafeSearch filter.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error: File attachment metadata error’ is closed to new replies.