【问题标题】:Executing a shell in CakePHP在 CakePHP 中执行 shell
【发布时间】:2013-05-18 21:25:10
【问题描述】:

我正在使用 php 5.2.6 和 Cakephp 2 在 Fedora 8 32 位服务器上执行 shell。我收到以下错误:

PHP Notice:  Undefined index:  tag in path/lib/Cake/Console/ConsoleOutput.php on line 202
PHP Notice:  Undefined index:  emergency in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  alert in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  critical in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  error in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  warning in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  info in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  debug in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  success in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  comment in path/lib/Cake/Console/ConsoleOutput.php on line 217
PHP Notice:  Undefined index:  question in path/lib/Cake/Console/ConsoleOutput.php on line 217

等等。

当我在本地尝试时效果很好。有什么想法吗?

【问题讨论】:

  • 如果我读了一本书并尝试打开第 123456 页,我找不到它!有任何想法吗?换句话说;请出示您的代码
  • 如果我转到安装 cake 的路径并输入“cake”,所有这些错误都会出现。我没有从 Cake 修改任何代码。
  • 您应该使用./Console/cakeapp 目录启动它。
  • 其实我就是这么做的

标签: php shell cakephp console cakephp-2.0


【解决方案1】:

这可能是因为您使用的是旧的 PHP 版本。 CakePHP 2 至少需要 PHP 5.2.8,请参阅http://book.cakephp.org/2.0/en/installation.html#requirements

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-02
    • 1970-01-01
    • 2019-11-17
    • 1970-01-01
    • 1970-01-01
    • 2017-03-27
    相关资源
    最近更新 更多