Title: Photon Error: Warning: Illegal string offset
Last modified: August 21, 2016

---

# Photon Error: Warning: Illegal string offset

 *  Resolved [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/)
 * I run Jetpack on my site and I’m getting Proton errors on some posts, but not
   all.
 * The errors says:
 *     ```
       Warning: Illegal string offset 'width' in
       Warning: Illegal string offset 'height' in
       ```
   
 * Here is an example:
    [http://lolzombie.com/5942/safe-design-use-concept/](http://lolzombie.com/5942/safe-design-use-concept/)
 * Now I’ve seen this on a few posts, but not the majority of them.
 * Any ideas how to make the error go away?
 * Thanks
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

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

 *  Thread Starter [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966398)
 * I have figured out hat if I save that image to my desktop, open it in Preview,
   export it, and re-upload it, then it’ll work fine.
 * But for some reason it’s not happy with the file I currently have.
 *  [Dwalline](https://wordpress.org/support/users/dwalline/)
 * (@dwalline)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966622)
 * I never had a problem with this module until the last update, now I am getting
   the exact same message. If I turn off photon the images in my sidebar re-size
   and are too large.
 * You can see an example of the error message on these posts (all created AFTER
   the update)
 * [http://mehimandthecats.com/caring-for-an-aging-pet/](http://mehimandthecats.com/caring-for-an-aging-pet/)
   
   [http://mehimandthecats.com/50-paypal-giveaway/](http://mehimandthecats.com/50-paypal-giveaway/)
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966669)
 * Such problems can happen if there were issues during the upload of the images
   to your site. Sometimes if the images are too large your blog cannot properly
   finish the upload/resize process, thus creating issues like this one.
 * Could you try to upload smaller images, and let me know if it helps?
 * Thanks!
 *  Thread Starter [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966670)
 * If I save the existing image to my desktop, open it in Preview, export it, and
   re-upload it, then it’ll work fine.
 * I don’t have to change the file size or dimensions.
 * On my example post, the image is only 36k and 500×317.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966671)
 * Could you let me know how the image was created in the first place? Did you import
   it from a camera?
    The problem might be caused by some issues with the original
   images; when you save it to a new file, the missing meta data might be created
   for you, thus solving the issue.
 *  Thread Starter [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966673)
 * The image was obtained via the internet. 🙂 Found it somewhere and saved it to
   my computer, then uploaded it to WordPress.
 *  Thread Starter [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966674)
 * Is there a way to suppress these types of errors when debug is off? Since the
   image is showing, I’d like to hide the errors.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966692)
 * > Is there a way to suppress these types of errors when debug is off?
 * I would expect the warnings to disappear once you set the `WP_DEBUG` constant
   to `false` in your site’s wp-config.php file.
 * Could you send me the original image you downloaded at [support@jetpack.me](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/support@jetpack.me?output_format=md)?
   I’d like to run some tests on my end. Please mention this forum thread in your
   email, so I can follow up!
 * Thanks!
 *  Thread Starter [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966693)
 * Email has been sent. Thanks for looking into this. Appreciate it.
 *  Thread Starter [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966732)
 * I’m going to consider this fixed.
 * We didn’t find the actual issue, but it’s also very hard to reproduce.
 * I have figured out that if I save that image to my desktop, open it in Preview,
   export it, and re-upload it, then it’ll work fine.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 7 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966770)
 * 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.

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

The topic ‘Photon Error: Warning: 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/)

 * 11 replies
 * 3 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/photon-error-warning-illegal-string-offset/#post-3966770)
 * Status: resolved