问题安装蛋糕php [英] Problem installing cake php

查看:140
本文介绍了问题安装蛋糕php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的电脑上安装了wampserver。我解压缩的蛋糕php安装文件在wampserver的www文件夹。现在,当我尝试运行 - http:// localhost / cakephp,我得到一个完整的错误列表与蛋糕php入门页面。以下是一些错误:

 
不推荐:通过引用分配新的返回值不推荐在
中D:\ wamp \www\cakephp\cake\libs\inflector.php on line 131

不推荐:通过引用分配new的返回值在
中被弃用D:\ wamp \www\cakephp\cake\libs\configure.php on line 136

不推荐:通过引用分配new的返回值在
中被弃用D:\ wamp \www\cakephp\cake\libs\configure.php on line 226

不推荐:通过引用分配新的返回值在
中已弃用D:\ wamp \www\cakephp\cake\libs\configure.php on line 906

如何解决这个问题?我有类似的错误codeignite。

解决方案

您正在运行哪个版本的PHP?



为了得到E_DEPRECATED错误,它必须是PHP 5.3(这是最近的) - 我认为WampServer的最后一个版本使用这一个。



查看:





很多新的东西,你可能会遇到某种麻烦(你真的做了)与PHP 5.3 ....特别是如果你使用的软件与它不兼容。



您可能想降级到以前版本的WampServer ...





或者您可以尝试将 error_reporting level(另请参阅 error_reporting ),以获取这些警告。



但是如果你得到那些,你也可能会遇到其他问题...

实际上,在快速搜索CakePHP的Trac后,我发现至少包括:





这些都没有解决...所以看起来CakePHP真的不是准备好PHP 5.3 ... (这可能不是这种情况下唯一的框架btw - Zend Framework v 1.9在几天前就是第一个正式支持PHP 5.3的版本)



如果你想使用CakePHP,你可能需要使用PHP 5.2.x(如5.2.9或5.2.10)。


您实际上不是唯一的 ...太糟糕了,因为在PHP 5.3 ...中有很漂亮的东西...


I have installed wampserver on my pc. I unzipped the cake php installation files in the "www" folder of wampserver. Now, when I try to run- "http://localhost/cakephp", I get a whole list of errors along with the cake php getting started page. Here are some of the errors:

Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\inflector.php on line 131

Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\configure.php on line 136

Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\configure.php on line 226

Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\configure.php on line 906

How do I fix this? I got similar errors for codeignite.

解决方案

Which version of PHP are you running ?

To get E_DEPRECATED errors, it must be PHP 5.3 (which is quite recent) -- and I think the last version of WampServer uses this one.

See :

As it's pretty recent and brought lots of new stuff, you might run into some kind of troubels (you actually did) with PHP 5.3.... Especially if the software you used is not compatible with it yet.

You might want to downgrade to the previous version of WampServer...


Or you could try lowering the error_reporting level (see also error_reporting), to not get those warnings.

But if you are getting those, you'll probably run into other problems as well...
Actually, after a rapid search into CakePHP's Trac, I found at least those :

None of those is solved... So it seems CakePHP is really not ready for PHP 5.3... (It's probably not the only Framework in this situation btw -- Zend Framework v 1.9 which went out couple of days ago is the first version that officially supports PHP 5.3, for instance)

If you want to work with CakePHP, so, you'll probably have to use PHP 5.2.x (like 5.2.9 or 5.2.10).


You're actually not the only one in your situation, it seems... Too bad, as there are pretty nice things in PHP 5.3...

这篇关于问题安装蛋糕php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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