关于ECSHOP模板架设的服务器php版本过高报错的解决方法(二)
2017-01-10 11:51
537 查看
ECShop安装之后,在后台发现一个错误,这个错误提示的意思:mktime()方法不带参数被调用时,会被抛出一个报错提示。
ECShop安装之后,在后台发现一个错误提示:
Strict Standards: mktime(): You should be using the time() function instead in :\wamp\www\dqzhubao.com\shinamondadmin\sms_url.php on line 31
Strict standards: mktime(): You should be using the time() function instead in D:\wamp\www\dqzhubao.com\shinamondadmin\shop_config.php on line 33
这个错误提示的意思:mktime()方法不带参数被调用时,会被抛出一个报错提示。
找到文件第31行:
$auth = mktime();
将mktime()替换成time()方法,代码为:
$auth = time();
ECShop后台界面设置时候会出现一个错误 Notice: Constant IN_ECS already defined in D:\wamp\www\dqzhubao.com\shinamondadmin\editor\index_module_xn.php on line 3
找到文件打开发现define('IN_ECS',true);删除一个就可以解决当前这个问题了
Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /web/agent/zuandingyisheng.com/includes/lib_base.php on line 349
原来的:
return cls_image::gd_version();
修改为:
$p = new cls_image();
return $p->gd_version();
Strict Standards: Only variables should be passed by reference in /web/agent/zuandingyisheng.com/includes/cls_template.php on line 423
原来的:
$tag_sel = array_shift(explode(' ',$tag));
修改为:
$tag_tmp = (explode(' ',$tag));
$tag_sel = array_shift($tag_tmp);
Deprecated: preg_replace(): The /e modifier is deprecated,use preg_replace_callback instead in /web/agent/zuandingyisheng.com/includes/cls_template.php on line 555
原来的:
修改为:
当出现以下这两行错的时候,意思是报的是权限问题,把home这个文件的权限改成三个7试试(注:如果你的文件是其它名称你找到相对应的文件改就可以了,这只是一个缓存文件位置)
failed to open stream: No such file or directory in /home/username/public_html/includes/cls_template.php on line 262
Notice: can't write:/home/username/public_html/temp/compiled/page_header.lbi.php in /home/username/public_html/includes/cls_template.php on line 264
Deprecated: preg_replace(): The /e modifier is deprecated,use preg_replace_callback instead in /web/agent/zuandingyisheng.com/includes/cls_template.php on line 496
原来的:
$out = "<?php \n" . '$k = ' . preg_replace("/(\'\\$[^,]+)/e" ,"stripslashes(trim('\\1','\''));",var_export($t,true)) . ";\n";
修改为:
$out = "<?php \n" . '$k = ' . preg_replace_callback("/(\'\\$[^,]+)/" ,function($r) {return stripslashes(trim($r[1],'\''));},var_export($t,true)) . ";\n";
$out .= 'echo $this->_echash . $k[\'name\'] . \'|\' . serialize($k) . $this->_echash;' . "\n?>";
ECShop安装之后,在后台发现一个错误提示:
Strict Standards: mktime(): You should be using the time() function instead in :\wamp\www\dqzhubao.com\shinamondadmin\sms_url.php on line 31
Strict standards: mktime(): You should be using the time() function instead in D:\wamp\www\dqzhubao.com\shinamondadmin\shop_config.php on line 33
这个错误提示的意思:mktime()方法不带参数被调用时,会被抛出一个报错提示。
找到文件第31行:
$auth = mktime();
将mktime()替换成time()方法,代码为:
$auth = time();
ECShop后台界面设置时候会出现一个错误 Notice: Constant IN_ECS already defined in D:\wamp\www\dqzhubao.com\shinamondadmin\editor\index_module_xn.php on line 3
找到文件打开发现define('IN_ECS',true);删除一个就可以解决当前这个问题了
Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /web/agent/zuandingyisheng.com/includes/lib_base.php on line 349
原来的:
return cls_image::gd_version();
修改为:
$p = new cls_image();
return $p->gd_version();
Strict Standards: Only variables should be passed by reference in /web/agent/zuandingyisheng.com/includes/cls_template.php on line 423
原来的:
$tag_sel = array_shift(explode(' ',$tag));
修改为:
$tag_tmp = (explode(' ',$tag));
$tag_sel = array_shift($tag_tmp);
Deprecated: preg_replace(): The /e modifier is deprecated,use preg_replace_callback instead in /web/agent/zuandingyisheng.com/includes/cls_template.php on line 555
原来的:
$val
= preg_replace(
"/\[([^\[\]]*)\]/eis"
,
"'.'.str_replace('$','\$','\\1')"
,
$val
);
修改为:
$val
= preg_replace_callback(
"/\[([^\[\]]*)\]/"
,
function
(
$r
) {
return
'.'
.
str_replace
(
'$'
,
'$'
,
$r
[1]);},
$val
);
当出现以下这两行错的时候,意思是报的是权限问题,把home这个文件的权限改成三个7试试(注:如果你的文件是其它名称你找到相对应的文件改就可以了,这只是一个缓存文件位置)
failed to open stream: No such file or directory in /home/username/public_html/includes/cls_template.php on line 262
Notice: can't write:/home/username/public_html/temp/compiled/page_header.lbi.php in /home/username/public_html/includes/cls_template.php on line 264
Deprecated: preg_replace(): The /e modifier is deprecated,use preg_replace_callback instead in /web/agent/zuandingyisheng.com/includes/cls_template.php on line 496
原来的:
$out = "<?php \n" . '$k = ' . preg_replace("/(\'\\$[^,]+)/e" ,"stripslashes(trim('\\1','\''));",var_export($t,true)) . ";\n";
修改为:
$out = "<?php \n" . '$k = ' . preg_replace_callback("/(\'\\$[^,]+)/" ,function($r) {return stripslashes(trim($r[1],'\''));},var_export($t,true)) . ";\n";
$out .= 'echo $this->_echash . $k[\'name\'] . \'|\' . serialize($k) . $this->_echash;' . "\n?>";
相关文章推荐
- 关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合
- 关于ECSHOP模板架设的服务器php版本过高报错的解决方法(一)
- 关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合
- 关于ECSHOP模板架设的服务器php版本过高报错的解决
- 升级Appserv中的php版本之后mysql报关于密码错误的解决方法#2000
- 关于ecshop模板更新版本的解决方法(三)
- 架设PHP服务器80端口被占用的解决方法
- php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- 关于【对象“***.rem”已经断开连接或不在服务器上】异常的解决方法
- 关于aspx服务器架设问题解决
- 关于【对象“***.rem”已经断开连接或不在服务器上】异常的解决方法
- asp.net 2.0)关于NavigateUrl中绑定Eval()方法时出现"服务器标记的格式不正确"的解决方法(转)
- 关于连接SQL 2005 出错: provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错 的解决方法
- 关于tomcat服务器优化,常遇到的一些简单问题的解决方法 (z)
- 关于serv-u公网访问出现“打开ftp服务器上的文件夹时发生错误。请检查是否有权限访问该文件夹。详细信息:操作超时”的解决方法
- 关于ClickOnce无法更新/Upgrade/下载 应用系统最新版本的问题和解决方法
- 关于【对象“***.rem”已经断开连接或不在服务器上】异常的解决方法
- php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- 关于在Eclipse中启动Weblogic服务器时出现Parsing Failure in config.xml问题解决方法
- 关于automation服务器不能创建对象解决方法