Kristin Posted July 23, 2018 Share Posted July 23, 2018 Hello! I have problem with related products. After I relate 2 products, I cannot edit the items anymore and it display the text below. Version 1.7.3.3 What should I do? Thanks in advance! ContextErrorException in TypeaheadProductCollectionType.php line 92:Notice: Undefined offset: 1 in TypeaheadProductCollectionType.php line 92 at ErrorHandler->handleError('8', 'Undefined offset: 1', '/home/youssyst/public_html/kornel4kids.com/src/PrestaShopBundle/Form/Admin/Type/TypeaheadProductCollectionType.php', '92', array('view' => object(FormView), 'form' => object(Form), 'options' => array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Аксесоари', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://www.kornel4kids.com/4admin8p/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Търсене и добавяне на свързан продукт', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>'), 'collection' => array(), 'i' => '0', 'id' => '1647', 'product' => object(Product))) in TypeaheadProductCollectionType.php line 92 at TypeaheadProductCollectionType->buildView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Аксесоари', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://www.kornel4kids.com/4admin8p/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Търсене и добавяне на свързан продукт', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in ResolvedFormType.php line 209 at ResolvedFormType->buildView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Аксесоари', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://www.kornel4kids.com/4admin8p/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Търсене и добавяне на свързан продукт', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in ResolvedTypeDataCollectorProxy.php line 111 at ResolvedTypeDataCollectorProxy->buildView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Аксесоари', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://www.kornel4kids.com/4admin8p/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Търсене и добавяне на свързан продукт', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in Form.php line 1069 at Form->createView(object(FormView)) in Form.php line 1072 at Form->createView(object(FormView)) in Form.php line 1072 at Form->createView() in ProductController.php line 614 at ProductController->formAction('1649', object(Request)) at call_user_func_array(array(object(ProductController), 'formAction'), array('1649', object(Request))) in bootstrap.php.cache line 3253 at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3212 at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3366 at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2566 at Kernel->handle(object(Request), '1', false) in index.php line 86 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now