Title: Error in Crop Window
Last modified: August 21, 2016

---

# Error in Crop Window

 *  Resolved [lsamre914](https://wordpress.org/support/users/lsamre914/)
 * (@lsamre914)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-in-crop-window/)
 * When I click “Crop” next to an image in my media library, I receive this error:
 * Pick the image size:
    Fatal error: Cannot use string offset as an array in /home/*****/
   public_html/wp/wp-content/plugins/manual-image-crop/lib/ManualImageCropEditorWindow.
   php on line 53
 * [https://wordpress.org/plugins/manual-image-crop/](https://wordpress.org/plugins/manual-image-crop/)

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

 *  Plugin Author [Tomasz Sita](https://wordpress.org/support/users/tomaszsita/)
 * (@tomaszsita)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087375)
 * Hi lsamre,
    please try going to “/settings/manual image crop” and submit the 
   settings form. Please let me know if that helped.
 *  Thread Starter [lsamre914](https://wordpress.org/support/users/lsamre914/)
 * (@lsamre914)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087406)
 * This is the error I get – Fatal error: Cannot use string offset as an array in/
   home/*****/public_html/wp/wp-content/plugins/manual-image-crop/lib/ManualImageCropSettingsPage.
   php on line 151
 *  [Johnz Place](https://wordpress.org/support/users/johnz-place/)
 * (@johnz-place)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087488)
 * I get the same error. Is there a solution for this issue?
 * _[Please don’t bump]_
 *  [Johnz Place](https://wordpress.org/support/users/johnz-place/)
 * (@johnz-place)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087490)
 * Here are the errors I get:
 * Error under Settings>Manual Image Crop:
 * Fatal error: Cannot use string offset as an array in /home4/…/public_html/speciesuniverse.
   com/wp-content/plugins/manual-image-crop/lib/ManualImageCropSettingsPage.php 
   on line 151
 * Error when editing Featured Image under Featured Image Crop:
 * Fatal error: Cannot use string offset as an array in /home4/alter4u/public_html/
   speciesuniverse.com/wp-content/plugins/manual-image-crop/lib/ManualImageCropEditorWindow.
   php on line 53
 * It really would be nice to get this plugin to work. Thanks.
 * John
 *  Plugin Author [Tomasz Sita](https://wordpress.org/support/users/tomaszsita/)
 * (@tomaszsita)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087519)
 * Hi,
 * thanks for your feedback guys.
    Will try to get that fixed asap.
 *  [K-lol](https://wordpress.org/support/users/k-lol/)
 * (@k-lol)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087590)
 * Hi,
 * Thank you for this plugin.
 * But, I’ve the same error than Johnz Place…
    Do you know why?
 * Thank you
 *  [Rumores](https://wordpress.org/support/users/rumores/)
 * (@rumores)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087595)
 * Hi,
 * I having the same issue on the settings page when I use custom labels for thumbnail
   sizes. Otherwise, submiting changes with default values for labels works as excepted.
 * I found that the 151th line error was caused due to a serialized value (_$sizesSettings_)
   used as an array but whithout being correctly unserialized (in my case a double
   nested serial value was given).
 * I fix this adding temporaly a second _“unserialize()”_ call after line 133 of_“
   manual-image-crop/lib/ManualImageCropSettingsPage.php”_ to be able to restore
   and save my settings:
 *     ```
       $sizesSettings = unserialize($this->options['sizes_settings']);
       if(!is_array($sizesSettings)){
          $sizesSettings = unserialize($sizesSettings);
          }
       ```
   
 * By the way, thanks a lot Tomasz for this great addon!
 *  [mglaze2](https://wordpress.org/support/users/mglaze2/)
 * (@mglaze2)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087601)
 * Rumores!!!! OH Rumores!!!! You saved me. YOU SAVED ME!! Nice work! Thank you.
 *  [mglaze2](https://wordpress.org/support/users/mglaze2/)
 * (@mglaze2)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087602)
 * BTW, I had to make the change in two files to get everything to work: ManualImageCropSettingsPage.
   php and ManualImageCropEditorWindow.php
 *  Plugin Author [Tomasz Sita](https://wordpress.org/support/users/tomaszsita/)
 * (@tomaszsita)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087604)
 * It should be fixed in v1.07,
    Could you confirm guys?
 *  [Rumores](https://wordpress.org/support/users/rumores/)
 * (@rumores)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087605)
 * In my case, everything’s ok now.
    Thank you very much Tomasz!

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

The topic ‘Error in Crop Window’ is closed to new replies.

 * ![](https://ps.w.org/manual-image-crop/assets/icon-256x256.png?rev=3348923)
 * [Manual Image Crop](https://wordpress.org/plugins/manual-image-crop/)
 * [Support Threads](https://wordpress.org/support/plugin/manual-image-crop/)
 * [Active Topics](https://wordpress.org/support/plugin/manual-image-crop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/manual-image-crop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/manual-image-crop/reviews/)

 * 11 replies
 * 6 participants
 * Last reply from: [Rumores](https://wordpress.org/support/users/rumores/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/error-in-crop-window/#post-5087605)
 * Status: resolved