lonnieezell / Bonfire2

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

Undefined variable $allowRemember #365

Open ProjectLinde37 opened 1 year ago

ProjectLinde37 commented 1 year ago

ErrorException

Undefined variable ^

VENDORPATH\lonnieezell\bonfire\src\Views\Auth\login.php at line 26

19

20 21 22
23 24
25 26 <?php if ($allowRemember) : ?> 27
28 29 32
33 <?php endif ?>

if I change it to @$allowRemember the next error is

CodeIgniter\View\Exceptions\ViewException

Invalid file: "master.php"

SYSTEMPATH\Exceptions\FrameworkException.php at line 33

26 public static function forEnabledZlibOutputCompression() 27 { 28 return new static(lang('Core.enabledZlibOutputCompression')); 29 } 30 31 public static function forInvalidFile(string $path) 32 { 33 return new static(lang('Core.invalidFile', [$path])); 34 } 35 36 public static function forCopyError(string $path) 37 { 38 return new static(lang('Core.copyError', [$path])); 39 } 40

FLYEfit-Keith commented 1 year ago

I'm getting exactley as you are. Just to put it into context, I have been running CI4 in this project for about 6 months. I installed Shield about 2 months ago and installed Bonfire today, all through Composer. This may be an incomatable use case but I'm still investigating. Maybe a config file hasn't been updated properly in the Bonfire install process.

FLYEfit-Keith commented 1 year ago

So, master.php is the theme. For some reason Bonfire can't find it. However, I ran out of time. Already spent a few hours on it but I have to get back to work. I've removed Bonfire and may revisit in a few months.

dgvirtual commented 1 year ago

You might want to look at the shield config that is set by a fresh bonfire install. E.g., Shield views are not automatically compatible with Bonfire themes.

neznaika0 commented 1 year ago

Bonfire2 has no release for production. Don't expect 100% results from it. But you can always contribute via PR

keschat commented 4 months ago

Not sure if this has been resolved but I had same issue today after installing Bonfire2 for a trial. Resolved it by commenting out the following line from \App\Config\Routes.php file.

// service('auth')->routes($routes);

This line was initially part of shield setup which I had before installing Bonfire2.