2012-11-17 59 views
5

我将drupal 7从服务器(live站点)移到我的localhost(xampp)。我更改数据库连接settings.php(files/defualt/settings.php)并从mysql数据库中删除缓存。现在在负荷指数,我看到我的网站上没有的CSS设计(纯文本),并看到此错误:Drupal 7错误:无法创建文件

**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. 

我想的Drupal不能创建CSS/JS压缩文件。如何解决这个错误?谢谢你的帮助。

+0

这有什么错在你的状态报告? www.yoururl.com/admin/reports/status – Neograph734

+0

@ Neograph734:不,没有。 – BaTmaN

回答

0

这似乎是一个权限问题,在清除drupal缓存后,所有的css和js文件需要在sites/default/files(或sites/yourdomain/files)中重新创建,请检查web用户是否有权写入在这个目录中。

+0

在我的生活网站,我没有任何问题,我的本地主机是xammp,并在Windows 7中运行,因此'sites/default/files'的权限是777。 – BaTmaN

2

类似于其他答案这是我的文件系统设置的问题。我的实时网站中的tmp目录位于public_html文件夹之外的文件夹中。

  • 所以我刚刚创建了一个新的tmp目录我的目录结构 内
  • 去管理/配置/媒体/文件系统和
  • 设置TMP文件夹指向新的TMP文件夹。
0

你需要给你的“临时目录”写入权限。从管理 - >配置 - >文件系统

enter image description here