欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-04-09 23:49:19
...
启动的时候出现了以下错误异常,有同学知道是什么问题吗?

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.

相关标签: php