ekino / EkinoWordpressBundle

Integrate Symfony with WordPress and WordPress with Symfony
GNU General Public License v2.0
312 stars 79 forks source link

l18n Subscriber error after composer update #142

Open christiancannata opened 4 years ago

christiancannata commented 4 years ago

I'm getting this error after composer update:

Sf version from composer: 3.2.*

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function get() on null in /var/www/yellowa/symfony/vendor/ekino/wordpress-bundle/Event/Subscriber/I18n/I18nSubscriber.php:53 Stack trace: #0 [internal function]: Ekino\WordpressBundle\Event\Subscriber\I18n\I18nSubscriber->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher)) #1 /var/www/yellowa/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php(106): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher)) #2 [internal function]: Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher)) #3 /var/www/yellowa/symfony/ in /var/www/yellowa/symfony/vendor/ekino/wordpress-bundle/Event/Subscriber/I18n/I18nSubscriber.php on line 53