Bonfire2
Bonfire2 copied to clipboard
Undefined variable $allowRemember
ErrorException
Undefined variable ^
VENDORPATH\lonnieezell\bonfire\src\Views\Auth\login.php at line 26
19 20 21 22
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
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.
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.
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.
Bonfire2 has no release for production. Don't expect 100% results from it. But you can always contribute via PR
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.