-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.4] Stop-Watch-Listener is broken #660
Comments
Which symfony version are you using? can you tell me if the
`debug.stopwatch` is defined ?
…On 30 May 2018 at 09:31, Sebastian Blum ***@***.***> wrote:
Hello!
I got this stack trace with symfony 4 since upgrading to 2.4.
Error : Call to a member function start() on string
/vendor/jms/serializer-bundle/Serializer/StopwatchEventSubscriber.php:48
/vendor/jms/serializer/src/JMS/Serializer/EventDispatcher/
EventDispatcher.php:88
/vendor/jms/serializer/src/JMS/Serializer/GraphNavigator.php:172
/vendor/jms/serializer/src/JMS/Serializer/JsonSerializationVisitor.php:97
/vendor/jms/serializer/src/JMS/Serializer/GraphNavigator.php:137
/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:177
/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:96
/vendor/phpoption/phpoption/src/PhpOption/Some.php:89
/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:99
/vendor/friendsofsymfony/rest-bundle/Serializer/
JMSSerializerAdapter.php:60
/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:453
/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:416
/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:300
/vendor/friendsofsymfony/rest-bundle/Controller/ControllerTrait.php:116
/src/Controller/AccomplishmentController.php:209
/vendor/symfony/http-kernel/HttpKernel.php:149
/vendor/symfony/http-kernel/HttpKernel.php:66
/vendor/symfony/http-kernel/Kernel.php:190
/vendor/symfony/http-kernel/Client.php:68
/vendor/symfony/framework-bundle/Client.php:131
/vendor/symfony/browser-kit/Client.php:312
/tests/Controller/AccomplishmentControllerTest.php:176
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#660>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAvaJ3SJ4czkDskObywikD78fUQm2zNoks5t3kq4gaJpZM4USve_>
.
|
here the list of composer licenses
here the output of console
|
Do you mind finding how
`JMS\SerializerBundle\Serializer\StopwatchEventSubscriber` is instantiated
in the container?
the service definition is simple enough...
```xml
<service id="jms_serializer.stopwatch_subscriber"
class="JMS\SerializerBundle\Serializer\StopwatchEventSubscriber"
public="true">
<tag name="jms_serializer.event_subscriber" />
<argument type="service" id="debug.stopwatch" />
</service>
```
It looks `debug.stopwatch` is null.... that does not make sense, if
`debug.stopwatch`
gets removed, `jms_serializer.stopwatch_subscriber` should throw an error,
not silently use null
|
thank you very much @goetas - I will debug it and create a demo app to reproduce. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I got this stack trace with symfony 4 since upgrading to 2.4.
Error : Call to a member function start() on string
/vendor/jms/serializer-bundle/Serializer/StopwatchEventSubscriber.php:48
/vendor/jms/serializer/src/JMS/Serializer/EventDispatcher/EventDispatcher.php:88
/vendor/jms/serializer/src/JMS/Serializer/GraphNavigator.php:172
/vendor/jms/serializer/src/JMS/Serializer/JsonSerializationVisitor.php:97
/vendor/jms/serializer/src/JMS/Serializer/GraphNavigator.php:137
/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:177
/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:96
/vendor/phpoption/phpoption/src/PhpOption/Some.php:89
/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:99
/vendor/friendsofsymfony/rest-bundle/Serializer/JMSSerializerAdapter.php:60
/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:453
/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:416
/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:300
/vendor/friendsofsymfony/rest-bundle/Controller/ControllerTrait.php:116
/src/Controller/AccomplishmentController.php:209
/vendor/symfony/http-kernel/HttpKernel.php:149
/vendor/symfony/http-kernel/HttpKernel.php:66
/vendor/symfony/http-kernel/Kernel.php:190
/vendor/symfony/http-kernel/Client.php:68
/vendor/symfony/framework-bundle/Client.php:131
/vendor/symfony/browser-kit/Client.php:312
/tests/Controller/AccomplishmentControllerTest.php:176
The text was updated successfully, but these errors were encountered: