Drupal 7错误:无法创建文件

BaT*_*maN 6 php drupal-7

我将drupal 7从服务器(实时站点)移动到我的localhost(xampp).我更改settings.php(files/defualt/settings.php)数据库连接并从mysql数据库中删除缓存.现在在加载索引,我看到我的网站没有CSS设计(只有文本),看到这个错误:

**Error message**:
The file could not be created.
The file could not be created.
The file could not be created.
The file could not be created.
The file could not be created.
Run Code Online (Sandbox Code Playgroud)

我认为drupal不会创建css/js压缩文件.如何解决此错误?谢谢你的帮助.

小智 9

在运行MAMP的同时

从这里找到答案:http: //drupal.org/node/581558#comment-6202892

去:admin/config/media/file-system

将"/ tmp/php"改为"tmp/php",问题解决了.


m4t*_*1t0 1

看来是权限问题,清除drupal缓存后,需要在sites/default/files(或sites/yourdomain/files)中重新创建所有css和js文件,检查Web用户是否有权限在此目录中写入。