Bonfire2 icon indicating copy to clipboard operation
Bonfire2 copied to clipboard

Undefined variable $allowRemember

Open ProjectLinde37 opened this issue 1 year ago • 5 comments

ErrorException

Undefined variable ^

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

19 20 21 22

23 24
25 26 27
28 29 32
33

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

ProjectLinde37 avatar Jun 26 '23 06:06 ProjectLinde37

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 avatar Aug 14 '23 12:08 FLYEfit-Keith

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.

FLYEfit-Keith avatar Aug 14 '23 13:08 FLYEfit-Keith

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.

dgvirtual avatar Aug 14 '23 18:08 dgvirtual

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

neznaika0 avatar Aug 14 '23 19:08 neznaika0

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.

keschat avatar May 26 '24 20:05 keschat