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

Twig exception when uploading images/objects through ezoe

    XMLWordPrintable

Details

    Description

      When you try to add an object, or an image, through ezoe you get a twig exception

      Steps

      1. Click on "Insert/edit image" button
      2. Click on "Browse"
      3. Select an image from you hard drive
      4. Click on "Upload local file"

      Complete stack trace

      Exception detected!
      Could not find 'location' with identifier '67'
      500 Internal Server Error - NotFoundException
      Stack Trace
      
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Location/Gateway/EzcDatabase.php at line 78  -+
                          return $row;
                      }
                      throw new NotFound( 'location', $nodeId );
                  }
                  /**
          at EzcDatabase ->getBasicNodeData ('67')
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Location/Gateway/ExceptionConversion.php at line 53  -+
          at ExceptionConversion ->getBasicNodeData ('67')
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Location/Handler.php at line 100  -+
          at Handler ->load ('67')
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/LocationHandler.php at line 32  -+
          at LocationHandler ->load ('67')
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/LocationService.php at line 192  -+
          at LocationService ->loadLocation ('67')
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/LocationService.php at line 101  -+
          at LocationService ->loadLocation ('67')
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/PersistenceCachePurger.php at line 143  -+
          at PersistenceCachePurger ->content (array('67', '51'))
          at call_user_func_array (array(object(PersistenceCachePurger), 'content'), array(array('67', '51')))
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/private/classes/ezpevent.php at line 164  -+
          at ezpEvent ->filter ('content/cache', array('67', '51'))
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/classes/ezcontentcachemanager.php at line 680  -+
          at eZContentCacheManager ::clearObjectViewCache ('66', '1', false)
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/classes/ezcontentcachemanager.php at line 790  -+
          at eZContentCacheManager ::clearObjectViewCacheIfNeeded ('66', '1', false)
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/classes/ezcontentcachemanager.php at line 1044  -+
          at eZContentCacheManager ::clearContentCacheIfNeeded ('66', '1', false)
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/content/ezcontentoperationcollection.php at line 233  -+
          at eZContentOperationCollection ->clearObjectViewCache ('66', '1')
          at call_user_func_array (array(object(eZContentOperationCollection), 'clearObjectViewCache'), array('66', '1'))
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezmoduleoperationinfo.php at line 802  -+
          at eZModuleOperationInfo ->executeClassMethod ('kernel/content/ezcontentoperationcollection.php', 'eZContentOperationCollection', 'clearObjectViewCache', array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true)), array('object_id' => '66', 'version' => '1'))
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezmoduleoperationinfo.php at line 524  -+
          at eZModuleOperationInfo ->executeBody ('kernel/content/ezcontentoperationcollection.php', 'eZContentOperationCollection', array(array('type' => 'method', 'name' => 'begin-transaction', 'frequency' => 'once', 'method' => 'beginTransaction'), array('type' => 'method', 'name' => 'set-version-pending', 'frequency' => 'once', 'method' => 'setVersionStatus', 'parameters' => array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true), array('name' => 'status', 'type' => 'integer', 'constant' => '2'))), array('type' => 'method', 'name' => 'send-to-publishing-queue', 'frequency' => 'once', 'method' => 'sendToPublishingQueue', 'parameters' => array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true))), array('type' => 'method', 'name' => 'update-section-id', 'frequency' => 'once', 'method' => 'updateSectionID'), array('type' => 'trigger', 'name' => 'pre_publish', 'keys' => array('object_id', 'version')), array('type' => 'method', 'name' => 'copy-translations', 'frequency' => 'once', 'method' => 'copyTranslations'), array('type' => 'method', 'name' => 'set-version-archived', 'frequency' => 'once', 'method' => 'setVersionStatus', 'parameters' => array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'constant' => false), array(*DEEP NESTED ARRAY*))), array('type' => 'loop', 'name' => 'loop-nodes', 'method' => 'loopNodeAssignment', 'continue_operation' => 'all', 'child_parameters' => array(array('name' => 'parent_node_id', 'type' => 'integer', 'required' => true), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*)), 'children' => array(array(*DEEP NESTED ARRAY*))), array('type' => 'method', 'name' => 'set-version-published', 'frequency' => 'once', 'method' => 'setVersionStatus', 'parameters' => array(array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*))), array('type' => 'method', 'name' => 'set-object-published', 'frequency' => 'once', 'method' => 'setObjectStatusPublished', 'parameters' => array(*DEEP NESTED ARRAY*)), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*)), null, array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true)), array('object_id' => '66', 'version' => '1'), null, array('loop_run' => array('begin-transaction' => '0', 'set-version-pending' => '0', 'send-to-publishing-queue' => '1', 'update-section-id' => '0', 'pre_publish' => '1', 'copy-translations' => '0', 'set-version-archived' => '0', 'loop-nodes' => '1', 'set-version-published' => '0', 'set-object-published' => '0', 'publish-object-extension-handler' => '0', 'remove-old-nodes' => '0', 'attribute-publish-action' => '0', 'update-nontranslatable-attributes' => '0', 'reset-nodeassignment-opcodes' => '0', 'commit-transaction' => '0', 'clear-object-view-cache' => '0')), 'publish')
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezmoduleoperationinfo.php at line 213  -+
          at eZModuleOperationInfo ->execute ('publish', array('object_id' => '66', 'version' => '1'), null)
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezoperationhandler.php at line 57  -+
          at eZOperationHandler ::execute ('content', 'publish', array('object_id' => '66', 'version' => '1'))
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/classes/ezcontentupload.php at line 727  -+
          at eZContentUpload ->publishObject (array('errors' => array(), 'notices' => array(), 'result' => false, 'redirect_url' => false), array(), array(), object(eZContentObject), '1', object(eZContentClass), array('51'), '51')
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/classes/ezcontentupload.php at line 700  -+
          at eZContentUpload ->handleUpload (array('errors' => array(), 'notices' => array(), 'result' => false, 'redirect_url' => false), 'fileName', false, false, '', 'fre-FR')
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/extension/ezoe/modules/ezoe/upload.php at line 112  -+
          at include ('/var/www/apache2php53/ezp/ezpublish_testsystem/.run/extension/ezoe/modules/ezoe/upload.php')
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezprocess.php at line 46  -+
          at eZProcess ->runFile (array('ObjectID' => '60', 'ObjectVersion' => '1', 'ContentType' => 'auto', 'ForcedUpload' => '1', 'UserParameters' => array(), 'Module' => object(eZModule), 'ModuleName' => 'ezoe', 'FunctionName' => 'upload', 'Parameters' => array('60', '1', 'auto', '1')), 'extension/ezoe/modules/ezoe/upload.php', false)
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezprocess.php at line 21  -+
          at eZProcess ::run ('extension/ezoe/modules/ezoe/upload.php', array('ObjectID' => '60', 'ObjectVersion' => '1', 'ContentType' => 'auto', 'ForcedUpload' => '1', 'UserParameters' => array(), 'Module' => object(eZModule), 'ModuleName' => 'ezoe', 'FunctionName' => 'upload', 'Parameters' => array('60', '1', 'auto', '1')), false)
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/lib/ezutils/classes/ezmodule.php at line 1743  -+
          at eZModule ->run ('upload', array('60', '1', 'auto', '1'), false, array())
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php at line 794  -+
          at ezpKernelWeb ->dispatchLoop ()
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php at line 324  -+
          at ezpKernelWeb ->run ()
          in /var/www/apache2php53/ezp/ezpublish_testsystem/.run/kernel/private/classes/ezpkernel.php at line 53  -+
          at ezpKernel ->run ()
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php at line 75  -+
          at Kernel ->run ()
          in /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php at line 79  -+
          at LegacyKernelController ->indexAction ()
          at call_user_func_array (array(object(LegacyKernelController), 'indexAction'), array())
          in /var/www/apache2php53/ezp/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 129  -+
          at HttpKernel ->handleRaw (object(Request), '1')
          in /var/www/apache2php53/ezp/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 73  -+
          at HttpKernel ->handle (object(Request), '1', true)
          in /var/www/apache2php53/ezp/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 57  -+
          at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
          in /var/www/apache2php53/ezp/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 197  -+
          at Kernel ->handle (object(Request))
          in /var/www/apache2php53/ezp/web/index.php at line 14  -+
      
      Logs  +-
      1 error
      
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Publish\Core\MVC\Symfony\EventListener\SiteAccessMatchListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestSetup".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
          INFO - Router eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter was not able to match, message ""
          INFO - Router eZ\Bundle\EzPublishCoreBundle\Routing\UrlAliasRouter was not able to match, message "Config says to bypass UrlAliasRouter"
          INFO - Matched route "ez_legacy" (parameters: "_route": "ez_legacy", "_controller": "ezpublish_legacy.controller:indexAction")
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestForward".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
          DEBUG - Read SecurityContext from the session
          DEBUG - Reloading user from user provider.
          DEBUG - Username "admin" was reloaded from user provider.
          DEBUG - Checking secure context token: PreAuthenticatedToken(user="admin", authenticated=false, roles="ROLE_USER")
          DEBUG - Trying to pre-authenticate user "14"
          INFO - Authentication success: PreAuthenticatedToken(user="admin", authenticated=true, roles="ROLE_USER")
          DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\Fragment\FragmentHandler::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener::injectLogger".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestRedirect".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishRestBundle\EventListener\RestListener::onKernelRequest".
          DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
          DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
          DEBUG - Notified event "kernel.exception" to listener "Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException".
          DEBUG - Notified event "kernel.exception" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelException".
          DEBUG - Notified event "kernel.exception" to listener "eZ\Bundle\EzPublishRestBundle\EventListener\RestListener::onKernelExceptionView".
          DEBUG - Notified event "kernel.exception" to listener "Symfony\Component\HttpKernel\EventListener\ExceptionListener::onKernelException".
          CRITICAL - Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\NotFoundException: "Could not find 'location' with identifier '67'" at /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Location/Gateway/EzcDatabase.php line 78
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Publish\Core\MVC\Symfony\EventListener\SiteAccessMatchListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestSetup".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestForward".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\Fragment\FragmentHandler::onKernelRequest".
          DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener::injectLogger".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestRedirect".
          DEBUG - Notified event "kernel.request" to listener "eZ\Bundle\EzPublishRestBundle\EventListener\RestListener::onKernelRequest".
          DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
          DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m