您现在的位置是:首页 > 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()
{
}
前面。

本文标签:

很赞哦! ()

相关源码

  • (自适应)包装机贴标机设备网站源码免费下载基于PbootCMS内核开发的响应式企业模板,为包装机械、贴标设备等工业领域打造,通过数字化展示提升企业专业形象。查看源码
  • (自适应)蓄电池能源智能数码科技产品pbootcms模板源码下载本款基于PbootCMS开发的网站模板为蓄电池及能源科技企业设计,特别适合锂电池、储能系统、新能源电池等产品的展示与推广。查看源码
  • Wordpress博客新闻主题在线商店平台betheme 21.5.6版BeTheme是一款功能丰富的WordPress主题模板,专注于为各行业提供网站建设解决方案。该模板支持WooCommerce电子商务功能,能够快速搭建在线商店平台,同时适用于博客、新闻资讯类网站建设。自2014年发布以来,该模板已经获得大量用户的使用验证。查看源码
  • 帝国cms题库问答学习平台模板知识付费网站源码+数据采集为教育机构、培训平台及在线学习场景设计,提供完整的题库管理与问答服务解决方案。支持多种题型展示与答案查询,满足不同层次的学习需求。查看源码
  • (PC+WAP)绿色资源回收新能源环保设备pbootcms源码下载基于PbootCMS系统深度开发的环保行业模板,特别适配资源回收设备、新能源技术、环境治理装备等企业的线上展示需求。集成产品库、解决方案、环保案例等专业模块,助力企业高效传递绿色价值。查看源码
  • 帝国CMS7.5漫画网站模板带手机端源码免费下载本模板为漫画内容平台设计开发,采用帝国CMS7.5内核构建,深度优化漫画作品展示结构与章节管理模式。前端采用响应式布局设计,适配各类漫画阅读场景,提供作品分类、连载追踪、热度排行等垂直领域功能模块。查看源码
分享笔记 (共有 篇笔记)
验证码:

本栏推荐