Hey there....just upgraded from CI 3.x, followed the upgrade instructions, have my $baseUrl defined in both app/config/App.php and .env (as app.baseURL), with ending slash, but every time I try to load the site, I'm welcomed with...
"Warning: Undefined property: Config\App::$baseURL in [site]/system/HTTP/IncomingRequest.php on line 178"
and
"Fatal error: Uncaught TypeError: CodeIgniter\HTTP\IncomingRequest::detectURI(): Argument #2 ($baseURL) must be of type string, null given, called in [site]/system/HTTP/IncomingRequest.php on line 178 and defined in [site]/system/HTTP/IncomingRequest.php on line 228"
and
"TypeError: CodeIgniter\HTTP\IncomingRequest::detectURI(): Argument #2 ($baseURL) must be of type string, null given, called in [site]/system/HTTP/IncomingRequest.php on line 178 in [site]/system/HTTP/IncomingRequest.php on line 228"
Did I miss a step somewhere???
Okay, figured it out. I set up a brand new local site using nothing but the base CI4 install and it loaded. The difference: for some reason on my erroring local site the variable "$baseURL" was changed to "$baseUrl." I switched that and now I'm getting a "No direct script access allowed" screen. Not what i want, but I'll take that easily over it not recognizing my baseURL.