Skip to main content


How to debug broken images in posts


Hi !Friendica Support

I set up a Friendica server couple days ago. We have seen couple times a problem where an image attached to a post is visible only to the author of the post. This doesn't happen all the time or for all the images, but has happened to multiple users. If the image is shown broken once, it will stay broken. All the users are on the same server.

- As far as I know, this has happened only in private posts.
- Same person has posted both an image I can see and an image I can't see.
- As the author can see the image in the post, the data definitely is on the server and even accessible from the UI.
- Editing the post and re-adding the image didn't fix the problem.

The error message shown when trying to open a broken image is:

Not Found

The Photo with id 1181454791679d39a348725148987421 is not available.

#0 /var/www/html/src/BaseModule.php(230): Friendica\Module\Photo->rawContent()
#1 /var/www/html/src/Module/BaseApi.php(95): Friendica\BaseModule->run()
#2 /var/www/html/src/App.php(668): Friendica\Module\BaseApi->run()
#3 /var/www/html/index.php(32): Friendica\App->runFrontend()
#4 {main}

Request: 679debda529e1


Server info:
This is Friendica, version 2024.12 that is running at the web location https://capybara.community. The database version is 1576/1576, the post update version is 1550/1550.


Any ideas what could be wrong or how to continue debugging this?

(I'll be able to investigate this now for couple hours. After that I'll have to come back to this on Monday.)
#1 #2 #4 #3
Possibly we have got an issue with private pictures for users on the same system.
Do you mean that you have also seen this or have more reports on this or know already what might be wrong? Or should I try to investighte this more?
Can you create an issue for that? I want to have a look at it, but would forget about it, when there isn't an issue.
Sure, I'll do it tomorrow.
Actually, I stuck debugging this more. It seems that the problem is probably connected to the visibility settings of the images. If you make a public post, and attach a private image, the image is not visible. The same happens if you share a post to "Friends", but the image has visibility to "Followers", even when Friends is a subset of followers. It seems that some users on our server have managed to attach a new image to a post (upload while writing the post), and still the image has different permissions than the post.

How I would have assumed it to work: When an image is added to a post, the image inherits the visibility permissions of the post.