Skip to content

4.x - Missing datasource #671

@davidyell

Description

@davidyell

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 4.0.0-alpha1

  • Platform and Target: PHP 7.3.2 + nginx 1.15.9

Migrated from the main repo.

What you did

I created a new project using composer.
$ composer create-project cakephp/app:4.x-dev CakePHP4

What happened

When I visited my development url, I got an exception for a missing datasource.

Missing Datasource Configuration
Cake\Datasource\Exception\MissingDatasourceConfigException

Error: The datasource configuration debug_kit was not found in config/app.php.

What you expected to happen

I was expecting to see the CakePHP welcome page

How did you sidestep the issue?

I am using a domain name not in the safe list for DebutKit. So I had to force enable DebugKit, which fixed this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions