Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on backend and frontend #3

Closed
lucagentile opened this issue Sep 19, 2017 · 2 comments
Closed

Error on backend and frontend #3

lucagentile opened this issue Sep 19, 2017 · 2 comments
Labels

Comments

@lucagentile
Copy link

lucagentile commented Sep 19, 2017

Hello,

after following the installation process (require your legacy extension package, activate it from legacy.yml, then require the bundle and activate it from appkernel), I can add enhanced file attributes to classes.

Problem is I keep getting an error in both backend and frontend when accessing the classes with that attribute. Unfortunately only the frontend gives me a stacktrace:

FatalThrowableError in BinaryBaseStorage.php line 49: Type error: Argument 1 passed to eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage::__construct() must be of the type array, object given, called in /cache/dev/appDevDebugProjectContainer.php on line 4865

in BinaryBaseStorage.php line 49 at BinaryBaseStorage->__construct(object(LegacyStorage), object(eZPublishCoreIOTolerantIOService_000000002ecbbdaf00000000021dbc3c38025f693236dc1642e709d041e3c4b3), object(LegacyPathGenerator), object(FileInfo)) in appDevDebugProjectContainer.php line 4865 at appDevDebugProjectContainer->getEzpublish_Enhancedezbinaryfile_ExternalStorageHandlerService() in Container.php line 304 at Container->get('ezpublish.enhancedezbinaryfile.external_storage_handler') in ExternalStorageRegistryFactory.php line 36 at ExternalStorageRegistryFactory->eZ\Publish\Core\Base\Container\ApiLoader\Storage\{closure}() at call_user_func(object(Closure)) in StorageRegistry.php line 75 at StorageRegistry->getStorage('enhancedezbinaryfile') in StorageHandler.php line 83 at StorageHandler->getFieldData(object(VersionInfo), object(Field)) in FieldHandler.php line 307 at FieldHandler->loadExternalFieldData(object(Content)) in appDevDebugProjectContainer.php line 80492 at eZPublishCorePersistenceLegacyContentFieldHandler_000000002ecb8a8600000000021dbc3c38025f693236dc1642e709d041e3c4b3->loadExternalFieldData(object(Content)) in Handler.php line 325 at Handler->load('372', '3', array('ita-IT')) in appDevDebugProjectContainer.php line 80798 at eZPublishCorePersistenceLegacyContentHandler_000000002ecb8ad300000000021dbc3c38025f693236dc1642e709d041e3c4b3->load('372', '3', array('ita-IT')) in ContentHandler.php line 68 at ContentHandler->load('372', '3', array('ita-IT')) in ContentService.php line 408 at ContentService->internalLoadContent('372', array('ita-IT'), '3', false, true) in ContentService.php line 342 at ContentService->loadContent('372', array('ita-IT'), null, true) in appDevDebugProjectContainer.php line 75078 at eZPublishCoreRepositoryContentService_000000002ecb951a00000000021dbc3c38025f693236dc1642e709d041e3c4b3->loadContent('372', array('ita-IT'), null, true) in ContentService.php line 192 at ContentService->loadContent('372', array('ita-IT'), null) in LoadService.php line 71 at LoadService->loadContent('372') in ContentViewBuilder.php line 153 at ContentViewBuilder->loadContent('372') in ContentViewBuilder.php line 121 at ContentViewBuilder->buildView(array('is_rest_request' => false, 'siteaccess' => object(SiteAccess), 'semanticPathinfo' => '/Path', 'viewParameters' => array(), 'viewParametersString' => '', '_route' => 'ez_urlalias', '_controller' => 'ng_content:viewAction', 'contentId' => '372', 'locationId' => '353', 'viewType' => 'full', 'layout' => true, '_route_params' => array('contentId' => '372', 'locationId' => '353', 'viewType' => 'full', 'layout' => true), '_locale' => 'it_IT', 'csrf_enabled' => true)) in ViewControllerListener.php line 70 at ViewControllerListener->getController(object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) at call_user_func(array(object(ViewControllerListener), 'getController'), object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) in WrappedListener.php line 61 at WrappedListener->__invoke(object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher)) at call_user_func(object(WrappedListener), object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher)) in EventDispatcher.php line 184 at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(FilterControllerEvent)) in EventDispatcher.php line 46 at EventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent)) in TraceableEventDispatcher.php line 140 at TraceableEventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent)) in HttpKernel.php line 137 at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 64 at HttpKernel->handle(object(Request), '1', true) in ContainerAwareHttpKernel.php line 69 at ContainerAwareHttpKernel->handle(object(Request), '1', true) in Kernel.php line 185 at Kernel->handle(object(Request)) in app.php line 70

I'm also using:
"netgen/ezpublish-legacy": ">=2017.04",
"netgen/enhanced-binary-file-bundle": "^2.0",
"netgen/enhancedezbinaryfile": "^5.0"
"ezsystems/ezpublish-kernel": "~6.9.1",

@MarioBlazek
Copy link
Contributor

Please upgrade to v2.0.1 https://github.com/netgen/NetgenEnhancedBinaryFileBundle/releases/tag/v2.0.1

@lucagentile
Copy link
Author

It works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants