继续Drupal分享精神 QQ群:107748121 站长QQ:2275288328 skype: hellodrupal【drupal交流+drupal 建站+theme制作】
登录 注册

Drupal imagcache 无法创建目录,无法生缩略图问题解决

一般情况下,drupal imagcache都是可以使用,可以自动创建cache文件夹还有缩略图,但是经常会遇到这样问题,如果把本地测试安装好的程序放到服务器上,可能会出现这样情况。

如果本地是apache服务器,服务器上是iis支持。但是iis又不支持clean url。遇到这个imagacache无法生成缩略图和文件夹,最后到imagacache文件里面修改了一下代码:
imagacache.module

<?php

//321行 修改为   
  
return url($GLOBALS['base_url'] .  '/index.php?q='  . file_directory_path() .'/imagecache/'. $presetname .'/'. $path, $args);
//经过测试可行。解决问题
?>

评论

我也准备用drupal来建站了,大概看了下程序,貌似有点难

我也准备用drupal来建站了,大概看了下程序,貌似有点难上手。以后要请多多指教了。

============
mozzila

pr到4了,恭喜

pr到4了,恭喜

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 自动断行和分段。
  • You can use BBCode tags in the text.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.