Missing default profile image on OpenSocial 11.4 + PHP8.0 with private files

Created on 18 October 2022, about 2 years ago
Updated 6 February 2023, almost 2 years ago

Problem/Motivation

When Installing a fresh Open Social 11.4 with PHP 8.0 the default profile picture is not being shown on the frontend of the site. This makes me worried, as other things needed for a functional site might be missing as well. I want to figure out what is causing this, so I can fix this and other potentially related issues as well.

System setup:
OpenLiteSpeed 1.7.16 webserver
Open Social 11.4
PHP 8.0

Steps to reproduce

1. Navigate to your virtual host root and run `composer create-project goalgorilla/social_template:dev-master ./ --no-interaction`
2. Go through the installer at the domain of the virtual host using the preselected modules.
3. If you are not logged in after installation finishes, then log in to your new open social site.
4. Notice that the default pictures on the home screen of your admin user only shows the image text, with a broken image logo.
5. Setup private files on your server according to this guide: https://www.drupal.org/docs/distributions/open-social/private-files
6. Notice that the default profile image is still not being shown.
7. Add the latest drupal core patch for drupal 9.3.x from the issue https://www.drupal.org/project/drupal/issues/2107455 🐛 Image field default value not shown when upload destination set to private file storage Needs work . Add the following "patches" section to your composer.json:

	"patches": {
            "drupal/core": {
                "2107455: Drupal 9 default images not shown with private files enabled": "https://www.drupal.org/files/issues/2022-04-01/2107455-72.patch"
            }
        },

Proposed resolution

Installing Open Social with the default settings should lead to a functioning site with minimal adjustments. There should be steps provided to ensure a successful installation of Open Social.
After following the steps to reproduce the problem, the path to the profile picture on the home page is set to `/sites/default/files/styles/social_medium/public/default-profile-picture.png?itok=LZb-rtF-`, but my `/sites/default/files/styles/` folder is empty. The path should be set to something that exists on the server.

🐛 Bug report
Status

Closed: duplicate

Version

11.4

Component

Front-End

Created by

🇩🇰Denmark nowaka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024