CodeIgniter4 icon indicating copy to clipboard operation
CodeIgniter4 copied to clipboard

Fatal error: require(): Failed opening required '../vendor/codeigniter4/framework/system/bootstrap.php'

Open ghost opened this issue 6 years ago • 14 comments

my error is PHP Warning: require(D:\xampp\htdocs\myCIapp\app\Config/../../vendor/codeignite r4/framework/system/bootstrap.php): failed to open stream: No such file or direc tory in D:\xampp\htdocs\myCIapp\spark on line 44

Warning: require(D:\xampp\htdocs\myCIapp\app\Config/../../vendor/codeigniter4/fr amework/system/bootstrap.php): failed to open stream: No such file or directory in D:\xampp\htdocs\myCIapp\spark on line 44 PHP Fatal error: require(): Failed opening required 'D:\xampp\htdocs\myCIapp\ap p\Config/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path ='D:\xampp\php\PEAR') in D:\xampp\htdocs\myCIapp\spark on line 44

Fatal error: require(): Failed opening required 'D:\xampp\htdocs\myCIapp\app\Con fig/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path='D:
xampp\php\PEAR') in D:\xampp\htdocs\myCIapp\spark on line 44

why my project

ghost avatar May 19 '20 23:05 ghost

Run composer install

darklightcode avatar May 27 '20 12:05 darklightcode

ok thanks :)

ghost avatar Jun 08 '20 12:06 ghost

i have another problem : Your requirements could not be resolved to an installable set of packages.

Problem 1 - codeigniter4/framework v4.0.3 requires ext-intl * -> the requested PHP extension intl is missing from your system. - codeigniter4/framework v4.0.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. - codeigniter4/framework v4.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. - codeigniter4/framework 4.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. - Installation request for codeigniter4/framework ^4 -> satisfiable by codeigniter4/framework[4.0.0, v4.0.1, v4.0.2, v4.0.3].

To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

ghost avatar Jun 09 '20 07:06 ghost

ext-intl required.

Try composer commands; composer update --ignore-platform-reqs

byazrail avatar Jun 09 '20 09:06 byazrail

You need to enable the intl extension in your php.ini, it's part of server requirements for Codeigniter 4, they state that in the readme page. https://github.com/codeigniter4/CodeIgniter4#server-requirements

darklightcode avatar Jun 09 '20 09:06 darklightcode

Please, use the forum for the support questions.

michalsn avatar Jun 22 '20 15:06 michalsn

hade

rozaqabdul656 avatar Sep 26 '20 12:09 rozaqabdul656

I use linux, so this worked for me: composer update --ignore-platform-reqs

FabricioPatrocinio avatar Sep 29 '20 12:09 FabricioPatrocinio

not work for me here this error

PHP Fatal error:  Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() in /var/www/html/website_sekolah/vendor/codeigniter4/framework/system/CodeIgniter.php:184
Stack trace:
#0 /var/www/html/website_sekolah/vendor/codeigniter4/framework/system/bootstrap.php(181): CodeIgniter\CodeIgniter->initialize()
#1 /var/www/html/website_sekolah/spark(44): require('/var/www/html/w...')
#2 {main}
  thrown in /var/www/html/website_sekolah/vendor/codeigniter4/framework/system/CodeIgniter.php on line 184

fajarkun07 avatar Nov 17 '20 13:11 fajarkun07

composer update --ignore-platform-reqs is just a temporary hack to pass the installation stage. ext-intl is a required PHP extension by CI 4. If you will not enable intl you cannot use its defined functions (locale_set_default) and classes (MessageFormatter) which are used across the framework and you will just get fatal errors.

Enabling ext-intl is the permanent fix for this.

paulbalandan avatar Nov 17 '20 16:11 paulbalandan

i have a errorr with my project

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:\xampp\htdocs\ci4\vendor\codeigniter4\framework\system\Commands\Server/rewrite.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0

how? anybody know?

Imanur avatar Jun 21 '21 12:06 Imanur

i have a errorr with my project

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:\xampp\htdocs\ci4\vendor\codeigniter4\framework\system\Commands\Server/rewrite.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0

how? anybody know?

If you are using any antivirus app in your system, it does not allow to create rewrite fie.. So please stop that antivirus app and try to create new project.. Hope it will work

subasri2020 avatar Aug 24 '21 14:08 subasri2020

Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\ci4app\app \Config/../../vendor/codeigniter4/framework/system\bootstrap.php' (include_path= 'C:\xampp\php\PEAR') in C:\xampp\htdocs\ci4app\spark:45 Stack trace: #0 {main}

mnurulhuda2 avatar Nov 04 '21 20:11 mnurulhuda2

sesuaikan dengan versi xampp sebelumnya

arqprtma avatar Aug 01 '23 13:08 arqprtma