Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293211

Error backtrace malformatted

$
0
0

Problem/Motivation

Sometime i get error / exception backtraces that lack newlines in the dblog html view.

Without patch:

Error: Cannot use object of type Drupal\Core\Render\Markup as array in Drupal\leaflet\LeafletService->leafletProcessGeofield() (line 141 of /var/www/html/web/modules/contrib/leaflet/src/LeafletService.php) #0 /var/www/html/web/modules/contrib/leaflet/leaflet_views/src/Plugin/views/style/LeafletMap.php(441): Drupal\leaflet\LeafletService->leafletProcessGeofield(Array) #1 /var/www/html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2112): Drupal\leaflet_views\Plugin\views\style\LeafletMap->render(Array) #2 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1530): Drupal\views\Plugin\views\display\DisplayPluginBase->render() #3 /var/www/html/web/core/modules/views/src/Plugin/views/display/Page.php(171): Drupal\views\ViewExecutable->render() #4 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1627): Drupal\views\Plugin\views\display\Page->execute() #5 /var/www/html/web/core/modules/views/src/Element/View.php(77): Drupal\views\ViewExecutable->executeDisplay('page_1', Array) #6 [internal function]: Drupal\views\Element\View::preRenderViewElement(Array) #7 

With patch:

Error: Cannot use object of type Drupal\Core\Render\Markup as array in Drupal\leaflet\LeafletService->leafletProcessGeofield() (line 141 of /var/www/html/web/modules/contrib/leaflet/src/LeafletService.php).
#0 /var/www/html/web/modules/contrib/leaflet/leaflet_views/src/Plugin/views/style/LeafletMap.php(441): Drupal\leaflet\LeafletService->leafletProcessGeofield(Array)
#1 /var/www/html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2112): Drupal\leaflet_views\Plugin\views\style\LeafletMap->render(Array)
#2 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1530): Drupal\views\Plugin\views\display\DisplayPluginBase->render()
#3 /var/www/html/web/core/modules/views/src/Plugin/views/display/Page.php(171): Drupal\views\ViewExecutable->render()
#4 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1627): Drupal\views\Plugin\views\display\Page->execute()
#5 /var/www/html/web/core/modules/views/src/Element/View.php(77): Drupal\views\ViewExecutable->executeDisplay('page_1', Array)
#6 [internal function]: Drupal\views\Element\View::preRenderViewElement(Array)
#7 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(378): call_user_func(Array, Array)

Proposed resolution

Add a

 tag to *all* backtraces (one source line already has).


Remaining tasks

Doit.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Viewing all articles
Browse latest Browse all 293211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>