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
Comment #1
grienauerComment #2
frans commentedIs this still an issue? I could not reproduce it, but may be I am doing something else? Could it be environment related?
Comment #3
reinier-v commentedSame error occurs if
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.
Comment #4
soapboxcicero commentedI'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:
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.
Comment #5
soapboxcicero commentedConfirmed same issue with dev
Comment #7
jeroen.b commentedI 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).
Comment #8
jeroen.b commented@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.
Comment #9
jeroen.b commentedComment #10
soapboxcicero commentedThat was it, thanks!
Comment #11
jeroen.b commentedThis issue might be related to #2262929, and the committed fix might just only be a workaround
Comment #12
jeroen.b commented