strict standards php报错,Bigcommerce:PHP版本升级错误解决办法_PHP教程
报错内容一:Strict Standards: Declaration of....should be
compatible with .....
Strict Standards: Declaration of ISC_CHECKOUT_PROVIDER::GetPropertiesSheet() should be compatible with ISC_MODULE::GetPropertiesSheet($tab_id, $idGlobal, $jsGlobal, $jsSelectedFunction, $customVars = Array, $moduleId
= NULL) in /home/ipcamera/public_html/includes/classes/class.checkoutprovider.php on line892
报错的意思:子类重写的父类的函数,子类函数里面的参数与父类的参数不对应
查看文件class.checkoutprovider.php报错的892行,GetPropertiesSheet()函数如下:
public function GetPropertiesSheet($tabId, $doHeaderRows=true, $moduleId=''){
.....
}
解决方法:把GetPropertiesSheet()函数的参数改为父类中的参数,其实直接Copy报错提示的信息就可以啦~
更改后:
public function
GetPropertiesSheet($tabId, $idGlobal, $jsGlobal, $jsSelectedFunction, $customVars = Array(), $moduleId = NULL)
{
.....
}
报错内容二:Strict Standards: Non-static method....should
not be called statically in .....
Strict Standards: Non-static method ISC_REDIRECTS::generateRedirectUrl() should not be called statically in/home/ipcamera/public_html/lib/class.redirects.php on line30
报错的意思:generateRedirectUrl()函数是非静态声明,他不可以被静态(static)声明的方法调用
查看文件class.redirects.php报错的30行,GetPropertiesSheet()函数如下:
publicstatic function checkRedirect($urlPath)
{
// @codeCoverageIgnoreStart
$newUrl = self::generateRedirectUrl($urlPath);
.....
}
public function generateRedirectUrl($urlPath)
{
.....
}
解决方法:把generateRedirectUrl()函数改为静态声明
更改后:
public static function generateRedirectUrl($urlPath)
{
.....
}
报错内容三:Strict Standards: mktime(): You should be using the time() function instead in.....
Strict Standards: mktime(): You should be using the time() function instead in/home/ipcamera/public_html/lib/general.php on line
3590
报错的意思:mktime()方法不带参数被调用时,会被抛出一个报错提示
查看文件general.php报错的3590行,如下:
$args = func_get_args();
$result = call_user_func_array("mktime", $args);
解决方法:mktime()方法改为time()方法
更改后:
$args = func_get_args();
$result = call_user_func_array("time", $args);
http://www.bkjia.com/PHPjc/621622.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/621622.htmlTechArticle报错内容一: Strict Standards : Declaration of....should be compatible with ..... Strict Standards : Declaration of ISC_CHECKOUT_PROVIDER::GetPropertiesSheet() should be comp...
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉
本文系统来源:php中文网
strict standards php报错,Bigcommerce:PHP版本升级错误解决办法_PHP教程相关推荐
- oracle报错1455,oracle 1455 错误解决办法
oracle 1455 错误解决办法 oracle 1455 错误解决办法 ORA-01455: 转换列溢出整数数据类型 在用 expuser/pwd@oraclesidfile=e:\abc530. ...
- 计算机开机故障报错,笔记本电脑开机报错故障的原因及解决办法
笔记本电脑开机报错故障是指笔记本电脑开机自检时或启动操作系统前停止启动,在显示屏 出现一些错误提示的故障. 笔记本电脑开机报错故障的原因及解决办法 造成此类故障的原因一般是笔记本电脑在启动自检时,检测 ...
- 微信老是不能登录服务器错误,微信登录失败报错“4-100”的原因及解决办法
微信登录失败报错"4-100"怎么办?微信是目前为止大家最喜欢的社交软件了,如果微信登录不了,整个人都不好了.最近就有用户遇到手机微信登录不了的情况,错误代码为"4-10 ...
- oracle pls 00905,【案例】Oracle报错PLS-00714 PLS-00951原因和解决办法笔记
[案例]Oracle报错PLS-00714 PLS-00951原因和解决办法笔记 时间:2016-11-14 11:07 来源:Oracle研究中心 作者:代某人 点击: 次 天萃荷净 P ...
- Mac 升级后git pull 报错fatal: Authentication failed for 解决办法
转载:Mac 升级后git pl 报错fatal: Authentication failed for 解决办法 - 简书 git pull,,,报错如下: cat .git/config git r ...
- 0x80070422报错、0x6D9报错,无法开启防火墙解决办法(方法版)
0x80070422报错.0x6D9报错,无法开启防火墙解决办法 一.现象 现象1-报错0x80070422 现象2-报错0x6D9 二.解决方法 1.打开服务 2.打开防火墙服务 一.现象 现象1- ...
- ORCAL数据库远程连接是报:12170连接超时错误解决办法
ORCAL数据库远程连接是报:12170连接超时错误解决办法 问题: 今天在进行数据库连接时发现报了12170错误,通过查找资料原来是服务器防火墙的问题 解决方法: 因为我是把数据库部署到虚拟机上的, ...
- Windows10 远程桌面连接失败,报CredSSP加密oracle修正错误解决办法
[Windows]Win10家庭版启用组策略gpedit.msc https://blog.csdn.net/u013642500/article/details/80138799 Windows1 ...
- Spring Boot连接MySQL报错“Internal Server Error”的解决办法
报错信息如下: {timestamp: "2018-06-14T03:48:23.436+0000", status: 500, error: "Internal Ser ...
最新文章
- Prepare for Android
- VC 中字符串比较和查找
- Golang 新手可能会踩的 50 个坑
- javaweb学习总结(五)——Servlet开发(一)
- web百度地图 地址解析获取百度地理坐标
- 解决Qt5 Creator无法切换输入法(fcitx),Ubuntu中不能使用搜狗输入法录入汉字问题...
- Php点击更换封面,JavaScript_js实现点击图片改变页面背景图的方法,本文实例讲述了js实现点击图 - phpStudy...
- 小甲鱼 OllyDbg 教程系列 (三) :PJ 软件功能限制
- 2010-04-01 4over6tunnel配置——折腾了一天
- python 其他语言_谈谈Python和其他语言的区别
- HTML的定义和特点,【HTML】复习笔记(一)初识HTML
- 表单从gb2312的页面提交到utf-8页面,或者表单从utf-8的页面提交到gb2312页面的解决办法...
- java 不变类_Immutable-不变模式与不变类-一版
- windows文件搜索工具 Everything
- C++Builder实现鼠标钩子
- Ubuntu双显卡切换方法总结
- kinect v2 相机标定
- igraph java_igraph从邻接列表生成邻接矩阵
- 【代码质量】-阿里巴巴java开发手册(代码质量提升神器)学习笔记
- git配置管理生成多个ssh的key