CakePHP - DebugKit Toolbar Not Displaying

After successfully installing cakePHP through Composer, the DebugKit toolbar does not appear.

This is a really strange reason, while the installation process showed the following:

- Installing cakephp/debug_kit (3.1.0)
  Loading from cache

config / bootstrap.php:

// Only try to load DebugKit in development mode
// Debug Kit should not be installed on a production system
if (Configure::read('debug')) {
    Plugin::load('DebugKit', ['bootstrap' => true]);
}

config / app.php:

/**
 * Debug Level:
 *
 * Production Mode:
 * false: No error messages, errors, or warnings shown.
 *
 * Development Mode:
 * true: Errors and warnings shown.
 */
'debug' => true,

Usually (manual installation) the plugin is stored in the plugins folder, but it is empty.

Is there anything else I need to configure?

Yours faithfully,

Phil

+4
source share
3 answers

Install the php5-sqlite extension. (this is for php5, use any version you work on)

If you are using Ubuntu ...

sudo apt-get install php5-sqlite

Not sure if the package name is in centos / redhat, but you can use the following command to find out what the exact name of the package is.

sudo yum search php

, ...

sudo yum install <Package Name> 

- . php, php fpm.

+4

:

  • php bin/cake.php plugin assets symlink
  • sudo apt-get install php7.0-sqlite
+3

Static assets are not associated with the provider folder.

Skip the following commands:

cd webroot
ln -s ../vendor/cakephp/debug_kit/webroot debug_kit
+2
source

All Articles