有关ECSHOP模版搭建的网络服务器php版本号太高出

2021-01-28 04:48| 发布者: | 查看: |

1、

出错:Strict Standards: mktime(): You should be using the time() function instead in/data/web/ on line 31
 
$auth = mktime();
更换为:
$auth = time();
 
出错:Strict Standards: Only variables should be passed by reference in /data/web/ on line1336
 
2、lib_main.php
 $ext = end(explode( . , $tmp));
更换为:
 $ext = end(); 
 $ar = explode( . , $tmp);
 $ext = end($ar);
再次出错
Warning: end() expects parameter 1 to be array, null given in /data/web/ on line 1336
将不久的编码改为:
 $arr=array();
 $ext = end($arr); 
 $ar = explode( . , $tmp);
 $ext = end($ar);
 
3、cls_template.php
 
 $tag_sel = array_shift(explode( , $tag));
更换为:
 $tag_arr = explode( , $tag);
 $tag_sel = array_shift($tag_arr);
 
 
 
4、cls_captcha.php
 /**
 * 结构涵数
 *
 * @access public
 * @param
 *
 * @return void
 */
 function __construct($folder = , $width = 145, $height = 20)
 {
 $this- captcha($folder, $width, $height);
 }
移动到:
 /**
 * 结构涵数
 *
 * @access public
 * @param string $folder 情况照片所属文件目录
 * @param integer $width 照片总宽
 * @param integer $height 照片高宽比
 * @return bool
 */
前边
5、admin\includes\cls_sql_dump.php
 
 /**
 * 类的结构涵数
 *
 * @access public
 * @param
 *
 * @return void
 */
 function __construct( $db, $max_size =0)
 {
 $this- cls_sql_dump($db, $max_size);
 }
移动到:
 /**
 * 类的结构涵数
 *
 * @access public
 * @param
 *
 * @return void
 */
前边
 
 
 
Strict Standards: Redefining already defined constructor for class chinabank in/data/web/includes/modules/ on line 85
Strict Standards: Redefining already defined constructor for class paypal_ec in/data/web/includes/modules/ on line 96
Strict Standards: Redefining already defined constructor for class shenzhou in/data/web/includes/modules/ on line 81
Strict Standards: Redefining already defined constructor for class ips in/data/web/includes/modules/ on line 82
Strict Standards: Redefining already defined constructor for class balance in/data/web/includes/modules/ on line 79
Strict Standards: Redefining already defined constructor for class alipay in/data/web/includes/modules/ on line 85
Strict Standards: Redefining already defined constructor for class tenpay in/data/web/includes/modules/ on line 83
Strict Standards: Redefining already defined constructor for class post in/data/web/includes/modules/ on line 79
Strict Standards: Redefining already defined constructor for class paypal in/data/web/includes/modules/ on line 82
Strict Standards: Redefining already defined constructor for class tenpayc2c in/data/web/includes/modules/ on line 83
Strict Standards: Redefining already defined constructor for class cappay in/data/web/includes/modules/ on line 81
Strict Standards: Redefining already defined constructor for class bank in/data/web/includes/modules/ on line 79
Strict Standards: Redefining already defined constructor for class kuaiqian in/data/web/includes/modules/ on line 83
Strict Standards: Redefining already defined constructor for class cod in/data/web/includes/modules/ on line 82
 
处理方法:
将全部的结构涵数放进前边:
如alipay.php

 function __construct()
 {
 $this- alipay();
 }
放进
 function alipay()
 {
 }
<
>

 
QQ在线咨询
售前咨询热线
18720358503
售后服务热线
18720358503
返回顶部