在CakePHP严格的标准错误? [英] Strict Standards Error in CakePhp?

查看:159
本文介绍了在CakePHP严格的标准错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用XAMPP V3.1.0 3.1.0和CakePHP 1.2.10,但我有这两个错误。

i am using xampp v3.1.0 3.1.0 and cakephp 1.2.10 but I've got these two errors.

严格的标准:重新定义为E级的对象已定义的构造函数:\\ XAMPP \\ htdocs中\\项目名称\\蛋糕\\库\\ object.php在线62

Strict Standards: Redefining already defined constructor for class Object in E:\xampp\htdocs\projectname\cake\libs\object.php on line 62

严格的标准:非静态方法配置::的getInstance()不应该在电子商务静态调用:\\ XAMPP \\ htdocs中\\项目名称\\第46行的蛋糕\\ bootstrap.php中

Strict Standards: Non-static method Configure::getInstance() should not be called statically in E:\xampp\htdocs\projectname\cake\bootstrap.php on line 46

在此先感谢

推荐答案

似乎老CakePHP的不PHP的新版本很好的发挥。请看看这里:的http://我。 justrealized.com/2009/cakephp-php-de$p$pcated-error-warning/

Seems that old CakePHP doesn't play very well with newer versions of PHP. Please have a look here: http://i.justrealized.com/2009/cakephp-php-deprecated-error-warning/

请注意,CakePHP的1.2 pcated德$ P $。我们建议至少使用1.3如果你想坚持的1.x版本,在目前还没有1.2的主要区别。

Be aware that CakePHP 1.2 is deprecated. It's recommended to use at least 1.3 if you want to stick to 1.x version, as there aren't major differences with 1.2.

但是,如果你仍然坚持,你可以降级PHP 5.2或更低兼容

But if you still insist, you can downgrade PHP to 5.2 or lower to be compatible

这篇关于在CakePHP严格的标准错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆