Steps to reproduce:
- Create a lesson activity
- Add question by clicking on "Add a question page"
- Select "Multichoice" question
- Click on image icon in "Answer 1" or "Answer 2" editor
- You will see following error in apache log.
Can also be reproduced by running behat with --name "In a lesson activity, teacher can add embedded images in questions answers and responses" and looking at error log