-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
-
2
-
Team Hedgehog 2024 Sprint 3.2
Error message
[Tue Sep 17 05:41:54.189879 2024] [php:notice] [pid 64019] [client ::1:36998] Debugging: Redaction failed: failed to process file with PHP gd! in \n* line 47 of /lib/classes/fileredact/hook_listener.php: call to debugging()\n* line ? of unknownfile: call to core\\fileredact\\hook_listener::redact_after_file_created()\n* line 318 of /lib/classes/hook/manager.php: call to call_user_func()\n* line 1087 of /lib/filestorage/file_storage.php: call to core\\hook\\manager->dispatch()\n* line 1377 of /lib/filestorage/file_storage.php: call to file_storage->create_file()\n* line 1384 of /repository/lib.php: call to file_storage->create_file_from_pathname()\n* line 317 of /repository/repository_ajax.php: call to repository::move_to_filepool()\n, referer: http://localhost/integration_master/mod/forum/view.php?id=2681
How to replicate
- This test requires the Microsoft OneDrive repository to be enabled, including entering a client ID and secret to configure the OAuth 2 Microsoft service, as described in the documentation OneDrive repository and OAuth 2 Microsoft service.
- Make sure that your OneDrive account has an image with JPG/JPEG format
- Log in to a course as a teacher and create a standard forum.
- Add a new discussion topic.
- Click the image icon in the text editor;
- Click the Browse repositories button
- Select MS OneDrive and log in.
- Select the image and add it.
Expected
The image is successfully uploaded without any errors.
Actual
The image failed to upload.