When I try to crop an image in the WordPress backend area of my custom theme, I get the message "There has been an error cropping your image". I have it set up on a local machine using XAMPP. When I set up the exact same theme on a server, it works perfectly fine.
I checked quite some questions that seemed to be similar to my problem, but nothing worked so far.
I disabled all plugins. I checked the php.ini for
extension=php_gd2.dll, which is not uncommented. I don't know what else could be the problem.
Interestingly when I change the theme to "Twenty Eleven" cropping images works.