Hi, this seems to be related to https://ww.wp.xz.cn/support/topic/getting-negative-values-are-passed-on-ajax-call/
As this is the error message you get, when the dimensions (x,y) has a negative Value.
- What browser do you using?
- what are the image upload dimensions?
- what are the image_size dimensions?
- Where did you place crop? Maybe provide an screenshot.
Hi,
I can give you an example:
The original image is 1989 x 1645 pixel.
The image I want to crop is 600 x 350 pixel.
I have used this plugin with these same ratios very successfully before. Please have a look at the screenshots to see what happens.
https://tinyurl.com/2pk6tm8k
https://tinyurl.com/2pwqxr9b
It is at the moment not placed anywhere as I can not crop the image.
Thanks for your help,
Katrien
Hi Katrien,
sorry but i can not reproduce the problem. Can you please test the following thing? Deactivate all other plugins and switch to an default theme. Is the error still present?
Hi,
I tried that and it makes no difference. I have in the meantime found the same issue on 2 more of my sites. On both those other sites, the plugin was working fine before.
Could it be a but in the latest version?
Katrien
In the last week another user reported of an bug where another image plugin incorrectly set the image metadata on upload. So he has to deactivate the other plugins and do a fresh upload of an image. Did you also use “https://ww.wp.xz.cn/plugins/image-regenerate-select-crop/”.
Can you please post the list of plugins you use?
Hi,
I tried the plugin out with a completely empty site. No other plugins, standard WordPress theme.
I tried several different versions of WordPress. The plugin is working fine from version 5.0 onwards until version 6.0.
As soon as I updated to WordPress 6.0 it started giving the same issue.
This test site has literally nothing else in it, just wordpress and your plugin.
I can only assume it is not fully compatible with WordPress 6.0 and up.
Would you please have another look.
I always loved this plugin. I have 15 sites that have your plugin in it. Now it does not work in any of them.
Katrien
@katrienmoore thank you for investigating. That is so strange – i only can assume that this has something to to with the frontend or the crop library. I will have an look into.