-
Notifications
You must be signed in to change notification settings - Fork 8
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 8.1 compatibility / createElement Deprecated Warning #13
Comments
Thank you for pointing this out! I haven't been working with the Simple OAI-PMH Data Provider for a while now, since there is a successor which supersedes this one in most cases. But nevertheless I tried to fix all deprecation warnings in #15. Would you like to test this before I merge the changes and release a new version? |
Thx!
I already noted the other version of this provider, but wasn't sure if it is activly developed (since there is no readme).
Yes. I guess I can test it tomorrow and give you feedback. |
Hm, there is a problem with There are no results when using The given example.xml is set in the files array in line 39 of index.php. It seems to be a problem with how |
Thanks for checking! I think I found the problem and updated the pull request. That should (hopefully) fix it. |
Tested it this morning, works like a charm! And all "deprecated" warnings are gone. |
I merged the changes and made a new release: v1.8 |
Hi,
the current code base throws a PHP warrning if ?verb=ListMetadataFormats is called:
Deprecated: DOMDocument::createElement(): Passing null to parameter #2 ($value) of type string is deprecated in ./Classes/Response.php on line 64.
The is caused by the function public function addChild() which tries to create an element with an empty string as value. In my understanding this triggers a warning since PHP 8.1.
To create an empty element you can simply omit the value. Quick workaround (Response.php from line 63):
There might be a nicer fix to this, though.
The text was updated successfully, but these errors were encountered: