日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > php >内容正文

php

ecshop模板支持php,[老杨原创]关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合...

發(fā)布時(shí)間:2023/12/9 php 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ecshop模板支持php,[老杨原创]关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合... 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1、admin/index.php

admin/sms_url.php

報(bào)錯(cuò):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();

報(bào)錯(cuò):Strict Standards: Only variables should be passed by reference in /data/web/includes/lib_main.php on line 1336

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

/**

*構(gòu)造函數(shù)

*

* @accesspublic

* @param

*

* @return void

*/

function __construct($folder = '', $width = 145, $height = 20)

{

$this->captcha($folder, $width, $height);

}

移動(dòng)到:

/**

*構(gòu)造函數(shù)

*

* @accesspublic

* @paramstring$folder背景圖片所在目錄

* @paraminteger $width圖片寬度

* @paraminteger $height圖片高度

* @returnbool

*/

前面

5、admin\includes\cls_sql_dump.php

/**

*類的構(gòu)造函數(shù)

*

* @accesspublic

* @param

*

* @return void

*/

function __construct(&$db, $max_size =0)

{

$this->cls_sql_dump($db, $max_size);

}

移動(dòng)到:

/**

*類的構(gòu)造函數(shù)

*

* @accesspublic

* @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

解決辦法:

將所有的構(gòu)造函數(shù)放到前面:

如alipay.php

function __construct()

{

$this->alipay();

}

放到

function alipay()

{

}

總結(jié)

以上是生活随笔為你收集整理的ecshop模板支持php,[老杨原创]关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。