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

jkphl opened this issue Mar 24, 2017 · 0 comments

Parser error with particular HTML files #4

jkphl opened this issue Mar 24, 2017 · 0 comments


Copy link

@jkphl jkphl commented Mar 24, 2017

When parsing e.g. the HTML file (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 in cc8002f Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.