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

Cannot Log-in or add client (error 500) #98

Open
saintfrater opened this issue Jun 23, 2022 · 3 comments
Open

Cannot Log-in or add client (error 500) #98

saintfrater opened this issue Jun 23, 2022 · 3 comments

Comments

@saintfrater
Copy link

saintfrater commented Jun 23, 2022

Hello,

since NC update I cannot register TomBoy (or other) client.

apache-error.log:

[Thu Jun 23 17:11:19.027925 2022] [php7:error] [pid 242422] [client xxxx:xxxx:xxxx:xxxx::xxxx:xxxxx] PHP Fatal error: 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 in /home/httpd/nox-rhea.org/clouds/apps/grauphel/lib/Search/Provider.php on line 44
(probably not releated)

Getting also error 500 in apache log:

xxxx:xxxx:xxxx:xxxx::xxxx:xxxxx - - [23/Jun/2022:21:15:36 +0200] "POST /apps/grauphel/oauth/request_token HTTP/1.1" 500 5511 "-" "-"

I got this error (500) also in the Tomboy client's log.

NextCloud's Log:

{"reqId":"VHZFqeHuF3f7OZO3Ido1","level":3,"time":"2022-06-23T21:15:36+02:00","remoteAddr":"xxxx:xxxx:xxxx:xxxx::xxxx:xxxxx","user":"--","app":"index","method":"POST","url":"/apps/grauphel/oauth/request_token","message":"Class 'OCA\\Grauphel\\Response\\FormResponse' not found in file '/home/httpd/nox-rhea.org/clouds/apps/grauphel/lib/Controller/OauthController.php' line 274","userAgent":"--","version":"24.0.2.1","exception":{"Exception":"Exception","Message":"Class 'OCA\\Grauphel\\Response\\FormResponse' not found in file '/home/httpd/nox-rhea.org/clouds/apps/grauphel/lib/Controller/OauthController.php' line 274","Code":0,"Trace":[{"file":"/home/httpd/nox-rhea.org/clouds/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/home/httpd/nox-rhea.org/clouds/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/httpd/nox-rhea.org/clouds/lib/base.php","line":1023,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/httpd/nox-rhea.org/clouds/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/httpd/nox-rhea.org/clouds/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"Error","Message":"Class 'OCA\\Grauphel\\Response\\FormResponse' not found","Code":0,"Trace":[{"file":"/home/httpd/nox-rhea.org/clouds/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"requestToken","class":"OCA\\Grauphel\\Controller\\OauthController","type":"->"},{"file":"/home/httpd/nox-rhea.org/clouds/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/home/httpd/nox-rhea.org/clouds/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/home/httpd/nox-rhea.org/clouds/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/httpd/nox-rhea.org/clouds/lib/base.php","line":1023,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/httpd/nox-rhea.org/clouds/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/httpd/nox-rhea.org/clouds/apps/grauphel/lib/Controller/OauthController.php","Line":274},"CustomMessage":"--"}}
NextCloud version: 24.0.2

Grauphel version : 1.0.13

PHP version: 7.4.28

From now I cannot register new TomBoy notes.

@saintfrater
Copy link
Author

I've Founded the root cause:

For some file have namespace wrongly set:

namespace OCA\Grauphel\Lib\Response;

should be:

namespace OCA\Grauphel\Response;

I've found source 2 file with wrong namespace :

  • ErrorResponse.php
  • FormResponse.php

@grosjo
Copy link
Owner

grosjo commented Oct 23, 2022

Kindly check latest git

@ramcq
Copy link
Contributor

ramcq commented Dec 18, 2022

Kindly check latest git

What's the easiest way to deploy the git version in Nextcloud to test?

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

3 participants