Closed pietos closed 1 year ago
8.1
4.4.1
Manual (zip or tar.gz)
Windows
apache
MariaDB 10.2
Since I upgraded to 4.4.1 I can't use the base_url() anymore from the CLI. I verified this in multiple projects and it all results into:
[AssertionError]
assert($currentURI instanceof SiteURI)
at SYSTEMPATH\Helpers\url_helper.php:52
Similar to this issue: https://forum.codeigniter.com/showthread.php?tid=88410
Create a controller called worker and function test that includes base_url()
public function test() { echo base_url();exit; }
The base_url as a string
No response
It was fixed by #7901. Try the latest develop branch.
develop
PHP Version
8.1
CodeIgniter4 Version
4.4.1
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.2
What happened?
Since I upgraded to 4.4.1 I can't use the base_url() anymore from the CLI. I verified this in multiple projects and it all results into:
[AssertionError]
assert($currentURI instanceof SiteURI)
at SYSTEMPATH\Helpers\url_helper.php:52
Similar to this issue: https://forum.codeigniter.com/showthread.php?tid=88410
Steps to Reproduce
Create a controller called worker and function test that includes base_url()
Expected Output
The base_url as a string
Anything else?
No response