-
Notifications
You must be signed in to change notification settings - Fork 29
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: Declaration of Elastic\Elasticsearch\Response\Elasticsearch::withStatus #341
Comments
Seems to be this issue: elastic/elasticsearch-php#1342 |
Same here, but I have no idea how to fix it with this: elastic/elasticsearch-php#1342 Testing search platform. PHP Fatal error: Declaration of Elastic\Elasticsearch\Response\Elasticsearch::withStatus(int $code, string $reasonPhrase = ''): Psr\Http\Message\ResponseInterface must be compatible with Psr\Http\Message\ResponseInterface::withStatus($code, $reasonPhrase = '') in /var/www/nextcloud/apps/fulltextsearch_elasticsearch/vendor/elasticsearch/elasticsearch/src/Traits/MessageResponseTrait.php on line 87 I get this error: ┌─ Errors ──── |
I get the same error message when I run sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:test. I wonder if this indexing app is working for anybody, or is it just a few people running into problems? |
My instance is actually not throwing errors. I'm however not sure if it is doing the job as expected. Don't know how to test otherwise:
Instance:
cheers |
I get the same error with nextcloud 28. All plugins have also been updated to version >28. |
I'm on 28 as well. |
If I make "sudo -u www-data php occ fulltextsearch:test" then I get the following errors: .Testing your current setup: Nextcloud version: 28.0.1 all updates installed PHP-Version: 8.1.27 Elasticsearch: 8.11.3 I run the following Ubuntu: |
Hello, |
I installed NC28 and ES 8.12 and hit the same error. I'm not a coder but I followed up the error message and it seems working by making some changes to /var/www/nextcloud/apps/fulltextsearch_elasticsearch/vendor/elasticsearch/elasticsearch/src/Traits/MessageResponseTrait.php I have no idea how to show changes in the reply, please see the attached file. After applying the changes, the fulltextsearch seems working. It ignores one of my external local storage folders however, this may be another issue. Wish you guys good luck. |
Hi, |
Incomprehensible. Yes. It was enough to turn off the Carnet. But what is the problem? Carnet or Elasticsearch? |
I guess the problem was caused by Carnet. I removed Carnet and reinstalled
elasticsearch without any modification, everything works well.
From my previous modification, this might because Carnet incorporated and
old version of psr components, which loaded first.
TomS ***@***.***> 於 2024年2月29日 週四 17:28 寫道:
… Hi, found it: With the app Carnet also comes
./apps/carnet/vendor/psr/http-message/src/ResponseInterface.php with the
wrong declaration. Delete Carnet and the error is gone. Kind regards,
Michael
Incomprehensible. Yes. It was enough to turn off the Carnet. But what is
the problem? Carnet or Elasticsearch?
—
Reply to this email directly, view it on GitHub
<#341 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGGFZ4Z5QDZJFRMUCCS5RKLYV32FLAVCNFSM6AAAAABAQ3KVD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZQG42DANJSGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Exactly! I renamed /nextcloud/apps/carnet/vendor/psr/http-message to /nextcloud/apps/carnet/vendor/psr/http-messageOLD and made a symlink to /nextcloud/apps/fulltextsearch_elasticsearch/vendor/psr/http-message. And it seems to be working. Many thanks gentlemen!!! |
ubuntu 22.04.
php 8.1
elasticsearch 8.6.1
The text was updated successfully, but these errors were encountered: