您现在的位置是:首页 > cms教程 > Ecshop商城教程Ecshop商城教程

ecshop模板架设服务器php版本过高报错怎么办

迎梦2025-02-10Ecshop商城教程已有人查阅

导读1、admin/index.phpadmin/sms_url.phpECSHOP模板报错:Strict Standards: mktime(): You should be using the time() function instead in /data/web/ledetaoadmin/sms_ur

1、admin/index.php
admin/sms_url.php
ECSHOP模板
报错: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 line 1336
2、lib_main.php
$ext = end(explode('.', $tmp));
替换为:
$ext = end();
$ar = explode('.', $tmp);
$ext = end($ar);
继续报错ECSHOP模板
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));
替换为:ECSHOP模板
$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
*/
前面
ECSHOP模板
5、admin\includes\cls_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()
{
}
前面。

本文标签:

很赞哦! ()

相关源码

  • WordPress个人博客主题 - wp-Concise-v1.0免费下载wp-Concise-v1.0是一款专为个人博客设计的简约风格主题,采用全宽排版设计理念,注重内容呈现效果。该模板适用于个人随笔、技术分享、生活记录等博客场景,帮助用户打造专业的内容展示空间。查看源码
  • (自适应响应式)门窗定制门业带视频功能pbootcms模板下载本模板采用PbootCMS内核开发,为门窗制造、定制安装企业打造,通过可视化后台管理系统快速构建品牌官网。自适应设计确保在手机、平板、电脑等设备上均能获得优质浏览体验查看源码
  • (PC+WAP)聚氨酯粉末涂料防腐耐用材料粘合剂网站源码下载为化工涂料企业设计的展示系统,集成产品技术参数库、颜色样板展示器和配方查询模块。支持粉末涂料、环氧树脂等多类产品分类展示查看源码
  • 响应式高端家居家具装修类pbootcms模板网站源码家居装修、空间设计企业打造的营销型网站解决方案,基于PbootCMS内核深度开发。采用前沿响应式架构,适配手机端与PC端浏览体验查看源码
  • (PC+WAP)绿色资源回收新能源环保设备pbootcms源码下载基于PbootCMS系统深度开发的环保行业模板,特别适配资源回收设备、新能源技术、环境治理装备等企业的线上展示需求。集成产品库、解决方案、环保案例等专业模块,助力企业高效传递绿色价值。查看源码
  • (PC+WAP)压缩机离心风机红色机械设备营销型网站pbootcms模板基于PbootCMS开发的压缩机/离心风机专用模板,助力机械设备企业构建高效营销平台;模板可编辑压缩机参数表、风机性能曲线等专业展示模块查看源码
分享笔记 (共有 篇笔记)
验证码:

本栏推荐