Welcome Guest, Not a member yet? Register   Sign In
Installation CI4 on laragon
#1

Hello

First congratulation for the new version 4.0.0. I wanted to test it and not possible to download it from the home page. I think it is just a temporary problem.

I found it https://github.com/codeigniter4/framewor...v4.0.2.zip

My environement : windows 2010 with laragon

I created a new website ci4, copy the source, add .env with the url
Then when I test my first default page

http://localhost/ci4/public/index.php

I have this error

Fatal error: Uncaught TypeError: Argument 1 passed to CodeIgniter\HTTP\URI:ConfusedetScheme() must be of the type string, null given, called in C:\laragon\www\ci4\system\HTTP\IncomingRequest.php on line 616 and defined in C:\laragon\www\ci4\system\HTTP\URI.php:625 Stack trace: #0 C:\laragon\www\ci4\system\HTTP\IncomingRequest.php(616): CodeIgniter\HTTP\URI->setScheme(NULL) #1 C:\laragon\www\ci4\system\HTTP\IncomingRequest.php(184): CodeIgniter\HTTP\IncomingRequest->detectURI('REQUEST_URI', 'localhost/ci4/') #2 C:\laragon\www\ci4\system\Config\Services.php(609): CodeIgniter\HTTP\IncomingRequest->__construct(Object(Config\App), Object(CodeIgniter\HTTP\URI), '', Object(CodeIgniter\HTTP\UserAgent)) #3 C:\laragon\www\ci4\system\Config\BaseService.php(123): CodeIgniter\Config\Services::request(Object(Config\App), false) #4 C:\laragon\www\ci4\system\Config\Services.php(597): CodeIgniter\Config\BaseService::getSharedInstance('request', NULL) #5 C:\laragon\www\ci4\system\Config\Services.php(274): CodeIgniter\Config\Services::request() # in C:\laragon\www\ci4\system\HTTP\URI.php on line 625
Reply
#2

I found my error
On the .env I had
app.baseURL = 'localhost/ci4'

It was wront.
I change onĀ  app.baseURL = 'http://localhost/ci4'

And it works. Sorry for this post but maybe that will help other.

I should close this post as resolved
Reply




Theme © iAndrew 2016 - Forum software by © MyBB