Can't load avatars

After hitting the upload button I get a blank page.
I checked the uploads/avatars/ folder and the file is actually uploaded but the cropping/editing window never appeared and the default avatar hasn’t changed.
I read the following errors in the error log.