Describe the bug
Seen in PHP error log.
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: Undefined array key "tiny_elements_flavor" in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 234
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: foreach() argument must be of type array|object, null given in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 234
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: Undefined array key "tiny_elements_variant" in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 238
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: foreach() argument must be of type array|object, null given in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 238
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: Undefined array key "tiny_elements_comp_flavor" in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 242
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: foreach() argument must be of type array|object, null given in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 242
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: Undefined array key "tiny_elements_comp_variant" in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 246
[09-Jun-2026 09:10:12 Europe/Berlin] PHP Warning: foreach() argument must be of type array|object, null given in /var/moodle/htdocs/moodle/lib/editor/tiny/plugins/elements/classes/importer.php on line 246
Probably happened in our manual test, when I exported a category and imported the resulting export file again.
All look like the same basic thing. The category probably doesn't have the expected things and the errors result of this.
To Reproduce
Steps to reproduce the behavior:
- Go to management
- Export a category
- Import the exported file again
Expected behavior
No error should occur in the log.
Desktop (please complete the following information):
- OS: Windows 11
- Browser Chrome
- Version 148.0.7778.179
Describe the bug
Seen in PHP error log.
Probably happened in our manual test, when I exported a category and imported the resulting export file again.
All look like the same basic thing. The category probably doesn't have the expected things and the errors result of this.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error should occur in the log.
Desktop (please complete the following information):