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).

CommentFileSizeAuthor
#2 2862355-02.patch3.69 KBfeyp

Comments

FeyP created an issue. See original summary.

feyp’s picture

Assigned: feyp » Unassigned
Status: Active » Needs review
StatusFileSize
new3.69 KB

Patch against 8.x-1.x-dev.

  • mkalkbrenner committed 4315606 on 8.x-1.x authored by FeyP
    Issue #2862355 by FeyP: Use DevelDumperManager in DevelController...
mkalkbrenner’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.