Ecshop 安装时,环境检测有问题

安装时,在第二步检查环境出现“Strictstandards:Non-staticmethodcls_image::gd_version()shouldnotbecall... 安装时,在第二步检查环境出现“ Strict standards: Non-static method cls_image::gd_version() should not be called statically in C:\wamp\www\ec\install\includes\lib_installer.php on line 31”

我的Ecshop版本是 2.7.3 ;PHP 的版本是 5.4.3

有网友说是 GD库未打开,但我查看了 php.ini,里面已经是打开的了。我是菜鸟来的,麻烦各位帮忙解疑下,多谢了!
展开
 我来答
咸味黑海7f
2013-02-16 · TA获得超过4523个赞
知道大有可为答主
回答量:8339
采纳率:57%
帮助的人:2549万
展开全部
PHP Strict
Standards: Non-static method cls_image::gd_version() should not be
called statically in E:\Webs\ecshop\install\includes\lib_installer.php
on line 31 2012-03-09 14:29:50| 分类:ECShop|字号 订阅
php.ini中有如下设置:
error_reporting = E_ALL | E_STRICT

这是说,显示那些不符合编码规范的警告(coding standards warnings)。
Joomla其实是建议取消error的输出,如果出于调试需要,应改为
error_reporting = E_ALL & ~E_NOTICE
问题得到解决。
下面是错误输出配置的原文:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Error handling and logging ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This directive informs PHP of which errors, warnings and notices you would like; it to take action for. The recommended way of setting values for this; directive is through the use of the error level constants and bitwise; operators. The error level constants are below here for convenience as well as; some common settings and their meanings.; By default, PHP is set to take action on all errors, notices and warnings EXCEPT; those related to E_NOTICE and E_STRICT, which together cover best practices and; recommended coding standards in PHP. For performance reasons, this is the; recommend error reporting setting. Your production server shouldn't be wasting; resources complaining about best practices and coding standards. That's what; development servers and development settings are for.; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This; means it pretty much reports everything which is exactly what you want during; development and early testing.;; Error Level Constants:; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0); E_ERROR - fatal run-time errors; E_RECOVERABLE_ERROR - almost fatal run-time errors; E_WARNING - run-time warnings (non-fatal errors); E_PARSE - compile-time parse errors; E_NOTICE - run-time notices (these are warnings which often result; from a bug in your code, but it's possible that it was; intentional (e.g., using an uninitialized variable and; relying on the fact it's automatically initialized to an; empty string); E_STRICT - run-time notices, enable to have PHP suggest changes; to your code which will ensure the best interoperability; and forward compatibility of your code; E_CORE_ERROR - fatal errors that occur during PHP's initial startup; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's; initial startup; E_COMPILE_ERROR - fatal compile-time errors; E_COMPILE_WARNING - compile-time warnings (non-fatal errors); E_USER_ERROR - user-generated error message; E_USER_WARNING - user-generated warning message; E_USER_NOTICE - user-generated notice message; E_DEPRECATED - warn about code that will not work in future versions; of PHP; E_USER_DEPRECATED - user-generated deprecation warnings;; Common Values:; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.); E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices); E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors); E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.); Default Value: E_ALL & ~E_NOTICE ------默认; Development Value: E_ALL | E_STRICT ------开发用; Production Value: E_ALL & ~E_DEPRECATED -- 正式发布用; http://php.net/error-reporting;error_reporting = E_ALL | E_STRICT

环境:Windows 7 、 php5.4问题未解决!!!郁闷
追问
你这文章的源地址是多少?
善思光电科技
2023-08-29 广告
X-ray无损检测是一种利用X射线源发射X射线,通过X射线探测器检测物体的内部结构,以检测物体的外部形状和内部结构。它可以在医学、工业和其他领域应用,用于检测物体的形状,内部构造,或者检测物体内部的缺陷。X-ray无损检测不仅可以对不可见焊... 点击进入详情页
本回答由善思光电科技提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式