#191 Undefined offset: 0 - Activitypub_notice.php on line 188

Closed
opened 3 years ago by aab · 1 comments
aab commented 3 years ago

EDIT: I thought it could be triggered by AndStatus connections, but i'm getting it in khp also, which has no users connected with AndStatus...

GS debug log:

2020-07-25 16:16:49 LOG_ERR: [gnusocial.net:17526.dec4828c POST /api/statuses/update.json] Running query: INSERT INTO `notice` (`profile_id` , `content` , `rendered` , `created` , `is_local` , `source` , `conversation` , `object_type` , `verb` , `scope` ) VALUES ( 10503 , 'programa no. 84. ¿Por qué el conservadurismo es más atractivo? https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html' , 'programa no. 84. ¿Por qué el conservadurismo es más atractivo? <a href=\"https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html\" title=\"https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html\" rel=\"nofollow external noreferrer\" class=\"attachment thumbnail\" id=\"attachment-2761222\">https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html</a>' , '2020-07-25 16:16:49' ,  1 , 'AndStatus' ,  5007811 , 'http://activitystrea.ms/schema/1.0/note' , 'http://activitystrea.ms/schema/1.0/post' ,  0 )

Nginx error log:

2020/07/25 16:17:02 [error] 7610#7610: *1605228 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 0 in /var/www/gnusocial/plugins/ActivityPub/lib/models/Activitypub_notice.php on line 188" while reading response header from upstream, client: 206.189.60.56, server: gnusocial.net, request: "POST /inbox.json HTTP/1.0", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:", host: "gnusocial.net"
EDIT: I thought it could be triggered by AndStatus connections, but i'm getting it in khp also, which has no users connected with AndStatus... GS debug log: ```` 2020-07-25 16:16:49 LOG_ERR: [gnusocial.net:17526.dec4828c POST /api/statuses/update.json] Running query: INSERT INTO `notice` (`profile_id` , `content` , `rendered` , `created` , `is_local` , `source` , `conversation` , `object_type` , `verb` , `scope` ) VALUES ( 10503 , 'programa no. 84. ¿Por qué el conservadurismo es más atractivo? https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html' , 'programa no. 84. ¿Por qué el conservadurismo es más atractivo? <a href=\"https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html\" title=\"https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html\" rel=\"nofollow external noreferrer\" class=\"attachment thumbnail\" id=\"attachment-2761222\">https://mx.ivoox.com/es/programa-no-84-por-conservadurismo-es-audios-mp3_rf_54311119_1.html</a>' , '2020-07-25 16:16:49' , 1 , 'AndStatus' , 5007811 , 'http://activitystrea.ms/schema/1.0/note' , 'http://activitystrea.ms/schema/1.0/post' , 0 ) ```` Nginx error log: ```` 2020/07/25 16:17:02 [error] 7610#7610: *1605228 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined offset: 0 in /var/www/gnusocial/plugins/ActivityPub/lib/models/Activitypub_notice.php on line 188" while reading response header from upstream, client: 206.189.60.56, server: gnusocial.net, request: "POST /inbox.json HTTP/1.0", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:", host: "gnusocial.net" ````
Diogo Cordeiro commented 3 years ago
Owner

Fixed with e4e41bb595

Fixed with https://notabug.org/diogo/gnu-social/commit/e4e41bb5959e530dfcd7aba29b9b8bb112150254
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.