WordPress.org

Ready to get started?Download WordPress

Forums

  1. cruzgloriosa
    Member
    Posted 1 year ago #

    Hi,
    After update to WordPress 3.7 i find this message only in one page of my site:

    Warning: Illegal string offset 'width' in /home/xxxx/cruzgloriosa.org/wp-content/plugins/nextgen-facebook/lib/media.php on line 170

    Warning: Illegal string offset 'height' in /home/xxxx/cruzgloriosa.org/wp-content/plugins/nextgen-facebook/lib/media.php on line 170

    Warning: Illegal string offset 'width' in /home/xxxx/cruzgloriosa.org/wp-content/plugins/nextgen-facebook/lib/media.php on line 172

    Warning: Illegal string offset 'height' in /home/xxxx/cruzgloriosa.org/wp-content/plugins/nextgen-facebook/lib/media.php on line 172

    The page is: http://www.cruzgloriosa.org/cantos-camino-neocatecumenal-pages/

    Any suggestion? Thank you for your help.

    http://wordpress.org/plugins/nextgen-facebook/

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. cruzgloriosa
    Member
    Posted 1 year ago #

    Hi,

    Thank you for reponse... I checked Add Hidden Debug Info... It's that?

  4. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Yup, it's as I suspected. For some reason, the WordPress image_downsize() function is returning an image size of 1x1 for the ngfb-open-graph size for http://www.cruzgloriosa.org/wp-content/uploads/2013/09/Cantos-Camino-Neocatecumenal-pages.png.

    Since 1x1 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.

  5. cruzgloriosa
    Member
    Posted 1 year ago #

    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.

  6. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. cruzgloriosa
    Member
    Posted 1 year ago #

    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?

  8. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  9. cruzgloriosa
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.