• YEST

    (@yaboestela)


    Hello
    We have a site that is running on WordPress Version 5.3. We get a Error: File attachment metadata error after our WordPress update.

    We would like to ask your help regarding this issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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:

    1. Function media_pixabay_images_tab below media_upload_header(); I added this line:
      $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
    2. 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
    3. 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 5 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 5 years, 1 month ago by marksilen.
    NeNaKarmesi

    (@nenakarmesi)

    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.

    thefriendlancer

    (@thefriendlancer)

    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? ??

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