#172 ServerErrorAction: 500 - explorer.php on line 59

Closed
opened 11 months ago by aab · 7 comments
aab commented 11 months ago

This keeps appearing in logs despite 3a2ec3ef9c LOG_ERR: [gnusocial.net:18670.c490b4fb POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_explorer::lookup() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 59

This keeps appearing in logs despite https://notabug.org/diogo/gnu-social/commit/3a2ec3ef9c2e71823ea77966e85ead06eeb26189 ```` LOG_ERR: [gnusocial.net:18670.c490b4fb POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_explorer::lookup() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 59````
Diogo Cordeiro commented 10 months ago
Owner

871f3c4bfe will make it possible to find what is triggering that.

https://notabug.org/diogo/gnu-social/commit/871f3c4bfe2199ef6029648f9eb12c1892772cab will make it possible to find what is triggering that.
aab commented 10 months ago
Poster

Well... lots of these now, and UI almost gone:

2020-07-21 12:13:34 LOG_ERR: [khp.ignorelist.com:9072.8fae162e POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to UserFlagPlugin::onUserRightsCheck() must be an instance of User, instance of Profile given, called in /var/www/html/lib/util/event.php on line 89'

2020-07-21 12:13:34 LOG_ERR: [khp.ignorelist.com:9072.8fae162e POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to UserFlagPlugin::onUserRightsCheck() must be an instance of User, instance of Profile given, called in /var/www/html/lib/util/event.php on line 89
Well... lots of these now, and UI almost gone: ```` 2020-07-21 12:13:34 LOG_ERR: [khp.ignorelist.com:9072.8fae162e POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to UserFlagPlugin::onUserRightsCheck() must be an instance of User, instance of Profile given, called in /var/www/html/lib/util/event.php on line 89' 2020-07-21 12:13:34 LOG_ERR: [khp.ignorelist.com:9072.8fae162e POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to UserFlagPlugin::onUserRightsCheck() must be an instance of User, instance of Profile given, called in /var/www/html/lib/util/event.php on line 89 ````
Diogo Cordeiro commented 10 months ago
Owner

That's due to #171 as well :')

Let me try to make that plugin work...

That's due to https://notabug.org/diogo/gnu-social/issues/171 as well :') Let me try to make that plugin work...
aab commented 10 months ago
Poster

Ok, i've disabled it on khp, and UI is working again. On gs.net is really useful, i'll wait to upgrade. Even disabling it, i'm getting this:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to UserFlagPlugin::onUserRightsCheck() must be an instance of User, instance of Profile given, called in /var/www/html/lib/util/event.php on line 89 and defined in /var/www/html/plugins/UserFlag/UserFlagPlugin.php:163
Stack trace:
#0 /var/www/html/lib/util/event.php(89): UserFlagPlugin->onUserRightsCheck(Object(Profile), 'publicnotice', false)
#1 /var/www/html/classes/Profile.php(1333): Event::handle('UserRightsCheck', Array)
#2 /var/www/html/plugins/OStatus/OStatusPlugin.php(142): Profile->hasRight('publicnotice')
#3 /var/www/html/lib/util/event.php(89): OStatusPlugin->onStartEnqueueNotice(Object(Notice), Array)
#4 /var/www/html/lib/util/util.php(1703): Event::handle('StartEnqueueNot...', Array)
#5 /var/www/html/lib/notices/distribqueuehandler.php(100): common_enqueue_notice(Object(Notice))
#6 /var/www/html/plugins/RedisQueue/classes/RedisQueueManager.php(58): DistribQueueHandler->handle(Object(Notice))
#7 /var/www/html/lib/util/iomaster.php(286): RedisQueueManager->poll in /var/www/html/plugins/UserFlag/UserFlagPlugin.php on line 163
Ok, i've disabled it on khp, and UI is working again. On gs.net is really useful, i'll wait to upgrade. Even disabling it, i'm getting this: ```` PHP Fatal error: Uncaught TypeError: Argument 1 passed to UserFlagPlugin::onUserRightsCheck() must be an instance of User, instance of Profile given, called in /var/www/html/lib/util/event.php on line 89 and defined in /var/www/html/plugins/UserFlag/UserFlagPlugin.php:163 Stack trace: #0 /var/www/html/lib/util/event.php(89): UserFlagPlugin->onUserRightsCheck(Object(Profile), 'publicnotice', false) #1 /var/www/html/classes/Profile.php(1333): Event::handle('UserRightsCheck', Array) #2 /var/www/html/plugins/OStatus/OStatusPlugin.php(142): Profile->hasRight('publicnotice') #3 /var/www/html/lib/util/event.php(89): OStatusPlugin->onStartEnqueueNotice(Object(Notice), Array) #4 /var/www/html/lib/util/util.php(1703): Event::handle('StartEnqueueNot...', Array) #5 /var/www/html/lib/notices/distribqueuehandler.php(100): common_enqueue_notice(Object(Notice)) #6 /var/www/html/plugins/RedisQueue/classes/RedisQueueManager.php(58): DistribQueueHandler->handle(Object(Notice)) #7 /var/www/html/lib/util/iomaster.php(286): RedisQueueManager->poll in /var/www/html/plugins/UserFlag/UserFlagPlugin.php on line 163 ````
Diogo Cordeiro commented 10 months ago
Owner

try now xb

try now xb
aab commented 10 months ago
Poster

It has stopped :) I'll check later if it appears again

It has stopped :) I'll check later if it appears again
aab commented 10 months ago
Poster

3 hours and not a single match, i think this one is done! :)

3 hours and not a single match, i think this one is done! :)
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.