Issue Bug Closed

#84499Uncaught TypeError: Cannot read property 'cropArea' of undefined

Giuseppe Cavallaro 03/20/18, 13:46 updated 10/11/22, 03:09

Description

In a specific project, I stumbled across a bug in the image cropper.
When I open the cropping tool, the lightbox opens and nothing happen.
In the JS-Console I get the error “Uncaught TypeError: Cannot read property ‘cropArea’ of undefined at ImageManipulation.init (ImageManipulation.js)”.

We tried to debug it and found the reason for this bug.

The server we have for the TYPO3 Page, is really fast. We found out that the AJAX Response for the image cropper is faster than the JS execution itself.

I will submit a patch for this. It just changes the order of the JS, so it will work on very fast servers as well.

Reviews 3