Closed Metabor closed 9 years ago
You are not profiling data ? Not sure to understand.
$this->data is hydrated here https://github.com/Metabor/XhprofBundle/blob/patch-1/DataCollector/XhprofCollector.php#L125-L129
The link is not working. I will explain the problem, that is solved with this pull request. We used the Bundle for a long time with request_query_argument. After migrating to Symfony 2.6 we got an error when NOT setting the get parameter, because of the not existing "index" key in $data. It seems that the toolbar in Symfony 2.6 is generated in an other way than before. This fix solves the problem that "index" key is not set, when the request don't activate the profiler and also works when it is activated (because then it is overwritten).
Sorry, bad copy/paste for link.
IMO there is something else to do with Symfony 2.6. At least you should define each keys of $this->data
https://github.com/Metabor/XhprofBundle/blob/patch-1/DataCollector/XhprofCollector.php#L125-L129
It seems in Symfony 2.6, profiler still try to use method of collectors while it should not. So may be the listener is executed while it should not be and it's a bigger problem.
They added this ajax call thing to the toolbar. Maybe this has side effects on your Bundle.
Maybe take my pull request as a quick fix and resolve the real problem later. ;)
Ok. Thanks.
When using request_query_argument but not setting the get parameter in the URL there was a "Undefined index: xhprof" error