About Ecshop template set up the server PHP version too high error resolution

Source: Internet
Author: User

1, admin/index.php

admin/sms_url.php

Ecshop templates

Error: Strict standards:mktime (): You should is using the time () function instead in/data/web/ledetaoadmin/sms_url.php on Li NE 31

$auth = Mktime ();

To be replaced by:

$auth = time ();

Error: 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));

To be replaced by:

$ext = end ();

$ar = Explode ('. ', $tmp);

$ext = End ($ar);

Continue error ecshop template

Warning:end () expects parameter 1 to is array, null given in/data/web/includes/lib_main.php on line 1336

Change the code you just made to:

$arr =array ();

$ext = End ($arr);

$ar = Explode ('. ', $tmp);

$ext = End ($ar);

3, cls_template.php

$tag _sel = Array_shift (Explode (", $tag));

To be replaced by: ecshop template

$tag _arr = Explode (", $tag);

$tag _sel = Array_shift ($tag _arr);

4, cls_captcha.php

/**

* Constructor function

*

* @access Public

* @param

*

* @return void

*/

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

{

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

}

Move to:

/**

* Constructor function

*

* @access Public

* @param string $folder The directory where the background image is located

* @param integer $width picture width

* @param integer $height image Height

* @return BOOL

*/

Front

ecshop Templates

5, admin\includes\cls_sql_dump.php

/**

* Constructors for classes

*

* @access Public

* @param

*

* @return void

*/

function __construct (& $db, $max _size =0)

{

$this->cls_sql_dump ($db, $max _size);

}

Move to:

/**

* Constructors for classes

*

* @access Public

* @param

*

* @return void

*/

Front

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 Li NE 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 Li NE 82

Workaround:

Put all the constructors in front:

such as alipay.php

Will

function __construct ()

{

$this->alipay ();

}

Put in

function Alipay ()

{

}

Front.

About Ecshop template set up the server PHP version too high error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.