Closed lillybud closed 2 years ago
Hi @lillybud ,
two things are important here in my point of view:
To me, this problem should be fixed at its origin (in the HTML document). If would be wrong to suppress these warnings within the plugin, regardless if this suppression is configurable in the plugin or not.
I hope you can agree with me.
Cheers, Alex
Hi,
We have upgraded moodle to 3.11 and use latest available Static Pages version which is 2021010901 or 3.10. PHP is 7.2. Linux Ubuntu 20 machine
After uploading html file, the file is rendered as it should be, but we get 4 lines of warning on top of static page:
_Warning: DOMDocument::loadHTML(): ID kolumn30 already defined in Entity, line: 90 in /<...>moodle_path/local/staticpage/view.php on line 83
Warning: DOMDocument::loadHTML(): ID kolumn10 already defined in Entity, line: 92 in /<...>moodle_path/local/staticpage/view.php on line 83
Warning: DOMDocument::loadHTML(): ID kolumn10 already defined in Entity, line: 93 in /<...>moodle_path/local/staticpage/view.php on line 83
Warning: DOMDocument::loadHTML(): ID kolumn10 already defined in Entity, line: 94 in/<...>moodlepath/local/staticpage/view.php on line 83
Would be good to have an option to hide warnings before owner has opportunity to fix HTML code in static page.