Synopsis
If the Devel module is installed, Search API Solr provides a Solr tab below the Devel tab of an entity via \Drupal\search_api_solr\Controller\DevelController, which will show the document object(s) indexed in Solr for that entity.
DevelController uses kprint_r() to dump the document object(s), but that function was removed in Make dpm() and friends pluggable (with Krumo, Kint, Ladybug etc). Thus, you'll get a white page (at least) in the latest Devel release (8.x-1.0-rc1) when accessing the tab.
STR
- Make sure, that devel module is installed.
- Click on the Devel tab for an indexed entity.
- Click on the Solr tab (e.g.
/devel/node/1234/solr).
Expected result
Dumped document object(s) for entity.
Actual result
White page with error message:
Error: Call to undefined function Drupal\search_api_solr\Controller\kprint_r() in Drupal\search_api_solr\Controller\DevelController->entitySolr() (line 133 of modules/contrib/search_api_solr/src/Controller/DevelController.php).
Proposed resolution
Use \Drupal\devel\DevelDumperManager to dump the object(s).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2862355-02.patch | 3.69 KB | feyp |
Comments
Comment #2
feyp commentedPatch against 8.x-1.x-dev.
Comment #4
mkalkbrennerThanks!