I was getting the same issue, not sure why.
I am using the Version 3.4 of the plugin and 5.3.2 of WordPress
I did this workaround on the pixabay-images.php file:
-
Function
media_pixabay_images_tab below media_upload_header(); I added this line:
$post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
-
In this code line
jQuery.post('.', { pixabay_upload: "1", image_url: I added post_id: post_id,. So it looks like jQuery.post('.', { pixabay_upload: "1", post_id: post_id, image_url
-
Finally, On pixabay_upload function, I replace $attach_id with $post_id as follows
FROM: $result = wp_update_attachment_metadata($attach_id, $attach_data);
TO: $result = wp_update_attachment_metadata($post_id, $attach_data);
Hope it helps you.
Hopefully there will be an update for the plugin with the correct tweak.
-
This reply was modified 6 years, 1 month ago by
NeNaKarmesi.
Thank you @nenakarmesi !!!
I have encountered the same problem…….
Were you able to insert images into a post?
Mark
-
This reply was modified 6 years, 1 month ago by
marksilen.
Hello @marksilen
Yes, it worked fine for me. Not sure if there is other person with a different solution, but at least for me, it is fine.
We also encounter the same issue. Every time we select the Pixabay result, it throws the below error:
Error: File attachment metadata error.
It looks like the plugin is no longer maintained, so hoping somebody will take over? 🙁