The option is disabled in admin and it says "Not available. You may need to install external dependencies for use this plugin." So I installed the plugin in my browser, enabled it and nothing. Could you help me out?

Comments

hkirsman created an issue. See original summary.

willzyx’s picture

Hi @hkirsman! you need to install the ChromeLogger php library (ChromePhp).
You can install the library with composer

cd myproject
composer require ccampbell/chromephp

once you have installed the library you need to clear cache for use ChromePhp dumper

hkirsman’s picture

I'm using https://github.com/drupal-composer/drupal-project, so root of the project is not the same as drupal root (which is /web for my project). I tried to run the command you mentioned both in project root and in web folder. This did not enable the ChromePhp option.

willzyx’s picture

@hkirsman the operations needed for install the lib are the same even if you use the composer drupal project; you need to run composer in the root of the project (not in /web).
After the installation you need to clear the cache via drush cr or using the ui (/admin/config/development/performance)

Also make sure to use the latest devel release because until recently (29/05) there was a bug in ChromePhp and FirePhp dumpers (see #2735353: Find ChromePHP and FirePHP with Composer Autoloader).
Let me know if it helps

xcono’s picture

@willzyx it works, thank you.
And may require to increase fastcgi buffer on nginx + php-fpm.

willzyx’s picture

Status: Active » Fixed

Marking this issue as fixed. Feel free to reopen if you need support or have other questions

hkirsman’s picture

Tx, it works. So again:

composer require drupal/devel:8.x-1.x-dev
composer require ccampbell/chromephp
cd web
drush cr

Also I got "502 Bad Gateway" with dpm($form) in hook_form_alter so I had to add:
fastcgi_buffer_size 128k;
to my nginx config.

And of course get the plugin for Chrome https://chrome.google.com/webstore/detail/chrome-logger/noaneddfkdjfnfda...

Status: Fixed » Closed (fixed)

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