网站地图
  • 网站首页
  • 模板下载
  • 建站心得
  • 站长百科
  • 素材风暴
  • 源码时代
  • 源码入门
  • 关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合

    发布时间: 2021-07-08 09:11首页:蜡笔源码 > 建站心得 > ECShop开发 > 阅读()
    1、admin/index.php
    admin/sms_url.php
    显示错误:Strict Standards: mktime: You should be using the time function instead in/data/web/ledetaoadmin/sms_url.phpon line31
    $auth = mktime;
    替换为:
    $auth = time;
    显示错误:Strict Standards: Only variables should be passed by reference in/data/web/includes/lib_main.phpon line1336
    2、lib_main.php
    $ext = end);
    替换为:
    $ext = end;
    $ar = explode;
    $ext = end;
    继续显示错误
    Warning: end expects parameter 1 to be array, null given in/data/web/includes/lib_main.phpon line1336
    将刚刚的代码改成:
    $arr=array;
    $ext = end;
    $ar = explode;
    $ext = end;
    3、cls_template.php
    $tag_sel = array_shift);
    替换为:
    $tag_arr = explode;
    $tag_sel = array_shift;

    4、cls_captcha.php
    /**
    *架构函数
    *
    * @accesspublic
    * @param
    *
    * @return void
    */
    function __construct
    {
    $this-captcha;
    }
    移动到:
    /**
    *架构函数
    *
    * @accesspublic
    * @paramstring$folder背景图片所在目录
    * @paraminteger $width图片宽度
    * @paraminteger $height图片高度
    * @returnbool
    */
    前面

    5、admin\includes\cls_sql_dump.php
    /**
    *类的架构函数
    *
    * @accesspublic
    * @param
    *
    * @return void
    */
    function __construct
    {
    $this-cls_sql_dump;
    }
    移动到:
    /**
    *类的架构函数
    *
    * @accesspublic
    * @param
    *
    * @return void
    */
    前面

    Strict Standards: Redefining already defined constructor for class chinabank in/data/web/includes/modules/payment/chinabank.phpon line85
    Strict Standards: Redefining already defined constructor for class paypal_ec in/data/web/includes/modules/payment/paypal_ec.phpon line96
    Strict Standards: Redefining already defined constructor for class shenzhou in/data/web/includes/modules/payment/shenzhou.phpon line81
    Strict Standards: Redefining already defined constructor for class ips in/data/web/includes/modules/payment/ips.phpon line82
    Strict Standards: Redefining already defined constructor for class balance in/data/web/includes/modules/payment/balance.phpon line79
    Strict Standards: Redefining already defined constructor for class alipay in/data/web/includes/modules/payment/alipay.phpon line85
    Strict Standards: Redefining already defined constructor for class tenpay in/data/web/includes/modules/payment/tenpay.phpon line83
    Strict Standards: Redefining already defined constructor for class post in/data/web/includes/modules/payment/post.phpon line79
    Strict Standards: Redefining already defined constructor for class paypal in/data/web/includes/modules/payment/paypal.phpon line82
    Strict Standards: Redefining already defined constructor for class tenpayc2c in/data/web/includes/modules/payment/tenpayc2c.phpon line83
    Strict Standards: Redefining already defined constructor for class cappay in/data/web/includes/modules/payment/cappay.phpon line81
    Strict Standards: Redefining already defined constructor for class bank in/data/web/includes/modules/payment/bank.phpon line79
    Strict Standards: Redefining already defined constructor for class kuaiqian in/data/web/includes/modules/payment/kuaiqian.phpon line83
    Strict Standards: Redefining already defined constructor for class cod in/data/web/includes/modules/payment/cod.phpon line82
    解决方法:
    将所有些架构函数放到前面:
    如alipay.php

    function __construct
    {
    $this-alipay;
    }
    放到
    function alipay
    {
    }
    前面。
    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页 - 模板下载 - 建站心得 - 站长百科 - 素材风暴 - 源码时代 - 源码入门

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright © 2002-2021 蜡笔源码 (http://www.028djc.com) 网站地图 TAG标签