【发布时间】:2012-03-28 10:34:05
【问题描述】:
我有一个安卓应用程序,它调用一个网络服务器的功能(使用 cakephp)。它会返回类似“调用未定义函数 curl_init()”的错误。 我在谷歌上进行了一些搜索并尝试通过安装 php5-curl 包来修复该错误,但是在安装了这个包之后,网络服务器不再工作了。它返回
严格标准:不应静态调用非静态方法 App::core(),假设 $this 来自第 429 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
警告:第 622 行 /var/www/postmail/cake/libs/debugger.php 中的非法字符串偏移“文件”
警告:/var/www/postmail/cake/libs/debugger.php 第 622 行中的非法字符串偏移 'line'
严格标准:不应静态调用非静态方法 App::core(),假设 $this 来自第 429 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 398 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:非静态方法 Configure::read() 不应在 /var/www/postmail/cake/basics.php 第 213 行静态调用
严格标准:非静态方法 Configure::getInstance() 不应在 /var/www/postmail/cake/libs/configure.php 第 155 行静态调用
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 657 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 657 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 668 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 668 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 673 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文 警告(2):strtotime() [function.strtotime]:依赖系统的时区设置是不安全的。您需要使用 date.timezone 设置或 date_default_timezone_set() 函数。如果您使用了这些方法中的任何一种,但仍然收到此警告,您很可能拼错了时区标识符。我们现在选择时区“UTC”,但请设置 date.timezone 以选择您的时区。 [CORE/cake/libs/cache.php,第 570 行] 严格标准:不应静态调用非静态方法 Configure::read(),假设 $this 来自第 308 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Configure::getInstance(),假设 $this 来自第 155 行 /var/www/postmail/cake/libs/configure.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 CakeLog::write(),假设 $this 来自第 311 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 String::insert(),假设 $this 来自第 311 行 /var/www/postmail/cake/libs/debugger.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 CakeLog::getInstance(),假设 $this 来自 /var/www/postmail/cake/libs/cake_log.php 第 230 行的不兼容上下文
严格标准:不应静态调用非静态方法 App::import(),假设 $this 来自第 180 行 /var/www/postmail/cake/libs/cake_log.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 App::getInstance(),假设 $this 来自第 909 行 /var/www/postmail/cake/libs/configure.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Cache::read(),假设 $this 来自第 982 行 /var/www/postmail/cake/libs/configure.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Cache::getInstance(),假设 $this 来自第 330 行 /var/www/postmail/cake/libs/cache.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Configure::read(),假设 $this 来自第 505 行 /var/www/postmail/cake/libs/cache.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Configure::getInstance(),假设 $this 来自第 155 行 /var/www/postmail/cake/libs/configure.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Inflector::underscore(),假设 $this 来自第 672 行 /var/www/postmail/cake/libs/cache.php 中的不兼容上下文
严格标准:不应静态调用非静态方法 Inflector::getInstance(),假设 $this 来自第 512 行 /var/www/postmail/cake/libs/inflector.php 中的不兼容上下文
注意:试图在第 248 行的 /var/www/postmail/cake/libs/cache/file.php 中获取非对象的属性
致命错误:在第 248 行的 /var/www/postmail/cake/libs/cache/file.php 中的非对象上调用成员函数 cd()
有人知道怎么解决吗? 提前致谢。
【问题讨论】:
-
你用的是什么版本的PHP??我遇到了同样的问题,但这是 CakePHP 1.3.6 和 PHP 5.4 组合之间的问题。将 CakePHP 更新到最新版本后,问题已解决。
-
如果你想隐藏这些,请参阅stackoverflow.com/questions/1248952/…
-
我们应该升级到的最低稳定版本是多少?请问1.4还是类似的?我不想经历一路升级到 2.3 的头痛
标签: cakephp-1.2