-
Notifications
You must be signed in to change notification settings - Fork 9
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
Logging error Declaration of OCA\Grauphel.. must be compatible.. #100
Comments
I made custom research and found out, that the culprit lies in profound differencies in the versions maintained by Nextcloud, especially the 1.0.18 The error above comes from missing ": SearchResult" in the By correcting the missing declaration there is a waterfall off other errors only revealing themselves after this fix. After fixing IUser there is another one I updated the whole app code to this git code here but then there is another errors: Sorry for pasting all the errors and quirks here, but hopefully somebody makes use of it and maybe there is an update which could solve all this in one go. |
Apply some chages to the search provider following suggestions in grosjo#100 and example in https://docs.nextcloud.com/server/27/developer_manual/digging_deeper/search.html.
Following grosjo#100 and https://docs.nextcloud.com/server/27/developer_manual/digging_deeper/search.html try to return valid search results using SearchResult and SearchResultEntry. Correct invalid references in getName() and getOrder(). Remove unused Notes class and tidy whitespace.
Following grosjo#100 and https://docs.nextcloud.com/server/27/developer_manual/digging_deeper/search.html try to return valid search results using SearchResult and SearchResultEntry. Correct invalid references in getName() and getOrder(). Remove unused Notes class and tidy whitespace.
Following grosjo#100 and https://docs.nextcloud.com/server/27/developer_manual/digging_deeper/search.html try to return valid search results using SearchResult and SearchResultEntry. Correct invalid references in getName() and getOrder(). Remove unused Notes class and tidy whitespace.
After upgrading to [Nextcloud Hub 3] (25.0.4) and Grauphel 1.0.18 i receive plenty of errors in NC Logging:
Declaration of OCA\Grauphel\Search\Provider::search(OCA\Grauphel\Search\OCP\IUser $user, OCA\Grauphel\Search\OCP\Search\ISearchQuery $query) must be compatible with OCP\Search\IProvider::search(OCP\IUser $user, OCP\Search\ISearchQuery $query): OCP\Search\SearchResult at /var/www/html/custom_apps/grauphel/lib/Search/Provider.php#44
At the same time clients are experiencing sync problems, they cannot connect.
On previous versions there were no such errors, but as I upgraded Nextcloud and Grauphel at the same time I can't specify which one was the cause now.
Thank you for hints and help!
The text was updated successfully, but these errors were encountered: