Codeigniter show warning |
I have installed codeigniter4 yesterday. When I pointed my browser to ci4.dev, I am getting some warning message i.e
Quote:( ! ) Warning: include_once(C:\wamp64\www\ci4\system\Debug/ImageException.php): failed to open stream: No such file or directory in C:\wamp64\www\ci4\system\Autoloader\Autoloader.php on line 153I have no idea with other framework technique. I am beginner and my framework starting base is CI.3. Currently I am using wamp server with php7.
Did you set your base_url in ./application/config/app.php
Did you set your paths in ./application/config/paths.php In XAMPP and phpStorm I have to map the public directory or it shows errors. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(05-31-2017, 04:20 AM)InsiteFX Wrote: Did you set your base_url in ./application/config/app.php yes I set the baseurl like this PHP Code: $baseURL = 'http://ci4.dev/'; Don't understand about path. I saw there is a public directory which already set to PHP Code: public $publicDirectory = 'public'; I am using wamp and root set to 'public' directory. Server name in virtual host is 'ci4.dev' and path set to 'c:/wamp64/www/ci4/public'
A couple of other users have reported this over at GitHub also, and both of them on Windows. It's definitely on my list of things to check into soon, but I'm super swamped with a deadline on a project right now so available time is pretty limited. Will try to look into it before the week is over, though. But - if someone running Windows wants to step through code and help debug, that would awesome.
![]()
(05-31-2017, 06:40 AM)kilishan Wrote: A couple of other users have reported this over at GitHub also, and both of them on Windows. It's definitely on my list of things to check into soon, but I'm super swamped with a deadline on a project right now so available time is pretty limited. Will try to look into it before the week is over, though. But - if someone running Windows wants to step through code and help debug, that would awesome. Thanks for your reply. waiting for your update. ![]()
when I var_dump in system\Autoloader.php at line number 152 before this line include_once $config[$class]; I got some line on my browser like this
Code: C:\wamp64\www\ci4\system\Autoloader\Autoloader.php:152:string 'C:\wamp64\www\ci4\system\CodeIgniter.php' (length=40) When I searched the file i.e Quote:system\Debug/ImageException.php I saw there are no file with this name. the file ImageException.php is present in system\Images\Exceptions directory and I also searched all file in ci4 directory with the text ImageException.php, I got a result that the filename with the path is present in system\Config\AutoloadConfig.php file. Here is the line- Quote:C:\wamp64\www\ci4\system\Config\AutoloadConfig.php (1 hit) May be I am wrong. But hope it helps you. Thanks ![]()
05-31-2017, 11:25 AM
(This post was last modified: 05-31-2017, 11:27 AM by InsiteFX. Edit Reason: Added environment part )
@kilishan
Strange, I am running Windows 10 Pro with XAMPP, PHP 7.1.4 and using phpStorm newest and it runs fine here. I also use vhost for mapping. It could be that they did not add the paths to the Windows Environment, I posted how to do this awhile back. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |