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

Parser error with particular HTML files #4

Closed
jkphl opened this issue Mar 24, 2017 · 0 comments
Closed

Parser error with particular HTML files #4

jkphl opened this issue Mar 24, 2017 · 0 comments
Assignees
Labels

Comments

@jkphl
Copy link
Owner

jkphl commented Mar 24, 2017

When parsing e.g. the HTML file https://wildkameravergleich.de/wildkameras/wild-vision-full-hd-50.html (doesn't contain any RDFa) the following parser error is thrown:

PHP Fatal error:  Uncaught Jkphl\RdfaLiteMicrodata\Infrastructure\Exceptions\InvalidArgumentException: htmlParseEntityRef: no name
in /home/onpage/test2/vendor/jkphl/rdfa-lite-microdata/src/RdfaLiteMicrodata/Infrastructure/Factories/HtmlDocumentFactory.php:221
Stack trace:
#0 /home/onpage/test2/vendor/jkphl/rdfa-lite-microdata/src/RdfaLiteMicrodata/Infrastructure/Factories/HtmlDocumentFactory.php(207): Jkphl\RdfaLiteMicrodata\Infrastructure\Factories\HtmlDocumentFactory->processParsingErrors(Array)
#1 /home/onpage/test2/vendor/jkphl/rdfa-lite-microdata/src/RdfaLiteMicrodata/Application/Parser/Parser.php(97): Jkphl\RdfaLiteMicrodata\Infrastructure\Factories\HtmlDocumentFactory->createDocumentFromSource('<!DOCTYPE html>...')
#2 /home/onpage/test2/vendor/jkphl/rdfa-lite-microdata/src/RdfaLiteMicrodata/Ports/Parser/AbstractParser.php(93): Jkphl\RdfaLiteMicrodata\Application\Parser\Parser->parse('<!DOCTYPE html>...')
#3 /home/onpage/test2/vendor/jkphl/rdfa-lite-microdata/src/RdfaLiteMicrodata/Ports/Parser/RdfaLite.php(104): Jkphl\ in /home/onpage/test2/vendor/jkphl/rdfa-lite-microdata/src/RdfaLiteMicrodata/Infrastructure/Factories/HtmlDocumentFactory.php on line 221
@jkphl jkphl self-assigned this Mar 24, 2017
@jkphl jkphl added the bug label Mar 24, 2017
@jkphl jkphl closed this as completed in cc8002f Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant