Closed Sorien closed 11 years ago
you might be using symfony/http-kernel v2.2.0
and symfony/web-profiler-bundle dev-master
.
The statustext was introduced 1 month ago by this commit: https://github.com/symfony/symfony/commit/b0bca01ce3e49514be3635f9e125998e821ab436
@Sorien
as a workaround i checked out the master of the symfony/http-kernel:
cd vendor/symfony/http-kernel/Symfony/Component/HttpKernel
git checkout master
This is happening for me too. checkout master doesn't work, since that makes other things break. I solved it by manually adding the missing lines from that commit to src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php.
I tried a lot of Composer version combinations to get this to work, but nothing seems to work. Has anyone got it working, if so, what does your composer.json look like?
I've had the same issue here, with this composer.json :
"require": {
"php": ">=5.3.3",
"silex/silex": "1.0.*",
"silex/web-profiler": "1.*",
"symfony/browser-kit": "2.2.*",
"symfony/class-loader": "2.2.*",
"symfony/config": "2.2.*",
"symfony/console": "2.2.*",
"symfony/css-selector": "2.2.*",
"symfony/finder": "2.2.*",
"symfony/form": "2.2.*",
"symfony/monolog-bridge": "2.2.*",
"symfony/process": "2.2.*",
"symfony/security": "2.2.*",
"symfony/translation": "2.2.*",
"symfony/twig-bridge": "2.2.*",
"symfony/validator": "2.2.*",
"symfony/http-foundation": "2.2.*",
"symfony/routing": "2.2.*",
"symfony/http-kernel": "2.2.*",
"symfony/event-dispatcher": "2.2.*",
"symfony/dependency-injection": "2.2.*",
"twig/twig": "1.12.*",
"propel/propel1": "1.6.*",
"phing/phing": "2.4.*",
"twig/extensions": "1.0.*",
"propel/propel-service-provider": "dev-master",
"swiftmailer/swiftmailer": "*",
"grom/silex-service-provider": "dev-master"
},
I've tried the solution given by dominikzogg, but i just get another error, after :
Twig_Error_Runtime: Method "applicationname" for object "Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector" does not exist in "@WebProfiler/Collector/config.html.twig" at line 9
I've also tried different composer.json versions but no success
"symfony/security": "~2.3" solved this issue
Twig_Error_Runtime: Method "statustext" for object "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector" does not exist in "@WebProfiler/Collector/request.html.twig"