早睡早起,方能养生!
Sleep early rise early, square can preserve one's health!

DedeTag Engine Create File False

super
2021-04-01 13:09
views 148

dedecms报错DedeTag Engine Create File False

 

这个问题大概率是你的文件夹权限不足,导致文件创建失败

 

如果想知道是因为哪个文件夹引起的报错,可修改代码:

 

include/dedetag.class.php 775行

 

function SaveTo($filename)
{
    $fp = @fopen($filename,"w") or die("DedeTag Engine Create File False");
    fwrite($fp,$this->GetResult());
    fclose($fp);
}

 

修改为:

 

function SaveTo($filename)
{
    $fp = @fopen($filename,"w") or die("DedeTag Engine Create File False: $filename");
    fwrite($fp,$this->GetResult());
    fclose($fp);
}

 

再次运行程序,报错哪里会提示具体是哪个文件夹报的错,找到后修改相应文件夹的权限。

 


分享
0 条讨论
top