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

Issue with EasyRDF Parser when rdfa file confguration as default value #5

Closed
L0rD59 opened this issue Jul 7, 2015 · 3 comments
Closed

Comments

@L0rD59
Copy link

L0rD59 commented Jul 7, 2015

Hi,

At the beginning, thx for project and contribution.

I have an issue with EasyRDF Parser,

when i omit use the RDFA file configuration to use default value (http://schema.org/docs/schema_org_rdfa.html) i got this error :

PHP Warning:  DOMDocument::loadHTML() expects parameter 1 to be a valid path, string given in /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php on line 701
PHP Stack trace:
PHP   1. {main}() /app/vendor/dunglas/php-schema/bin/schema:0
PHP   2. Symfony\Component\Console\Application->run() /app/vendor/dunglas/php-schema/bin/schema:27
PHP   3. Symfony\Component\Console\Application->doRun() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:126
PHP   4. Symfony\Component\Console\Application->doRunCommand() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:195
PHP   5. Symfony\Component\Console\Command\Command->run() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:878
PHP   6. SchemaOrgModel\Command\GenerateTypesCommand->execute() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:259
PHP   7. EasyRdf_Graph->load() /app/vendor/dunglas/php-schema/src/SchemaOrgModel/Command/GenerateTypesCommand.php:70
PHP   8. EasyRdf_Graph->parse() /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php:341
PHP   9. EasyRdf_Parser_Rdfa->parse() /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php:234
PHP  10. DOMDocument->loadHTML() /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php:701

Warning: DOMDocument::loadHTML() expects parameter 1 to be a valid path, string given in /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php on line 701

Call Stack:
    0.0001     235200   1. {main}() /app/vendor/dunglas/php-schema/bin/schema:0
    0.0064    1656896   2. Symfony\Component\Console\Application->run() /app/vendor/dunglas/php-schema/bin/schema:27
    0.0079    1992320   3. Symfony\Component\Console\Application->doRun() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:126
    0.0080    1993240   4. Symfony\Component\Console\Application->doRunCommand() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:195
    0.0080    1993744   5. Symfony\Component\Console\Command\Command->run() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:878
    0.0081    1998200   6. SchemaOrgModel\Command\GenerateTypesCommand->execute() /app/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:259
    0.0149    3365640   7. EasyRdf_Graph->load() /app/vendor/dunglas/php-schema/src/SchemaOrgModel/Command/GenerateTypesCommand.php:70
    0.2599    3785400   8. EasyRdf_Graph->parse() /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php:341
    0.2607    3947600   9. EasyRdf_Parser_Rdfa->parse() /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php:234
    0.2611    4000592  10. DOMDocument->loadHTML() /app/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php:701

I've look thought EasyRDF, they use your own http client, there are a issue to use guzzle and follow PSR-7 but always in progress cf : easyrdf/easyrdf#133

Do you have any recommendation, or can you do up the EasyRDF issue ?

Thx a lot for your time.

@dunglas
Copy link
Member

dunglas commented Jul 7, 2015

It seems related to a PHP bug: https://bugs.php.net/bug.php?id=69679

@L0rD59
Copy link
Author

L0rD59 commented Jul 7, 2015

Hi, thx for investigation

we will see

@L0rD59
Copy link
Author

L0rD59 commented Jul 17, 2015

Hi,

It's good for me in 5.6.11

@L0rD59 L0rD59 closed this as completed Jul 17, 2015
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