Photo upload for fair share point does fail
It is not possible anymore to upload a avatar picture to the fair share point
Steps to reproduce
- visit the settings of a fair share point e.g. https://beta.foodsharing.de/?page=fairteiler&bid=108&sub=edit&id=417
- click on upload picture (the green button saying "Bild hochladen"
- choose a file to upload (png or jpg)
What is the current bug behavior?
the apple keeps rotating. not stopping to load. No picture is uploaded
What is the expected correct behavior?
picture should be uploaded and set as avatar/thumb of the fair share point
Relevant error messages and/or screenshots
TypeError: parent.pictureCrop is not a function
The image uploader is in
The function tries to get loaded in the line
return '<html><head></head><body onload="parent.' . $func . '(\'' . $id . '\',\'' . $newname . '\');"></body></html>';