Themes Broken: <link rel="stylesheet" media="all" href="/" />

Created on 16 September 2019, almost 6 years ago
Updated 16 June 2025, 8 days ago

I'm not sure when issue started, but I have following issue.

With with admin theme seven, all CSS is missing. however, the tags are there.

Taken from the HEAD part.

<noscript><meta http-equiv="Refresh" content="0; URL=/big_pipe/no-js?destination=/admin/appearance" />
</noscript><meta name="Generator" content="Drupal 8 (https://www.drupal.org)" />
<meta name="MobileOptimized" content="width" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/core/misc/favicon.ico" type="image/vnd.microsoft.icon" />

    <title>Appearance | Development</title>
    <link rel="stylesheet" media="all" href="/" />
<link rel="stylesheet" media="all" href="/" />

So, the css meta gas missing the correct href.

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component

file system

Created by

🇫🇮Finland Niko9911

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

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.

  • 🇮🇳India mohit_aghera Rajkot

    I tried to reproduce the issue while doing triage for Bug smash initiative.

    Thanks to @rcodina and @dieterholvoet for providing hints about the project.
    It seems to be happening when file_temp_path setting isn't correct one.

    Since this issue happens due to missing $settings['file_temp_path'] setting,
    I added following config in the settings.php file.
    $settings['file_temp_path'] = '/abc';
    This directory doesn't exist at all inside my docker container and system is not able to create it either.

    After doing cache clear, I was able to see the theme properly.
    I noticed following message on the screen which were able to convey that file_temp_path is incorrect.

    Notice: tempnam(): file created in the system's temporary directory in Drupal\Core\File\FileSystem->tempnam() (line 274 of core/lib/Drupal/Core/File/FileSystem.php).
    
    Warning: file_put_contents(temporary://filebNGCln): Failed to open stream: "Drupal\Core\StreamWrapper\TemporaryStream::stream_open" call failed in Drupal\Core\File\FileSystem->saveData() (line 498 of core/lib/Drupal/Core/File/FileSystem.php).

    When we don't have the settings $settings['file_temp_path'] = '/abc'; in settings.php, it falls back to `/tmp` directory of the OS.
    In the following snippet, we can see that if settings is empty, Drupal will pick the operating system's tmp directory.
    https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...

    I think we would need more detailed steps to reproduce the issue.

Production build 0.71.5 2024