Score:0

GET /sites/default/files/js/js_xxxxxx.js - No such file or directory

gi flag

This is my first post, I just started to learn and use Drupal, and I wish to install a fresh new site on my local Windows machine using composer. The issue is that it has a file not found error from the path "/sites/default/files/js/js_xxxx.js", I have searched through some forums and some of the users said that it is related to permission, but in my case, the file doesn't even exist in the directory. The problem now is, the site is able to start but when I enter the site, there is no style, all contents are displayed as plain text only. Have anyone faced this before? Thank you for helping!

I have also tried to reinstall it multiple times, but the issue remains. However, I am able to install and run it without a problem through XAMPP.

My website's landing page

ru flag
The file does not exist due to missing write permissions.
Jeffrey1862 avatar
gi flag
@Hudri I have tried to run the Windows Terminal using admin right. Is it the right way?
ru flag
I don't know what you are talking about. Maybe you're misunderstanding who needs the permissions: This file is not created by you or composer, it is created dynamically by Drupal (= the webserver/apache/xampp user). The webserver must be allowed to write files into `....your_root.../web/sites/default/files`
id flag
Please be aware that XAMPP is considered old technology by the Drupal community and that there is a movement to drop official support for Windows.
Jeffrey1862 avatar
gi flag
@Hudri Yes, sorry for not making it clear enough, I have followed the right way to install it (I guess?). But inside the `project/web/sites/default/files' directory, it only contains three folders: config_xxxxx, php, and styles, while it should also contain: js, and css folders, which mine does not have in this case, when using composer to install. So I just don't understand why.
Jeffrey1862 avatar
gi flag
@cilefen thank you for the reminder! My goal is not to use XAMPP too...however, I can only install Drupal successfully via that, while having this missing files issue when installing with composer...
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.