klxm
April 15, 2024, 8:45am
1
Installed Collectives and Circles. When both activated I’m not able to manage new or existing Users. The List of Users is not accessible.
tflidd
April 15, 2024, 9:06am
2
Could be a bug… it does not happen with either app installed alone? Versions? Logs?
klxm
April 15, 2024, 9:39am
3
Nextcloud is: 28.0.4
when activated both apps I get in the protocol
Fehler no app in context
Exception
OCA\Circles\Model\Circle::getInitiator(): Return value must be of type OCA\Circles\Model\Member, null returned in file ‘/var/www/vhosts/datadomain.de/httpdocs/apps/circles/lib/Model/Circle.php’ line 591
Exception thrown: Exception
15.04.2024, 11:36:01
Fehler text
NotFoundException
No permission to access this file
No permission to access this file
tflidd
April 15, 2024, 9:44am
4
I found this topic, does it help you?
opened 02:47PM - 02 Apr 23 UTC
closed 08:57AM - 27 Feb 24 UTC
I'm using 25.0.**6** with Circles 25.0.0
When I want to display the users of … nextcloud, I get an error message in browser and the nginx-errror log:
`"GET","url":"/nextcloud/ocs/v2.php/cloud/users/details?offset=0&limit=25&search=","message":"Return value of OCA\\Circles\\Model\\Circle::getInitiator() must be an instance of OCA\\Circles\\Model\\Member, null returned in file '/var/local/nextcloud/nextcloud/apps/circles/lib/Model/Circle.php' line 593"`
I didn't change any circles related settings since a long time. The error occured since some updates to NC and/or Circles.
EDIT:
`occ user:list` works fine --> the error is only triggered by `/nextcloud/settings/users` view in the browser.
The backtrace shows, that the request: `GET /nextcloud/ocs/v2.php/cloud/users/details?offset=0&limit=25&search= HTTP/2.0` leads to `/var/local/nextcloud/nextcloud/lib/private/AppFramework/App.php` in line 172, which triggers `/var/local/nextcloud/nextcloud/apps/circles/lib/Model/Circle.php` in line 591 --> the function `getInitiator()`.
I don't understand, why this method is called even if both the initiator and directInitiator are null just for listing all registered users of the nextcloud installation.
I added `error_log((new Exception())->getTraceAsString());` at the corresponding line of the code, which results in the following backtrace:
`"user":"FOOOO","app":"no app in context","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/users/details?offset=0&limit=25&search=","message":"Class 'OCA\\Circles\\Model\\Exception' not found in file '/var/local/nextcloud/nextcloud/apps/circles/lib/Model/Circle.php' line 591","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0","version":"25.0.6.1","exception":{"Exception":"Exception","Message":"Class 'OCA\\Circles\\Model\\Exception' not found in file '/var/local/nextcloud/nextcloud/apps/circles/lib/Model/Circle.php' line 591","Code":0,"Trace":[{"file":"/var/local/nextcloud/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/local/nextcloud/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: FOOO.FIIII.de, request: "GET /nextcloud/ocs/v2.php/cloud/users/details?offset=0&limit=25&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/fpm-nextcloud.sock:", host: "FOOO.FIIII.de"`
I hope, somebody understand the reason for this call chain.
Bye,
Achim
klxm
April 15, 2024, 9:53am
5
oh - nice. Deleting overwrite cli helped.
But now I get the message:
Could not fetch collectives
FederatedUser is not complete when I start collectives
klxm
April 15, 2024, 10:11am
6
Ok thank’s for the hint.
That helped a lot.
I’ve set the cli url now to the domain and it works.
system
Closed
April 23, 2024, 10:12am
7
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.