我从一个不引用Debugger类的文件中获取标题中引用的错误.如果我手动导入调试器,则仍会显示错误.在结尾的错误中引用的行号结束文件中的类定义.没有任何内容跟}}(没有?>).我收到错误的文件并没有直接引用Debugger,因为我可以告诉(因为没有明确使用Debugger).
这是堆栈跟踪:
( ! ) Fatal error: Class 'Debugger' not found in /home/gregg/workspace/Fueled/dapprly/backend/app/Plugin/Facebook/Controller/Component/FapiComponent.PHP on line 107 Call Stack # Time Memory Function Location 1 0.0003 245664 {main}( ) ../index.PHP:0 2 0.0168 1657712 Dispatcher->dispatch( ) ../index.PHP:100 3 0.0237 2753568 Dispatcher->_invoke( ) ../Dispatcher.PHP:85 4 0.0237 2753768 Controller->constructClasses( ) ../Dispatcher.PHP:99 5 0.0237 2755712 ComponentCollection->init( ) ../Controller.PHP:638 6 0.0255 3057112 ComponentCollection->load( ) ../ComponentCollection.PHP:52 7 0.0255 3057600 class_exists ( ) ../ComponentCollection.PHP:99 8 0.0255 3057896 App::load( ) ../ComponentCollection.PHP:0 9 0.0257 3091416 ErrorHandler::handleError( ) ../ComponentCollection.PHP:551
这是第107行的背景:
class FapiComponent extends Component { // -- snip -- // public function method() { $url = urlencode('http://url'); $param = array( 'access_token' => '##','object' => 'user','fields' => 'Feed','callback_url' => $url); $id = $this->facebook->getAppId(); $subs = $this->facebook->api('/' . $id . '/subscriptions','POST',$param); } } // <-- line 107 ... nothing after this