Doesn't work with ACF V 5.0.8
-
After updating ACF to version 5.0.8 the plugin doesn’t work anymore. Clicking the “Add image” button did not load the media uploader.
Thanks
Thomas
-
Hi tmconnect,
Thanks for posting. V 5.0.8 had some changes to the image field, that broke compatibility. I adapted to them in version 1.3. Note that it is not compatible with earlier ACF Pro versions.
Best,
Anders
Hi tmconnect,
Thanks for posting. V 5.0.8 had some changes to the image field, that broke compatibility. I adapted to them in version 1.3. Note that it is not compatible with earlier ACF Pro versions.
Best,
Anders
Hi,
I’m having the same issue – I am able to select an image from the media gallery but it doesn’t show up in the custom field … I’m seeing the same issue with Manual Image Crop plugin although I can’t even select an image – it just shows loading bar, so I don’t know if it might have something to do with WP 4.0 compatibility?
PS Great plugin by the way 🙂
Hi pronkman,
Thanks for posting. Is this still an issue?
If you’re able to open the media dialog, I suspect it’s not related to this plugin. The issue before was that no buttons responded including the “Add image” button.
Best,
Anders
I am not able to crop an image since shortly..
If I am in the dialog where I can select the crop radius, and when I press the crop button I get this error in my console:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
…../wp-admin/admin-ajax.phpThe file still exists en I didn’t edit it.
Hi Andres,
thanks for your quick response. Now the plugin works as expected with the new ACF 5.0.8.
I have some improvements for translations purposes and a bug fix for the error messages if the media settings options set/saved/unset/saved (because the acf_image_crop_settings in the wp_options table are empty in this case)
Should I send you the changed files by mail or where can I put the changes to.
Thanks
ThomasWhen I’m debugging the ajax call for the problem I posted above, I’m getting this error:
Fatal error: Call to undefined method WP_Error::resize() in *****/wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php on line 598
This error only happens when there is a dot in the filename, Like: 2014-02-24-21.02.16.jpg
Hi Breaky623,
Thanks for your feedback. That makes sense. I have a fix that should solve the issue with filenames with multiple “.”s. I don’t have time to deploy a new version right now, but I believe you can fix the issue by replacing this line in acf-image-crop-v5.php (528):
// Generate new base filename $targetFileName = $originalFileName[0] . '_' . $targetW . 'x' . $targetH . '_acf_cropped' . '.' . $originalFileName[1];
with:
// Retrieve and remove file extension from array $originalFileExtension = array_pop($originalFileName); // Generate new base filename $targetFileName = implode('.', $originalFileName) . '_' . $targetW . 'x' . $targetH . '_acf_cropped' . '.' . $originalFileExtension;
Thanks for catching this.
Thank you. I am having an issue syncing the github repo with the actual plugin repo, so until I get that working again, feel free to send me an email with your changes, and I’ll look into it.
Thanks again.
Hi Anders,
because I got no email address I put the files with my tweaks to my dropbox:
https://dl.dropboxusercontent.com/u/3442276/Image_Crop_tweaks.zipI also put in the changes for the fix for filenames with “.”s
Please let me know if you grabbed the files.
Cheers
ThomasHi Thomas,
Thank you very much for your work. I have incorporated your changes. As soon as I get the time I willl prepare a new release.
Anders
- The topic ‘Doesn't work with ACF V 5.0.8’ is closed to new replies.