Hm. It would appear that wp_get_attachment_metadata()
is not returning the original image width and height, as it should.
Would you mind turning on debug mode (Open Graph+ Advanced settings page)? That will tell me for sure. 😉
Thanks,
js.
Hi,
Thank you for reponse… I checked Add Hidden Debug Info… It’s that?
Yup, it’s as I suspected. For some reason, the WordPress image_downsize()
function is returning an image size of 1×1 for the ngfb-open-graph size for http://www.cruzgloriosa.org/wp-content/uploads/2013/09/Cantos-Camino-Neocatecumenal-pages.png.
Since 1×1 is smaller than it should be, the plugin attempts to get the original image information with wp_get_attachment_metadata()
. Here again there seems to be an issue because the returned with and height is missing.
I suspect your theme or another plugin has a broken image filter. Maybe image_downsize, editor_max_image_size, image_resize_dimensions…
There’s nothing I can do to fix this, but you could avoid triggering this problem by unckecking the “WP Auto-Resize” option (Open Graph+ General settings page). That will prevent the plugin from checking the image size.
js.
Hi JS,
I unchecked WP Auto-Resize and the problem is solved.
You think i will not have problem after?
And… why only this specific page?
Thank you very much.
As I said, some other plugin and/or theme probably has an image related filter hooked into WordPress, and this filter code is broken.
By unchecking that option, NGFB Open Graph+ will not validate the image sizes that WordPress returns, so will not trigger the problem. To fix the issue, you’d have to fix that filter. I can’t tell you why the issue is only on that page – I don’t know what that broken filter does, I can only see it’s effect on the WordPress functions.
This could also be a WordPress bug, but more likely would be a broken filter. You could try disabling image related plugins and see if the problem goes away. At least then you’d know which plugin was causing the issue. If it’s not a plugin, then it might be your theme.
js.
Hi.
I don’t have image related plugins.
I have plugins as Download-Monitor, Newsletter, Askimet, DBManager, TablePress, Soundcloud…
I think… a bug of WordPress 3.7?
I would be surprised, but possible I guess.
The metadata for that image might be corrupt. You could try running something like this http://wordpress.org/plugins/regenerate-thumbnails/ and see if that fixes it.
This one is also very good http://wordpress.org/plugins/simple-image-sizes/, though the UI buttons need a little work. 😉
It really looks like a broken filter though, so I’d try disabling all plugins and see if the problem goes away — then re-enable one by one and see when it comes back. 😉
js.
Hi,
I think the problem is with Tablepress plugin, i deactivated this and no error… Now i have the error message, but only any times…