Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
4.6.7
-
None
-
None
-
Ibexa Commerce, Ibexa Content, Ibexa Experience, Ibexa Open Source
-
Yes
Description
- Use Ibexa Experience 4.6.7.
- Create a new content type with a single ezstring field.
- Create a content item of this new type.
- Edit the new content type, remove the only field and replace it with a different ezstring field.
- Go back to the content view of the previously created content item.
- Go to the content tree (admin/view/content/52/full/1/2).
Expected result:
Content view and content tree can be accessed without problem.
Actual result:
Content view fails with
ErrorException: Warning: Undefined array key 70 at vendor/ibexa/core/src/lib/Persistence/Legacy/Content/Mapper.php:297 at Ibexa\Core\Persistence\Legacy\Content\Mapper->buildContentObjects(array(object(ContentInfo)), array(array(object(VersionInfo))), array(), array(array(array('eng-GB' => array(object(FieldDefinition))))), array(array(array('eng-GB' => 'test')))) (vendor/ibexa/core/src/lib/Persistence/Legacy/Content/Mapper.php:261) at Ibexa\Core\Persistence\Legacy\Content\Mapper->extractContentFromRows(array(array('ezcontentobject_id' => 70, 'ezcontentobject_contentclass_id' => 55, 'ezcontentobject_section_id' => 1, 'ezcontentobject_owner_id' => 14, 'ezcontentobject_remote_id' => '41dcf30cd78298cbb60fb752bec8baba', 'ezcontentobject_current_version' => 1, 'ezcontentobject_initial_language_id' => 2, 'ezcontentobject_modified' => 1719989237, 'ezcontentobject_published' => 1719989237, 'ezcontentobject_status' => 1, 'ezcontentobject_name' => 'test', 'ezcontentobject_language_mask' => 3, 'ezcontentobject_is_hidden' => 0, 'ezcontentobject_version_id' => 532, 'ezcontentobject_version_version' => 1, 'ezcontentobject_version_modified' => 1719989237, 'ezcontentobject_version_creator_id' => 14, 'ezcontentobject_version_created' => 1719989233, 'ezcontentobject_version_status' => 1, 'ezcontentobject_version_language_mask' => 3, 'ezcontentobject_version_initial_language_id' => 2, 'ezcontentobject_attribute_id' => 309, 'ezcontentobject_attribute_contentclassattribute_id' => 249, 'ezcontentobject_attribute_data_type_string' => 'ezstring', 'ezcontentobject_attribute_language_code' => 'eng-GB', 'ezcontentobject_attribute_language_id' => 3, 'ezcontentobject_attribute_data_float' => null, 'ezcontentobject_attribute_data_int' => null, 'ezcontentobject_attribute_data_text' => 'test', 'ezcontentobject_attribute_sort_key_int' => 0, 'ezcontentobject_attribute_sort_key_string' => 'test', 'ezcontentobject_tree_main_node_id' => 71)), array(array('ezcontentobject_name_contentobject_id' => 70, 'ezcontentobject_name_content_version' => 1, 'ezcontentobject_name_name' => 'test', 'ezcontentobject_name_content_translation' => 'eng-GB'))) (vendor/ibexa/core/src/lib/Persistence/Legacy/Content/Handler.php:323) at Ibexa\Core\Persistence\Legacy\Content\Handler->load(70, null, array('eng-GB')) (var/cache/dev/ContainerW7Ce3X9/Handler_cacf6dc.php:50) at ContainerW7Ce3X9\Handler_cacf6dc->load(70, null, array('eng-GB')) (vendor/ibexa/core/src/lib/Persistence/Cache/ContentHandler.php:145) at Ibexa\Core\Persistence\Cache\ContentHandler->Ibexa\Core\Persistence\Cache\{closure}(70) (vendor/ibexa/core/src/lib/Persistence/Cache/AbstractInMemoryHandler.php:99) at Ibexa\Core\Persistence\Cache\AbstractInMemoryHandler->getCacheValue(70, 'ibx-c-', object(Closure), object(Closure), object(Closure), '-eng-GB', array('content' => 70, 'version' => null, 'translations' => array('eng-GB'))) (vendor/ibexa/core/src/lib/Persistence/Cache/ContentHandler.php:159) at Ibexa\Core\Persistence\Cache\ContentHandler->load(70, null, array('eng-GB')) (vendor/ibexa/core/src/lib/Repository/ContentService.php:466) at Ibexa\Core\Repository\ContentService->internalLoadContentBySPIContentInfo(object(ContentInfo), array('eng-GB'), null, true) (vendor/ibexa/core/src/lib/Repository/ContentService.php:408) at Ibexa\Core\Repository\ContentService->internalLoadContentById(70, array('eng-GB'), null, true) (vendor/ibexa/core/src/lib/Repository/ContentService.php:383) at Ibexa\Core\Repository\ContentService->loadContent(70, array('eng-GB'), null, true) (vendor/ibexa/core/src/lib/Repository/ProxyFactory/ProxyDomainMapper.php:54) at Ibexa\Core\Repository\ProxyFactory\ProxyDomainMapper->Ibexa\Core\Repository\ProxyFactory\{closure}(null, object(Generated5a9af3801bb0decdc7b6ba4831960bd3), '__get', array('name' => 'contentInfo'), null) (var/cache/dev/repository/proxy/ProxyManagerGeneratedProxy__PM__IbexaContractsCoreRepositoryValuesContentContentGenerated5a9af3801bb0decdc7b6ba4831960bd3.php:134) at Closure->__invoke(null, object(Generated5a9af3801bb0decdc7b6ba4831960bd3), '__get', array('name' => 'contentInfo'), null) (var/cache/dev/repository/proxy/ProxyManagerGeneratedProxy__PM__IbexaContractsCoreRepositoryValuesContentContentGenerated5a9af3801bb0decdc7b6ba4831960bd3.php:134) at ProxyManagerGeneratedProxy\__PM__\Ibexa\Contracts\Core\Repository\Values\Content\Content\Generated5a9af3801bb0decdc7b6ba4831960bd3->__get('contentInfo') (vendor/ibexa/core/src/lib/MVC/Symfony/View/Builder/ContentViewBuilder.php:273) at Ibexa\Core\MVC\Symfony\View\Builder\ContentViewBuilder->canRead(object(Generated5a9af3801bb0decdc7b6ba4831960bd3), object(Location), false) (vendor/ibexa/core/src/lib/MVC/Symfony/View/Builder/ContentViewBuilder.php:107) at Ibexa\Core\MVC\Symfony\View\Builder\ContentViewBuilder->buildView(array('_stopwatch_token' => '583c10', 'is_rest_request' => false, 'siteaccess' => object(SiteAccess), 'semanticPathinfo' => '/view/content/70/full/1/71', 'viewParameters' => array(), 'viewParametersString' => '', '_route' => 'ibexa.content.view', '_controller' => 'ibexa_content::viewAction', 'viewType' => 'full', 'locationId' => '71', 'layout' => '1', 'contentId' => '70', '_route_params' => array('viewType' => 'full', 'locationId' => '71', 'layout' => '1', 'contentId' => '70'), '_locale' => 'en', '_firewall_context' => 'security.firewall.map.context.ibexa_front', '_security_firewall_run' => '_security_ibexa_front', 'location' => object(Location))) (vendor/ibexa/core/src/bundle/Core/EventListener/ViewControllerListener.php:69) at Ibexa\Bundle\Core\EventListener\ViewControllerListener->getController(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(ControllerEvent)) (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/ibexa/site-factory/src/lib/Event/EventDispatcher.php:28) at Ibexa\SiteFactory\Event\EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/var/www/html/vendor/autoload_runtime.php') (public/index.php:5)