升级507补丁后出错,,

2016-07-07 15:12 来源:www.chinab4c.com 作者:ecshop专家

Warning: Cannot modify header information - headers already sent by (output started at D:\web\mall\includes\lib_base.php:1) in D:\web\mall\includes\cls_template.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at D:\web\mall\includes\lib_base.php:1) in D:\web\mall\admin\includes\init.php on line 357

Warning: Cannot modify header information - headers already sent by (output started at D:\web\mall\includes\lib_base.php:1) in D:\web\mall\admin\includes\init.php on line 358

Warning: Cannot modify header information - headers already sent by (output started at D:\web\mall\includes\lib_base.php:1) in D:\web\mall\admin\includes\init.php on line 359

Warning: Cannot modify header information - headers already sent by (output started at D:\web\mall\includes\lib_base.php:1) in D:\web\mall\admin\includes\init.php on line 360

Warning: Cannot modify header information - headers already sent by (output started at D:\web\mall\includes\lib_base.php:1) in D:\web\mall\admin\includes\init.php on line 361

回答:
Warning: Missing argument 3 for write_static_cache(), called in ....index.php on line 532 and defined in.....lib_base.php on line 1287

Warning: Missing argument 4 for write_static_cache(), called in .....index.php on line 532 and defined in ....includes\lib_base.php on line 1287

如何搞啊,,,

为什么我更新5.07的补丁没问题,你们的模版是不是经过二次开发

应该没有。。。
文字都变成正方形了,,后台进不去,。




是不是编码问题?下载的编码不对?




我升级以后也出现这种问题。

来看看来看看来看看来看看

出现同样的问题。
重新覆盖回1106版本的admin、includes两个文件夹。就好了。。

下载的包里,估计有问题。。。 我测试了几次。

我解决的办法吗/

看帖子的都发表一下看法

官方又乱来了。

function write_static_cache($cache_name,$caches,$newname='',$newfile='')
{
$cache_file_path = ROOT_PATH . '/temp/static_caches/' . $cache_name . '.php';

if(empty($newname))
$newname = $cache_name;
if(empty($newfile))
$newfile = $cache_file_path;

if (!empty($cache_name)){
if ((DEBUG_MODE & 2) == 2)
{
return false;
}
$content = "<?php\r\n";
$content .= "\$data = " . var_export($caches, true) . ";\r\n";
$content .= "?>";
file_put_contents($cache_file_path, $content, LOCK_EX);
}else{
@file_put_contents($newfile, $newname);
}
}

改为此代码即可,是由于没有加默认值,且老程序只写了两个参数的问题。不知道我写的对不对哈,PHP不支持函数的重载。。。郁闷!

根据你的方法,问题解决了

Warning: Missing argument 3 for write_static_cache(), called in ....index.php on line 532 and define ...
meisekongqi 发表于 2013-5-9 10:09


我也是这个问题,安装5.7补丁这样,退回1106还是这个问题。我来回测试好几次了。我是php5.3.23+mysql5.5.30