Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While using the example module, I found that the dropdown plugin can no longer change the widget.
The ajax error received in response is:
{"message":"A fatal error occurred: Settings can not be serialized. This probably means you are serializing
an object that has an indirect reference to the Settings object. Adjust your code so that is not necessary."}
Comment | File | Size | Author |
---|---|---|---|
#9 | entity_browser-widgetselector-fix-2495071-8.patch | 883 bytes | samuel.mortenson |
Comments
Comment #1
JayeshSolanki CreditAttribution: JayeshSolanki commentedComment #2
samuel.mortensonI get this for any browser using a modal display.
Comment #3
samuel.mortensonComment #4
samuel.mortensonAdded possibly related core regression.
Comment #5
samuel.mortensonMoving to Major as this seems to affect multiple features of the module and the related issue's patch doesn't fix this problem.
Comment #6
slashrsm CreditAttribution: slashrsm at Examiner.com commentedComment #7
slashrsm CreditAttribution: slashrsm at Examiner.com commentedComment #8
samuel.mortensonAfter applying the patch from the related issue, I'm now getting
Guessing that the Connection object is being added to the form somewhere.
Comment #9
samuel.mortensonIt looks like the views display plugin "entity_browser" was adding the View to the render array before the form was cached, which caused the series of errors described in this issue. This patch moves the view to the elementPreRender method, which does not cache/serialize the View. No other patch is required, but I'll keep the related issue around for posterity.
Comment #10
samuel.mortensonComment #11
samuel.mortensonMaking some changes and re-pulling...
Comment #12
slashrsm CreditAttribution: slashrsm at Examiner.com commentedIs this patch still necessary after http://cgit.drupalcode.org/entity_browser/commit/?id=6c180b5b0cd4282a5a4...
Comment #13
samuel.mortensonSorry @slashrsm, I didn't do my due-diligence and follow up on this issue. The dropdown seems to be working fine, so I'm closing this out. Thanks!