Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22643

"Missing form token from Request " when creating an object after clearing cache

    Details

      Description

      Hi,

      When i try to create an object after clearing caches, i have a "Missing form token from Request" error

      Steps to reproduce:
      – Install eZ Publish with eZ Demo without demo content package;
      – Access your ezdemo_site_admin interface
      – Clear caches (setup/"clear all caches")
      – Try to create an article choosing "Create new"/"Article" option.
      The error happens right after the last step

      The stack trace

      [1] Exception: Missing form token from Request
          at n/a
              in /var/www/ezpublish5/ezpublish_legacy/extension/ezformtoken/event/ezxformtoken.php line 148
       
          at ezxFormToken::input(object(eZURI))
              in  line 
       
          at call_user_func_array(array('ezxFormToken', 'input'), array(object(eZURI)))
              in /var/www/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpevent.php line 138
       
          at ezpEvent->notify('request/input', array(object(eZURI)))
              in /var/www/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php line 1162
       
          at ezpKernelWeb->requestInit()
              in /var/www/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php line 310
       
          at ezpKernelWeb->run()
              in /var/www/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernel.php line 53
       
          at ezpKernel->run()
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php line 127
       
          at eZ\Publish\Core\MVC\Legacy\Kernel->run()
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php line 88
       
          at eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController->indexAction()
              in  line 
       
          at call_user_func_array(array(object(LegacyKernelController), 'indexAction'), array())
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
       
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187
       
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67
       
          at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
              in /var/www/ezpublish5/web/index.php line 77
      

      Note: I'm using build #1151 from ezpublish5-ee-bul-tarballs

        Issue Links

          Activity

          Hide
          Paulo Nunes (Inactive) added a comment -

          [~jerome.vieilledent@ez.no]: with the patch, i have a blank page when trying to access my login page in admin backend and in apache log, i have the following error:

          [Sun May 11 19:08:16 2014] [error] [client 192.168.2.29] PHP Fatal error:  Call to undefined method ezxFormToken::isEnabled() in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Collector/TemplateDebugInfo.php on line 88, referer: http://ezp5.paulo/ezdemo_site_admin/user/login
          [Sun May 11 19:08:16 2014] [error] [client 192.168.2.29] PHP Stack trace:, referer: http://ezp5.paulo/ezdemo_site_admin/user/login
          [Sun May 11 19:08:16 2014] [error] [client 192.168.2.29] PHP   1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://ezp5.paulo/ezdemo_site_admin/user/login

          Show
          Paulo Nunes (Inactive) added a comment - [~jerome.vieilledent@ez.no] : with the patch, i have a blank page when trying to access my login page in admin backend and in apache log, i have the following error: [Sun May 11 19:08:16 2014] [error] [client 192.168.2.29] PHP Fatal error: Call to undefined method ezxFormToken::isEnabled() in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Collector/TemplateDebugInfo.php on line 88, referer: http://ezp5.paulo/ezdemo_site_admin/user/login [Sun May 11 19:08:16 2014] [error] [client 192.168.2.29] PHP Stack trace:, referer: http://ezp5.paulo/ezdemo_site_admin/user/login [Sun May 11 19:08:16 2014] [error] [client 192.168.2.29] PHP 1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://ezp5.paulo/ezdemo_site_admin/user/login
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Paulo Nunes: This is because you didn't install the patch for legacy (mentioned in the PR description).

          Show
          Jérôme Vieilledent (Inactive) added a comment - Paulo Nunes : This is because you didn't install the patch for legacy (mentioned in the PR description).
          Hide
          Paulo Nunes (Inactive) added a comment -

          [~jerome.vieilledent@ez.no]: you're right. haven't seen that.
          Yes, apparently, without further tests, your solution seems to solve the issue

          Show
          Paulo Nunes (Inactive) added a comment - [~jerome.vieilledent@ez.no] : you're right. haven't seen that. Yes, apparently, without further tests, your solution seems to solve the issue
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in: ezpublish-kernel master: https://github.com/ezsystems/ezpublish-kernel/commit/12bd2864405c1d0fd81876994fce5bb0bcec29ea ezpublish-legacy master: https://github.com/ezsystems/ezpublish-legacy/commit/3e3e89477c08125a37b488fc08dadfa8347a431c
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: