帝国cms模板架设的服务器php版本过高报错的解决方法集合

2023-12-01 0 140

1、admin/index.phpadmin/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 line13362、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.phpon line1336将刚刚的代码改成:$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/***构造函数** @accesspublic* @param** @return void*/function __construct($folder = '', $width = 145, $height = 20){$this->captcha($folder, $width, $height);}移动到:/***构造函数** @accesspublic* @paramstring$folder背景图片所在目录* @paraminteger $width图片宽度* @paraminteger $height图片高度* @returnbool*/前面5、admin\\includes\\cls_sql_dump.php/***类的构造函数** @accesspublic* @param** @return void*/function __construct(&$db, $max_size =0){$this->cls_sql_dump($db, $max_size);}移动到:/***类的构造函数** @accesspublic* @param** @return void*/前面Strict Standards: Redefining already defined constructor for class chinabank in/data/web/includes/modules/payment/chinabank.phpon line85Strict Standards: Redefining already defined constructor for class paypal_ec in/data/web/includes/modules/payment/paypal_ec.phpon line96Strict Standards: Redefining already defined constructor for class shenzhou in/data/web/includes/modules/payment/shenzhou.phpon line81Strict Standards: Redefining already defined constructor for class ips in/data/web/includes/modules/payment/ips.phpon line82Strict Standards: Redefining already defined constructor for class balance in/data/web/includes/modules/payment/balance.phpon line79Strict Standards: Redefining already defined constructor for class alipay in/data/web/includes/modules/payment/alipay.phpon line85Strict Standards: Redefining already defined constructor for class tenpay in/data/web/includes/modules/payment/tenpay.phpon line83Strict Standards: Redefining already defined constructor for class post in/data/web/includes/modules/payment/post.phpon line79Strict Standards: Redefining already defined constructor for class paypal in/data/web/includes/modules/payment/paypal.phpon line82Strict Standards: Redefining already defined constructor for class tenpayc2c in/data/web/includes/modules/payment/tenpayc2c.phpon line83Strict Standards: Redefining already defined constructor for class cappay in/data/web/includes/modules/payment/cappay.phpon line81Strict Standards: Redefining already defined constructor for class bank in/data/web/includes/modules/payment/bank.phpon line79Strict Standards: Redefining already defined constructor for class kuaiqian in/data/web/includes/modules/payment/kuaiqian.phpon line83Strict 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(){}前面。

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 帝国CMS教程 帝国cms模板架设的服务器php版本过高报错的解决方法集合 https://www.u-9.cn/jiaocheng/empirecms/14283.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务