Hi!
thx for the great module!

Since the release I work with paragraphs a lot and love it!

Here the Problem:
If you are in the edit mode and klick on the edit button of the paragraph to reveal the fields inside, there is an AJAX Error popping up.

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /paragraphs/edit/ajax
StatusText: n/a
ResponseText: 
Error message  Notice: Undefined index: array_parents in field_default_form_errors() (line 394 of XXX/modules/field/field.form.inc).  Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be of the type array, null given, called in XXX/modules/field/field.form.inc on line 394 and defined in drupal_array_get_nested_value() (line 6666 of XXX/includes/common.inc).      The website encountered an unexpected error. Please try again later.    
ReadyState: undefined

I think this happens only on paragraph bundles which contains fields with needs AJAX to work...
When I have an date field with datepicker jquery UI on top, then the error occurs.

Thx for help!

Nico

Comments

grienauer’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta4
frans’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue? I could not reproduce it, but may be I am doing something else? Could it be environment related?

reinier-v’s picture

Same error occurs if

  1. You create a (closed edit mode) paragraph block (unlimited in my case).
  2. Create a paragraph type with entity reference field
  3. Create content for reference (target), than create new content (targeting) with target to first created content and save
  4. Remove the target content
  5. Edit the targeting content, click 'edit' on the paragraph

Error occurs:
Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be of the type array, null given, called in .../modules/field/field.form.inc on line 394 and defined in drupal_array_get_nested_value() (regel 6679 van .../includes/common.inc).

Edit 25-07-2014:
This has something to do with bundle-property missing, probably coming from paragraphs_field_widget_form().
If field_get_items() is called with an entity with bundle-property missing, this results in a 500.
This might just be another issue, but I'm not sure and currently / sadly don't have the time to further investigate.

soapboxcicero’s picture

I'm getting this with initially closed, unlimited paragraphs containing an unlimited image field and a longtext field. 7.x-1.0-beta4.

You can open some of the paragraphs but after opening a few you get a 403 pop up with no ResponseText (even as /user/1).

There appears to be a correlation between the order you open the paragraphs or the number of paragraphs, but I haven't been able to suss out the pattern—just get the feeling it's there. It may be related to the total number of images in the opened paragraphs.

When I look in my logs I see:

  • Notice: Undefined index: form_build_id in ajax_get_form()
  • Invalid form POST data.

emanating from /paragraphs/edit/ajax whenever a popup is generated.

Looking at the source, it appears when ajax_get_form fails because form_get_cache can't retrieve the form in question. I have no idea why that would be happening, though.

soapboxcicero’s picture

Confirmed same issue with dev

  • jeroen.b committed eadc841 on 7.x-1.x
    Fix #2271845: Edit button causes AJAX Error
    
jeroen.b’s picture

I fixed this for me by always attaching the entity form, but setting #access FALSE to all the fields until you press the edit button. Committed to dev.

Please test (it might be the dev release isn't generated yet when you read this, you can use the version from git instead).

jeroen.b’s picture

@soapboxcicero your issue might be related to the max_input_vars limit in PHP, try to see the amount of input vars with firebug when you experience this.

jeroen.b’s picture

Status: Postponed (maintainer needs more info) » Fixed
soapboxcicero’s picture

That was it, thanks!

jeroen.b’s picture

This issue might be related to #2262929, and the committed fix might just only be a workaround

jeroen.b’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.