• Hi,

    We noticed, after enabling WP super cache and cloudflare service, that when sharing a post within facebook the featured image would not show.

    At first we thought it could be an effect of those caches, and perhaps they play some part in it, but digging deeper we found that some images in “postmeta” table had missing information regarding the size oft he picture, and that the _wp_attachment_metadata information was missing. Facebook sees them as images of 0 x 0 size and do not use them.

    How can I generate this info on the database for images that have it missing?

    For the moment FB Thumb Fixer seem to be working to inform facebook of the featured image to use, bu seems like a waste of space to have a plugin to just do that.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi welsige! Have you tried using https://ww.wp.xz.cn/plugins/regenerate-thumbnails/? – it may be able to recreate the missing meta data. Give it a shot and let us know if it works.

    Thread Starter welsige

    (@welsige)

    Tried , dosent work, failed trying to regenerate an specific image.

    Redimensionamentos falhados: 1

    function (){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&”string”!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this}

    Perhaps try replacing the “corrupt” image with a new image using something like https://ww.wp.xz.cn/plugins/enable-media-replace/.

    One other thing to possibly try: download the image from your site, open it with an image editor of your choice, save a new copy of the image, upload this new image file up to WordPress and then use that new version.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘MISSING _wp_attachment_metadata’ is closed to new replies.