• Resolved fzsky

    (@fzsky)


    I’m getting the following error in one of my tiled gallery pages.

    Warning: Illegal string offset ‘width’ in $/wp-content/plugins/jetpack/modules/tiled-gallery/tiled-gallery.php on line 481
    Warning: Illegal string offset ‘height’ in $/wp-content/plugins/jetpack/modules/tiled-gallery/tiled-gallery.php on line 482

    The page is: https://cagmag.miraiserver.com/photo-archive/portugal-2012/
    Other gallery pages are fine. The only difference between this page and others is that this page contains more photos, 200 altogether, and some photos are relatively large (the largest being 4692px by 600px, 679KB, is it too huge?).

    I’ve read some other posts regarding the same/similar issue, where the suggestion was to set WP_DEBUG to FALSE in wp-config.php, to turn off the warning message.
    However, I checked mine and WP_DEBUG was already FALSE.
    What can I do about it?

    https://www.ads-software.com/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    It seems that something happened during the original upload of your images. WordPress wasn’t able to resize these large images properly, most likely because they were too large for your server to handle.

    Could you try to upload smaller versions of these images, and let me know if it helps?

    Thanks!

    Thread Starter fzsky

    (@fzsky)

    Thanks.
    Unfortunately, my account was suspended right after I got your reply, due to database overload.
    I have to wait for the tech guys to reactivate the account, and then try replacing the images with smaller ones. I’ll let you know once it’s done, although I sense it would most likely work.

    Thread Starter fzsky

    (@fzsky)

    Hi, I tried resizing some of the images, but I’m still getting the error message. The resized images are uploaded via FTP, so the database table is untouched. Should I modify the corresponding database as well, cause I think there are tables related to image dimensions?
    Also, can you tell me the possible upper limit of image size (file size or image dimensions), so that I can properly resize them? Because I have some large panaroma photos and I don’t want to make them too small.

    UPDATE:
    I used this plugin to properly replace the images.
    Enable Media Replace https://www.ads-software.com/plugins/enable-media-replace/
    Now the replaced images appear in the resized dimensions in media library, which they didn’t when I simply overwrote them via FTP. But I’m still receiving the error message.
    Probably the resized images are still too large, or there are other images that are too large. I will keep trying sizing them down, but it’s just good to know what the threshold is.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m afraid you will need to completely re-upload the images, without going through a plugin or simply uploading the files via FTP. This way, you will make sure that size parameters are added to each image you upload.

    Also, can you tell me the possible upper limit of image size (file size or image dimensions), so that I can properly resize them?

    That mostly depends on your server capabilities, so I can only recommend that you make some tests in order to find out what the limit is on your site.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    We’ve now fixed the issue in Jetpack. The fix is here, and will be part of the next Jetpack release. You won’t see any errors, even if you experienced issues during an image upload.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tiled gallery error (illegal string offset)’ is closed to new replies.