Jump to content

Ayuda con este error please


JmWhan

Recommended Posts

Buenas a todos resulta que tengo una tienda y no puedo modificar ningún producto ya que al hacerlo me sale el siguiente error:

ContextErrorException in TypeaheadProductCollectionType.php line 92: Notice: Undefined offset: 1

 

 

  1. in TypeaheadProductCollectionType.php line 92
  2. at ErrorHandler->handleError('8', 'Undefined offset: 1', '/home/v221i5to/public_html/jamonxjamon.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' => 'Accesorios', '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://jamonxjamon.com/admin123/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Buscar y añadir un producto relacionado', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>'), 'collection' => array(), 'i' => '0', 'id' => '1', 'product' => object(Product))) in TypeaheadProductCollectionType.php line 92
  3. 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' => 'Accesorios', '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://jamonxjamon.com/admin123/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Buscar y añadir un producto relacionado', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in ResolvedFormType.php line 209
  4. 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' => 'Accesorios', '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://jamonxjamon.com/admin123/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Buscar y añadir un producto relacionado', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in ResolvedTypeDataCollectorProxy.php line 118
  5. 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' => 'Accesorios', '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://jamonxjamon.com/admin123/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Buscar y añadir un producto relacionado', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in Form.php line 1071
  6. at Form->createView(object(FormView)) in Form.php line 1074
  7. at Form->createView(object(FormView)) in Form.php line 1074
  8. at Form->createView() in ProductController.php line 594
  9. at ProductController->formAction('37', object(Request))
  10. at call_user_func_array(array(object(ProductController), 'formAction'), array('37', object(Request))) in bootstrap.php.cache line 3246
  11. at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3205
  12. at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3359
  13. at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2562
  14. at Kernel->handle(object(Request), '1', false) in index.php line 86

 

por favor que podría ser esto?

Gracias de antemano.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...