Warning: rename(/tmp/wrt3mjOBd,../templates_c/16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php) [function.rename]: Permission denied in /www/petdog/smarty/sysplugins/smarty_internal_write_file.php on line 48Warning: chmod() [function.chmod]: No such file or directory in /www/petdog/smarty/sysplugins/smarty_internal_write_file.php on line 50Warning: include(../templates_c/16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php) [function.include]: failed to open stream: No such file or directory in /www/petdog/smarty/sysplugins/smarty_internal_template.php on line 434Warning: include() [function.include]: Failed opening '../templates_c/16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/petdog/smarty/sysplugins/smarty_internal_template.php on line 434基本就是这样报错,程序进行不下去,然后去/tep/看时,每刷新一次,红色部分都在变,tem下就增加一个文件。
其他的就不知道 了,为什么呢,大侠们。

解决方案 »

  1.   

    linux是否需要smarty 一些支持等等。
      

  2.   

    那个长长的缓存文件是怎么回事,templates_c里面什么都没有
      

  3.   

    缓存这个16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php文件
    为什么缓存不到templates_c里,找不到;设置里是这样的:
    <?php
    require_once("../smarty/Smarty.class.php");
    $smarty = new Smarty;
    $smarty->template_dir = '../templates';
    $smarty->compile_dir = '../templates_c';
    $smarty->config_dir = '../configs';
    $smarty->cache_dir = '../cache';
    $smarty->caching = false;
    $smarty->debugging = FALSE;
      

  4.   


    Smarty小框架,别的都没用
      

  5.   

    $smarty->template_dir = '../templates';
    $smarty->compile_dir = '../templates_c';
    $smarty->config_dir = '../configs';
    $smarty->cache_dir = '../cache';
    你这些些配置最好用绝对路径。
      

  6.   

    呵呵,我把templates_c修改到系统的/tmp/,因为所有的缓存文件都进这里了。但是/tmp/默认我没设置啊,怎么进这里呢。