Title: Tiled gallery error (illegal string offset)
Last modified: August 21, 2016

---

# Tiled gallery error (illegal string offset)

 *  Resolved [fzsky](https://wordpress.org/support/users/fzsky/)
 * (@fzsky)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/)
 * 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: [http://cagmag.miraiserver.com/photo-archive/portugal-2012/](http://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?
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 10 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/#post-3990956)
 * 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](https://wordpress.org/support/users/fzsky/)
 * (@fzsky)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/#post-3990997)
 * 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](https://wordpress.org/support/users/fzsky/)
 * (@fzsky)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/#post-3991090)
 * 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
   [http://wordpress.org/plugins/enable-media-replace/](http://wordpress.org/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](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 9 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/#post-3991094)
 * 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](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 7 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/#post-3991163)
 * We’ve now fixed the issue in Jetpack. The fix is [here](http://plugins.trac.wordpress.org/changeset/793697),
   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.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/tiled-gallery-error-illegal-string-offset/#post-3991163)
 * Status: resolved