lonnieezell / Bonfire2

CodeIgniter 4-based application skeleton
MIT License
131 stars 50 forks source link

New installation problem: missing composer package codeigniter4/codeigniter4 #136

Closed atsanna closed 2 years ago

atsanna commented 2 years ago

I encountered an error following the steps outlined in the guide due to missing some requirements. I tried to fix it, but without success.

These are the steps I performed:

1) composer create-project codeigniter4/appstarter my-app --dev 2) add "minimum-stability": "dev" in to composer.json: 3) composer update 4) composer require lonnieezell/bonfire --dev

lonnieezell/bonfire dev-develop requires codeigniter4/codeigniter4 dev-develop -> could not be found in any version, there may be a typo in the package name.

atsanna commented 2 years ago

I almost solved:

These are the steps I performed:

1) composer create-project codeigniter4/appstarter my-app --dev 2) add in to composer.json:

"minimum-stability": "dev",
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/codeigniter4/codeigniter4"
        }
    ],

3) composer update 4) composer require lonnieezell/bonfire --dev 5) php spark bf:install

CodeIgniter v4.1.9 Command Line Tool - Server Time: 2022-05-12 06:29:48 UTC-05:00

[ErrorException]

Type of Bonfire\Auth\Config\Auth::$views must be array (as in class CodeIgniter\Shield\Config\Auth)

at VENDORPATH/lonnieezell/bonfire/src/Auth/Config/Auth.php:9

Backtrace:
  1    [internal function]
       CodeIgniter\Debug\Exceptions()->shutdownHandler()
atsanna commented 2 years ago

I have updated the files

Bonfire\Auth\Config\Auth.php
Bonfire\Users\Models\UserModel.php
Bonfire\Consent\Filters\ConsentFilter.php

in order to respect the signatures

I fixed the $folders variable in Bonfire\Assets\Config\Assets.php 'other' => BFPATH. '../../../../vendor',

This ensures that the login page is rendered correctly.

The command php spark bf:install

returns Command "bf:install" not found.

ThibautPV commented 2 years ago

Hello,

I also have the same problem (Command "bf:install" not found) + ErrorException

Capture d’écran 2022-06-30 à 17 58 11