WordPress.org

Forums

Manual Image Crop
[resolved] Error in Crop Window (12 posts)

  1. lsamre914
    Member
    Posted 12 months ago #

    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/

  2. Tomasz Sita
    Member
    Plugin Author

    Posted 12 months ago #

    Hi lsamre,
    please try going to "/settings/manual image crop" and submit the settings form.
    Please let me know if that helped.

  3. lsamre914
    Member
    Posted 12 months ago #

    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

  4. Johnz Place
    Member
    Posted 12 months ago #

    I get the same error. Is there a solution for this issue?

    [Please don't bump]

  5. Johnz Place
    Member
    Posted 12 months ago #

    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

  6. Tomasz Sita
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    thanks for your feedback guys.
    Will try to get that fixed asap.

  7. K-lol
    Member
    Posted 11 months ago #

    Hi,

    Thank you for this plugin.

    But, I've the same error than Johnz Place...
    Do you know why?

    Thank you

  8. Rumores
    Member
    Posted 11 months ago #

    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!

  9. mglaze2
    Member
    Posted 10 months ago #

    Rumores!!!! OH Rumores!!!! You saved me. YOU SAVED ME!! Nice work! Thank you.

  10. mglaze2
    Member
    Posted 10 months ago #

    BTW, I had to make the change in two files to get everything to work: ManualImageCropSettingsPage.php and ManualImageCropEditorWindow.php

  11. Tomasz Sita
    Member
    Plugin Author

    Posted 10 months ago #

    It should be fixed in v1.07,
    Could you confirm guys?

  12. Rumores
    Member
    Posted 10 months ago #

    In my case, everything's ok now.
    Thank you very much Tomasz!

Reply

You must log in to post.

About this Plugin

  • Manual Image Crop
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.