phil-in-the-blank
phil-in-the-blank

Reputation: 41

cakePHP - DebugKit Toolbar not visible

After successful installation of cakePHP via Composer no DebugKit toolbar is visible.

This is really weird cause while the installation process the following has shown:

- 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,

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

Is there anything else I have to configure?

Kind regards,

Phil

Upvotes: 4

Views: 5863

Answers (4)

Tomas Gonzalez
Tomas Gonzalez

Reputation: 1175

You may try this:

bin/cake plugin assets symlink

Read more...

Upvotes: 2

Micah Potter
Micah Potter

Reputation: 103

Install the php5-sqlite extension. (this is for php5, use whatever version you are running)

If you are running on Ubuntu...

sudo apt-get install php5-sqlite

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

sudo yum search php

Once you have the package name you can use the following to install it...

sudo yum install <Package Name> 

Don't forget to restart your web server after installing. Restart the php service as well if you are using php fpm.

Upvotes: 6

S. Denis
S. Denis

Reputation: 158

This helped me:

  1. php bin/cake.php plugin assets symlink
  2. sudo apt-get install php7.0-sqlite

Upvotes: 4

Michael N
Michael N

Reputation: 21

The static assets are no linked to the vendor folder.

Please run the following commands:

cd webroot
ln -s ../vendor/cakephp/debug_kit/webroot debug_kit

Upvotes: 2

Related Questions