Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Twig_Error_Runtime: Key "termsOfUse" does not exist as the array is empty #64

Closed
rallek opened this issue Dec 3, 2016 · 0 comments
Closed
Labels
Milestone

Comments

@rallek
Copy link

rallek commented Dec 3, 2016

creating a new user is showing this issue:
see also zikula/core#3253

[1] Twig_Error_Runtime: Key "termsOfUse" does not exist as the array is empty in "@ZikulaLegalModule/Include/acceptPolicies.html.twig" at line 13.
    at n/a
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 552

    at Twig_Template->getAttribute(array(), 'termsOfUse', array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/app/cache/prod/twig/6f/6f1d018c2f2ac52cd8b7516c9af6871f233936feb7a871b59ad35997681248ef.php line 55

    at __TwigTemplate_d1925e03647dc05dfd520deef71209d3030f2f0fe5c98ebe1f140766418a79de->doDisplay(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 428

    at Twig_Template->displayWithErrorHandling(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 396

    at Twig_Template->display(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 407

    at Twig_Template->render(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Extension/Core.php line 1396

    at twig_include(object(Twig_Environment), array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), '@ZikulaLegalModule/Include/acceptPolicies.html.twig')
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/app/cache/prod/twig/47/47fcc8ba9ae8db006b51087c74c3fba3d4eb7c0937a1a6317b4eb6758c8353cf.php line 34

    at __TwigTemplate_1404b4d5f1e99317ed5b300bd8b3f06fddf0e21f10a1271a0c5adfcbaee934c3->doDisplay(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 428

    at Twig_Template->displayWithErrorHandling(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA==', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 396

    at Twig_Template->display(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA=='))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 407

    at Twig_Template->render(array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA=='))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Environment.php line 362

    at Twig_Environment->render('@ZikulaLegalModule/UsersUI/editRegistration.html.twig', array('activePolicies' => array('termsOfUse' => '1', 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'originalAcceptedPolicies' => array(), 'acceptedPolicies' => array('termsOfUse' => false, 'privacyPolicy' => false, 'agePolicy' => false, 'cancellationRightPolicy' => false, 'tradeConditions' => false), 'fieldErrors' => array(), 'csrfToken' => 'NTg0MzAwMGFkMWU1NTguNTUyOTUzNTE6MzQ3ZjkzNWY1NGY3YjQ4OGMyOGNlN2YwNzE1YmMzODI6MTQ4MDc4NTkzMA=='))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/modules/zikula/legal-module/Listener/UsersUiListener.php line 274

    at Zikula\LegalModule\Listener\UsersUiListener->uiEdit(object(GenericEvent), 'module.users.ui.form_edit.new_registration', object(TraceableEventDispatcher))
        in  line 

    at call_user_func(array(object(UsersUiListener), 'uiEdit'), object(GenericEvent), 'module.users.ui.form_edit.new_registration', object(TraceableEventDispatcher))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php line 61

    at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GenericEvent), 'module.users.ui.form_edit.new_registration', object(Zikula_EventManager))
        in  line 

    at call_user_func(object(WrappedListener), object(GenericEvent), 'module.users.ui.form_edit.new_registration', object(Zikula_EventManager))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 184

    at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener)), 'module.users.ui.form_edit.new_registration', object(GenericEvent))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 46

    at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('module.users.ui.form_edit.new_registration', object(GenericEvent), null)
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/lib/legacy/Zikula/EventManager.php line 95

    at Zikula_EventManager->dispatch('module.users.ui.form_edit.new_registration', object(GenericEvent))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php line 140

    at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('module.users.ui.form_edit.new_registration', object(GenericEvent))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/lib/Zikula/Bundle/CoreBundle/Twig/Extension/SimpleFunction/DispatchEventSimpleFunction.php line 41

    at Zikula\Bundle\CoreBundle\Twig\Extension\SimpleFunction\DispatchEventSimpleFunction->dispatchEvent('module.users.ui.form_edit.new_registration')
        in  line 

    at call_user_func_array(array(object(DispatchEventSimpleFunction), 'dispatchEvent'), array('module.users.ui.form_edit.new_registration'))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/app/cache/prod/twig/a6/a64b9cc349f30b5181e1cfc30fd26e825adf7800c6b3f616931cfcc545d20634.php line 128

    at __TwigTemplate_a1d17e2d3a4433116ae209999791066a03c6a0dfe795281ecae2e414fad10220->doDisplay(array('form' => object(FormView), 'domain' => 'zikula', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 428

    at Twig_Template->displayWithErrorHandling(array('form' => object(FormView), 'domain' => 'zikula', 'app' => object(AppVariable), 'pagevars' => object(ParameterBag), 'themevars' => object(ParameterBag), 'currentUser' => object(CurrentUserApi), 'localeApi' => object(LocaleApi)), array())
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 396

    at Twig_Template->display(array('form' => object(FormView), 'domain' => 'zikula'))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/twig/twig/lib/Twig/Template.php line 407

    at Twig_Template->render(array('form' => object(FormView), 'domain' => 'zikula'))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/system/ThemeModule/Bridge/Twig/EventEnabledTwigEngine.php line 49

    at Zikula\ThemeModule\Bridge\Twig\EventEnabledTwigEngine->render('@ZikulaZAuthModule/Authentication/register.html.twig', array('form' => object(FormView), 'domain' => 'zikula'))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 97

    at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('@ZikulaZAuthModule/Authentication/register.html.twig', array('form' => object(FormView), 'domain' => 'zikula'), null)
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 185

    at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('@ZikulaZAuthModule/Authentication/register.html.twig', array('form' => object(FormView), 'domain' => 'zikula'), null)
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/lib/Zikula/Core/Controller/AbstractController.php line 99

    at Zikula\Core\Controller\AbstractController->render('@ZikulaZAuthModule/Authentication/register.html.twig', array('form' => object(FormView)))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/system/UsersModule/Controller/RegistrationController.php line 178

    at Zikula\UsersModule\Controller\RegistrationController->registerAction(object(Zikula_Request_Http))
        in  line 

    at call_user_func_array(array(object(RegistrationController), 'registerAction'), array(object(Zikula_Request_Http)))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 144

    at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Zikula_Request_Http), '1')
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 64

    at Symfony\Component\HttpKernel\HttpKernel->handle(object(Zikula_Request_Http), '1', true)
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69

    at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Zikula_Request_Http), '1', true)
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185

    at Symfony\Component\HttpKernel\Kernel->handle(object(Zikula_Request_Http))
        in /home/www/www.oldtimer-ig-osnabrueck.de/Zikula_Core-1.4.4/index.php line 23
@Guite Guite added the Bug label Dec 3, 2016
@Guite Guite added this to the 3.0.0 milestone Dec 3, 2016
@Guite Guite closed this as completed in d319116 Dec 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants