moodle-an-hochschulen / moodle-local_staticpage

Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
GNU General Public License v3.0
46 stars 28 forks source link

PHP error #57

Closed jasimp closed 3 years ago

jasimp commented 3 years ago

Hi I am getteing below error how to solvethis?

PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 7 in /home/lms1/public_html/en/local/staticpage/view.php on line 83

christianwolters commented 3 years ago

Hi @jasimp,

the error is not directly caused by this plugin, but by the load/parse function that is processing your HTML document.

My best guess: there is an encoding error in line 7 of your HTML document. You could check for any symbols / special characters and convert them into a html entity: https://developer.mozilla.org/en-US/docs/Glossary/Entity.

Best regards Christian

abias commented 3 years ago

Hi @jasimp ,

@christianwolters has basically said it all. Please have a look at your HTML document. Try to run it through https://validator.w3.org/#validate_by_input to make sure that it is valid HTML.

If you have a valid HTML document and the problem persists, please come back to us.

Cheers, Alex