Skip to main content


!Friendica Support
Does anyone else have a problem trying to connect with @meldrik@lemmy.wtf?

I can follow the profile in Mastodon, but when I enter this user in the box to connect with them, I get a white screen, and I see this in the log

2025-02-07T12:22:07Z app [ERROR]: Uncaught Exception TypeError: "Friendica\Addon\s3_storage\src\S3Client::put(): Argument #1 ($data) must be of type string, null given, called in /var/www/html/src/Model/Photo.php on line 446" at /var/www/html/addon/s3_storage/src/S3Client.php line 73 {"exception":"TypeError: Friendica\\Addon\\s3_storage\\src\\S3Client::put(): Argument #1 ($data) must be of type string, null given, called in /var/www/html/src/Model/Photo.php on line 446 and defined in /var/www/html/addon/s3_storage/src/S3Client.php:73\nStack trace:\n#0 /var/www/html/src/Model/Photo.php(446): Friendica\\Addon\\s3_storage\\src\\S3Client->put()\n#1 /var/www/html/src/Model/Photo.php(638): Friendica\\Model\\Photo::store()\n#2 /var/www/html/src/Model/Contact.php(2412): Friendica\\Model\\Photo::importProfilePhoto()\n#3 /var/www/html/src/Model/Contact.php(2924): Friendica\\Model\\Contact::updateAvatar()\n#4 /var/www/html/src/Model/Contact.php(1461): Friendica\\Model\\Contact::updateFromProbeArray()\n#5 /var/www/html/src/Model/Contact.php(321): Friendica\\Model\\Contact::getIdForURL()\n#6 /var/www/html/src/Module/Contact/Follow.php(109): Friendica\\Model\\Contact::getByURL()\n#7 /var/www/html/src/BaseModule.php(236): Friendica\\Module\\Contact\\Follow->content()\n#8 /var/www/html/src/App.php(668): Friendica\\BaseModule->run()\n#9 /var/www/html/index.php(32): Friendica\\App->runFrontend()\n#10 {main}"} - {"file":null,"line":null,"function":null,"request-id":"67a5fae9a5295","stack":"ErrorHandler::handleException (114), ErrorHandler::Friendica\\Core\\Logger\\Handler\\{closure}","uid":"658b76","process_id":2208182}

Just me?
#1
Hi, I can follow him but my friendica deployment seems very different from yours (local filesysem vs S3 storage).
Edit: The profile picture is webp (sill living in 2000 gif era ;-) )

Just from reading the log, this error seems to be caused by the s3 storage plugin not friendica core.

It seems that the plugin has a problem with the user's profile photo. I took a look on the users page https://lemmy.wtf/u/meldrik and noticed it is an animated gif. Perhaps those are not supported at some point in the user adding pipeline causing to raise this Type Error

Friendica\Addon\s3_storage\src\S3Client::put(): 

Argument #1 ($data) must be of type string, null given, called in /var/www/html/src/Model/Photo.php on line 446


In any case, this null should be handeled appropriate, and not throw the exeption at the user's face :-)
This entry was edited (2 weeks ago)
That's what I had in mind.
BTW I tought the "image quality / compression" setting is supposed to recompress image as per the instance's setting, isn't it ? It should avoid that kind of issue, obviously image compression is not applied everywhere.
@Jerry on Friendica Working fine for me (2024.12 on Docker)
No, on the contraty i use a local filesystem, that's why I was pointing out this difference. It may gives an hint about the problem's root cause.
Sorry, The question was for Sarah. I asked because you pointed out that you weren't using S3