Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: DOMDocument::loadHTML(): Unexpected end tag : a in Entity, line: 25 #4

Open
ghost opened this issue Sep 5, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 5, 2017

Hello Developers,

so I gradually go through all Pico CMS plugins and install some. Now I am at the TOC and has installed it. On the page at http://picocms.wpzweinull.ch/sub/datenschutz these warnings are displayed.

Warning: DOMDocument::loadHTML(): Unexpected end tag : a in Entity, line: 25 in /xxxxx/picocms.wpzweinull.ch/plugins/mcb_TableOfContent.php on line 79

Warning: DOMDocument::loadHTML(): Unexpected end tag : a in Entity, line: 27 in /xxxxx/picocms.wpzweinull.ch/plugins/mcb_TableOfContent.php on line 79

Warning: DOMDocument::loadHTML(): Unexpected end tag : a in Entity, line: 36 in /xxxx/picocms.wpzweinull.ch/plugins/mcb_TableOfContent.php on line 79

Warning: DOMDocument::loadHTML(): Unexpected end tag : a in Entity, line: 37 in /xxxxx/picocms.wpzweinull.ch/plugins/mcb_TableOfContent.php on line 79

Warning: DOMDocument::loadHTML(): Unexpected end tag : a in Entity, line: 40 in /xxxx/picocms.wpzweinull.ch/plugins/mcb_TableOfContent.php on line 79

How can I fix it?

Thanks in advance.

I use the last Pico CMS version.

@mcbSolutions
Copy link
Owner

You have to check your template. You have closing

tag, but no open one in your template.

Try also https://validator.w3.org when this plugin is disabled to find the invalid html code.

best regards from Austria

@mcbSolutions
Copy link
Owner

Check this out; I think this will solve your problem.

w3c

@KoljaL
Copy link

KoljaL commented Apr 15, 2020

for dirty code in content, you "can`t" clean, put this:

libxml_use_internal_errors(true);

in line:79 of the mcb_TableOfContent.php, before the $dom->loadHTML line:
https://github.com/mcbSolutions/Pico-Plugins/blob/master/mcb_TableOfContent/mcb_TableOfContent.php#L79

found here: https://stackoverflow.com/a/11819635/8110291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants