-
Notifications
You must be signed in to change notification settings - Fork 95
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
PHP fatal error if the requested vocabulary id is not found #1170
Comments
I have something like this, these errors are thrown almost every minute. Sometimes with the last referer statement, mostly not. Everything seems fine, except that the loading of the last section of equivalent concepts seems to stall. Watch it: https://classificaties.cbs.nl/geo/def/gemeenten/GM0359
|
@hekl It seems that your PHP installation doesn't know about the ValueError class that is used in some parts of Skosmos code since PR #1127 which, among other things, upgraded PHPUnit to version 8. I started investigating why this could happen, and it turns out ValueError was only introduced in PHP 8. But it is also defined by symfony/polyfill-php80 which Skosmos depends on indirectly through twig-gettext-extractor -- but only if development dependencies are installed! So that explains why you are getting this error (you've used I will open a separate bug report about this "missing ValueError" problem. |
This was mostly fixed in PR #1215 (and the separate but similar problem with the ValueError class, encountered by @hekl, was fixed in PR #1200). However, looking at Finto server logs, there are still problems in the REST API; uncaught ValueErrors appear for REST API calls with an unknown vocabulary ID. |
Whilst looking at apache2 error log, I noticed that Skosmos throws uncaught PHP fatal errors if the requested vocabulary id is not found. See the following call stack:
These should be caught and handled appropriately.
The text was updated successfully, but these errors were encountered: