• Resolved nicooprat

    (@nicooprat)


    I just updated ACF Pro to version 5.6.0. I’m now getting this kind of errors:

    
    Warning: json_decode() expects parameter 1 to be string, array given in /wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php on line 946
    
    Notice: Undefined index: save_format in /wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php on line 959
    
    Notice: Undefined index: save_format in /wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php on line 973
    https://montblanc.pamplemousse.site/wp-content/uploads/2017/06/client-zodiac.jpg
    

    Is there any known incompatibility? Some thing I should change in my code? Thanks.

Viewing 15 replies - 1 through 15 (of 18 total)
  • I have same problem…
    Are you planning update this plugin to ACF Pro 5.6?

    Thanks,
    Jakub

    I have same problem.

    This plugin is also breaking for me. When on a post page within wp-admin, I see:

    
    Warning: json_decode() expects parameter 1 to be string, array given in ~/wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php on line 946
    
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at ~/wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php:946) in ~/wp-content/plugins/wc-vendors/class-wc-vendors.php on line 137
    
    Warning: Cannot modify header information - headers already sent by (output started at ~/wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php:946) in ~/wp-includes/pluggable.php on line 1210
    

    In the following file, I’ve changed line 946:

    ~/wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php

    
           // $data = json_decode($value);
           $data = (object) $value;
    

    However, now i’m getting the thumbnails to show up twice in wp-admin. I’ll keep trying to go through error logs and debug and will post what I can here as I find it out.

    • This reply was modified 7 years, 4 months ago by dornstudio.
    • This reply was modified 7 years, 4 months ago by dornstudio.
    • This reply was modified 7 years, 4 months ago by dornstudio.

    Same here. None of the images added using acf-image-crop are loading. I use it on page header images so none of the page header images are loading. Downgrading to ACF pro 5.5.14 fixed it as a temp solution.

    • This reply was modified 7 years, 4 months ago by ezweb.

    Using acf_form there are JS errors. Please see log screenshot.

    In case anyone is interested, I’ve also posted on the ACF forum.

    • This reply was modified 7 years, 4 months ago by dornstudio.
    • This reply was modified 7 years, 4 months ago by dornstudio.

    Having the same issue as all above

    I having the same problem as everyone else.

    Hi there.
    https://github.com/andersthorborg/ACF-Image-Crop/issues/45#issuecomment-317787120

    I think that moving the discussion on the ACF Crop plugin issues would be more adequate.

    Hi there, same issue on this end. Love the plugin and really hoping there’s a fix soon too!

    Robert Bakker

    (@robertbakkercommunicatienl)

    Same problem here.
    All images were gone after updating ACF newest version…..

    Hope you can fix this.

    Thanks!

    Hey guys,

    This worked for me:

    joachimguido commented 3 hours ago
    @gummiforweb I tried the method you explained in the blogpost on the ACF forum and it works!
    I made the following changes in the acf-image-crop-v5.php file:
    Changed:
    function __construct()
    to:
    public function initialize()

    and at the bottom of the function I deleted:
    (NOTE: I would just comment it out, rather than delete. Force of habit!)

    // do not delete!
    acf_field::__construct();
    //parent::__construct();


    WARNING: after making these changes, the plugin will no longer work on previous versions of ACF, so it’s just for those who need it now for ACF 5.6 and up

    Found here:
    https://github.com/andersthorborg/ACF-Image-Crop/issues/45#issuecomment-317787120

    • This reply was modified 7 years, 4 months ago by stevenatsalt. Reason: I didn't style it and then I felt bad

    Just in case it’s a bit confusing, I commented out:
    acf_field::__construct();
    so my updated file looks like:

    // do not delete!
    // acf_field::__construct();
    // parent::__construct();
    • This reply was modified 7 years, 4 months ago by stevenatsalt. Reason: I didn't style it and then I felt bad
    • This reply was modified 7 years, 4 months ago by stevenatsalt.

    Thanks for the temporary fix guys! Hope the author fixes this soon.

    Temporary Fix:
    Go to: /wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php

    Change line 19: function __construct()
    to: public function initialize()

    Change line 86: acf_field::__construct();
    To: //acf_field::__construct();

    Hi guys

    Elliot here – ACF dev.

    Just wanted to chime in here and let you know I am aware of the issue and apologize for the bug.
    I’ve commented on the ‘image crop’ github issue with a solution:
    https://github.com/andersthorborg/ACF-Image-Crop/issues/45

    Can you please test that out and let me know if it works for you????????

    Hi Elliot,

    Just tested on the plugin, I put from line 19:

        function initialize() {
    
            /* do nothing */
    
        }

    and it works perfectly!

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Incompatibility with ACF Pro 5.6.0’ is closed to new replies.