首頁  >  文章  >  後端開發  >  用过zphp与swoole结合的同学进来帮我解答一下疑惑

用过zphp与swoole结合的同学进来帮我解答一下疑惑

WBOY
WBOY原創
2016-06-06 20:28:121582瀏覽

启动的时候出现了以下错误异常,有同学知道是什么问题吗?

PHP Fatal error: Call to a member function getParams() on null in /Users/hundredlee/ChatRoom/apps/ctrl/main/main.php on line 29

Fatal error: Call to a member function getParams() on null in /Users/hundredlee/ChatRoom/apps/ctrl/main/main.php on line 29
{"className":"fatal","message":"Call to a member function getParams() on null","code":-1,"file":"\/Users\/hundredlee\/ChatRoom\/apps\/ctrl\/main\/main.php","line":29,"userAgent":"","trace":[{"file":"\/Users\/hundredlee\/ChatRoom\/zphp\/ZPHP\/ZPHP.php","line":113,"function":"fatal","args":["array (\n 'type' => 1,\n 'message' => 'Call to a member function getParams() on null',\n 'file' => '\/Users\/hundredlee\/ChatRoom\/apps\/ctrl\/main\/main.php',\n 'line' => 29,\n)"],"class":"ZPHP\\Common\\Formater","type":"::"},{"file":"null","line":"null","function":"fatalHandler","args":[],"class":"ZPHP\\ZPHP","type":"::"}]}[2015-09-16 15:35:46 *7527.0] WARN zm_deactivate_swoole: Fatal error: Call to a member function getParams() on null in /Users/hundredlee/ChatRoom/apps/ctrl/main/main.php on line 29.

回复内容:

启动的时候出现了以下错误异常,有同学知道是什么问题吗?

PHP Fatal error: Call to a member function getParams() on null in /Users/hundredlee/ChatRoom/apps/ctrl/main/main.php on line 29

Fatal error: Call to a member function getParams() on null in /Users/hundredlee/ChatRoom/apps/ctrl/main/main.php on line 29
{"className":"fatal","message":"Call to a member function getParams() on null","code":-1,"file":"\/Users\/hundredlee\/ChatRoom\/apps\/ctrl\/main\/main.php","line":29,"userAgent":"","trace":[{"file":"\/Users\/hundredlee\/ChatRoom\/zphp\/ZPHP\/ZPHP.php","line":113,"function":"fatal","args":["array (\n 'type' => 1,\n 'message' => 'Call to a member function getParams() on null',\n 'file' => '\/Users\/hundredlee\/ChatRoom\/apps\/ctrl\/main\/main.php',\n 'line' => 29,\n)"],"class":"ZPHP\\Common\\Formater","type":"::"},{"file":"null","line":"null","function":"fatalHandler","args":[],"class":"ZPHP\\ZPHP","type":"::"}]}[2015-09-16 15:35:46 *7527.0] WARN zm_deactivate_swoole: Fatal error: Call to a member function getParams() on null in /Users/hundredlee/ChatRoom/apps/ctrl/main/main.php on line 29.

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn