Problem/Motivation
Call to renderRoot in LeafletMarker and LeafletMap is causing an error 500.
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /views/ajax
StatusText: Internal Server Error
ResponseText: {"message":"A fatal error occurred: A stray renderRoot() invocation is causing bubbling of attached assets to break."}
Proposed resolution
Replace calls to renderRoot with render.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | leaflet-views-ajax-error-2958295-3.patch | 1.73 KB | itamair |
Comments
Comment #2
jorgegc commentedComment #3
itamair commentedrenderPlain should work even better.
Amended patch attached. Please @jorgegc review and confirm this solves your issue, the I will commit to dev.
Comment #4
jorgegc commentedHi @itamair, I can confirm that renderPlain works as well. If you don't mind me asking, why did you opt to use renderPlain instead of render?
Comment #5
itamair commentedbecause in some circumstances we had problems also with render:
Have a look to this issue, for instance: https://www.drupal.org/project/geofield_map/issues/2940295
renderPlain() seems to be the most robust way to go in our normal cases ... that seem not to arise matters, so far.
Please give me your counter opinion if you think that render instead is the best solution (and why ... if possibile).
Otherwise please confirm that I might commit to dev with renderPlain
Comment #6
itamair commentedComment #8
itamair commentedCommitted to dev ...
Comment #9
itamair commentedComment #10
jorgegc commentedThanks @itamair and sorry I could get back to you earlier.