您好!欢迎来到大秦朝旭拼单网官方站

大秦朝旭拼单网官方站

热门搜索: 友价    店铺转让    智企    知识产权    新媒   

关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合_拼单网

  • 二开教程
  • 来源:转载
  • 编辑:拼单网
  • 时间:2023-11-22 07:46
  • 阅读:547

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.php on line 31
 
$auth = mktime();
替换为:
$auth = time();
 
报错:Strict Standards: Only variables should be passed by reference in /data/web/includes/lib_main.php 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/includes/lib_main.php 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、adminincludescls_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/payment/chinabank.php on line 85

Strict Standards: Redefining already defined constructor for class paypal_ec in/data/web/includes/modules/payment/paypal_ec.php on line 96

Strict Standards: Redefining already defined constructor for class shenzhou in/data/web/includes/modules/payment/shenzhou.php on line 81

Strict Standards: Redefining already defined constructor for class ips in/data/web/includes/modules/payment/ips.php on line 82

Strict Standards: Redefining already defined constructor for class balance in/data/web/includes/modules/payment/balance.php on line 79

Strict Standards: Redefining already defined constructor for class alipay in/data/web/includes/modules/payment/alipay.php on line 85

Strict Standards: Redefining already defined constructor for class tenpay in/data/web/includes/modules/payment/tenpay.php on line 83

Strict Standards: Redefining already defined constructor for class post in/data/web/includes/modules/payment/post.php on line 79

Strict Standards: Redefining already defined constructor for class paypal in/data/web/includes/modules/payment/paypal.php on line 82

Strict Standards: Redefining already defined constructor for class tenpayc2c in/data/web/includes/modules/payment/tenpayc2c.php on line 83

Strict Standards: Redefining already defined constructor for class cappay in/data/web/includes/modules/payment/cappay.php on line 81

Strict Standards: Redefining already defined constructor for class bank in/data/web/includes/单网官方站modules/payment/bank.php on line 79

Strict Standards: Redefining already defined constructor for class kuaiqian in/data/web/includes/modules/payment/kuaiqian.php on line 83

Strict Standards: Redefining already defined constructor for class cod in/data/web/includes/modules/payment/cod.php on line 82
 
解决办法:
将所有的构造函数放到前面:
如alipay.php

    function __construct()
    {
        $this->alipay();
    }
放到
    function alipay()
    {
    }
前面。

全部评论(0)
资讯详情页最新发布上方横幅
推荐阅读
  • 友价源码分词搜索技术如何实现
  • 友价源码分词搜索技术如何实现
  • 联系客服安装分词插件后,再申请一个APIKEY(目前该接口是免费的)https://www.showapi.com/apiGateway/view/2691、将客服提供的插件文件,放在你的后台目录下2、进入后台,点击广告互动,有个其他广告点下,找到插件入口,添加3、路径写chajian_fenci.php名称随便写(如分词)4、再点击上面的插件专区,将你的APIKEY填入即可
  • 友价教程
  • 来源:转载
  • 编辑:拼单网
  • 时间:2025-06-30 03:06
  • 阅读:190
  • 友价源码如何集成阿里云OSS功能
  • 友价源码如何集成阿里云OSS功能
  • 前言:阿里云OSS是指把数据存在阿里云上面的一个空间体系,举个例子,开通这个OSS功能后,你可以把商品的一些数据包放在这上面,而不是存在自己的空间或服务器,这样用户在下载时,就不会占用你服务器的带宽。【附:PHP版本必须为5.3或以上,如果你的平台能用阿里通信发短信了,就说明已经是5.3或以上】1、登录阿里云,www.aliyun.com,进入控制台,点击左侧的对象存储OSS,如果没有,请看第二步2、如果能看到第一步红框里的链接,请跳过
  • 友价教程
  • 来源:转载
  • 编辑:拼单网
  • 时间:2025-06-30 02:54
  • 阅读:263
  • 友价源码使用腾讯云OSS时,报错解决方法
  • 友价源码使用腾讯云OSS时,报错解决方法
  • 请先下载腾讯云的PHPSDK包,然后在你的config目录下,新建一个文件夹,名称为tencentoss,再把下载的压缩包解压进去。(联系客服获取腾讯OSS压缩包)报错1:“Fatalerror:Composerdetectedissuesinyourplatform:YourComposerdependenciesrequireaPHPversion">=7.2.5".
  • 环境配置
  • 来源:转载
  • 编辑:拼单网
  • 时间:2025-06-30 02:50
  • 阅读:205
  • 之前已经申请了H5支付宝接口的,如何添加支付宝的新版电脑接口
  • 之前已经申请了H5支付宝接口的,如何添加支付宝的新版电脑接口
  • 本文是针对已经申请过支付宝H5接口的,并且已经在友价系统的后台填写好支付宝参数的用户,如果你没有申请过支付宝H5接口并配置的话,【点击查看友价源码如何申请支付宝新接口】。如果之前申请过支付宝H5接口,现在只需要开通电脑端的新支付接口的话,继续往下看就行:1、进支付宝开放平台,https://open.alipay.com/2、登录进去,找到之前H5接口的那个应用,如下图。点击对应的应用。3、点击添加能力,确保手机支付和网站支付都已经勾选
  • 友价教程
  • 来源:转载
  • 编辑:拼单网
  • 时间:2025-06-30 02:49
  • 阅读:294
联系我们
Q Q:1005618718
电话:17792038992
邮箱:1005618718@qq.com
时间:09:00 - 19:00
平台客服