WordPress.org

Forums

Manual Image Crop
[resolved] Error after deactivating/deleting and reinstalling. (7 posts)

  1. PhxKiwi
    Member
    Posted 1 year ago #

    Hi,

    I had the plugin working but it only allowed me to crop the thumbnail size and a custom size called detail. I wanted to change the medium and large sizes, so I tried uninstalling and deleting, then reinstalling. After reinstalling I cannot use the plugin at all, I get the errors seen by others here.

    When going to the settings page I get:
    Fatal error: Cannot use string offset as an array in /home/asha/public_html/ma/wp-content/plugins/manual-image-crop/lib/ManualImageCropSettingsPage.php on line 151

    When trying to crop an image, no sizes come up and I get the error:
    Fatal error: Cannot use string offset as an array in /home/asha/public_html/ma/wp-content/plugins/manual-image-crop/lib/ManualImageCropEditorWindow.php on line 53

    I have no other media plugins, I use the standard wordpress to resize - no timthumb or anything. My website is still in testing but can be found at http://mythicalarchive.com/ma/

    I hope this helps you isolate the issue.

    https://wordpress.org/plugins/manual-image-crop/

  2. taliwalt
    Member
    Posted 1 year ago #

    Same issue here

  3. jackrugile
    Member
    Posted 1 year ago #

    Same issue for me as well. Version 3.9.2. All seems to work fine until I go to change anything on the options page.

    Screenshot here: http://i.imgur.com/ea1D5da.jpg

  4. KordianUrban
    Member
    Posted 1 year ago #

    easy fix,
    just edit this file and put this code in empty line 146:

    if (!is_array($sizesSettings)) {
     $sizesSettings = json_decode($sizesSettings);
    }
  5. PhxKiwi
    Member
    Posted 1 year ago #

    Thanks for the fix, now I get the same error on a different line.

    When going to the settings page:

    Fatal error: Cannot use string offset as an array in /home/asha/public_html/ma/wp-content/plugins/manual-image-crop/lib/ManualImageCropSettingsPage.php on line 303

    When trying to crop I still get the same error:
    Fatal error: Cannot use string offset as an array in /home/asha/public_html/ma/wp-content/plugins/manual-image-crop/lib/ManualImageCropEditorWindow.php on line 53

    Any more help would be appreciated.

  6. Tomasz Sita
    Member
    Plugin Author

    Posted 1 year ago #

    Hi PhxKiwi,

    hmm that's odd as there should be only 190 lines in the ManualImageCropSettingsPage.php

    Can you give me a shout at tomasz.sita[at]gmail.com, I'll try to help you.

  7. PhxKiwi
    Member
    Posted 1 year ago #

    Thanks for responding, but your new version 1.07 has fixed the issue. I really appreciate your timely updates.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.