Welcome Guest, Not a member yet? Register   Sign In
Error using base_url inside CLI route
#4

(09-05-2023, 01:36 PM)kenjis Wrote: Thank you for reporting.

Try this:

Code:
--- a/system/HTTP/CLIRequest.php
+++ b/system/HTTP/CLIRequest.php
@@ -71,6 +71,9 @@ class CLIRequest extends Request
        ignore_user_abort(true);

        $this->parseCommand();
+
+        // Set SiteURI for this request
+        $this->uri = new SiteURI($config, $this->getPath());
    }

    /**

It works, thanks! I'll wait the next update to use in production.
Reply


Messages In This Thread
RE: Error using base_url inside CLI route - by estherpeixoto - 09-08-2023, 04:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB