ikhsan3adi / absensi-sekolah-qr-code

Sistem absensi siswa dan guru berbasis QR Code menggunakan CodeIgniter 4 🔥
https://youtube.com/watch?v=E1ho6wRBIUs
GNU General Public License v3.0
248 stars 86 forks source link

php spark migrate error #30

Closed diengoes closed 1 year ago

diengoes commented 1 year ago

ketika melakukan migrasi database menggunakan perintah; php spark migrate --all itu error muncul seperti ini : PHP Fatal error: Uncaught Error: Undefined constant "CodeIgniter\ENVIRONMENT" in D:\xampp\htdocs\absensi\vendor\codeigniter4\framework\system\CodeIgniter.php:595 Stack trace:

0 D:\xampp\htdocs\absensi\vendor\codeigniter4\framework\system\CodeIgniter.php(207): CodeIgniter\CodeIgniter->bootstrapEnvironment()

1 D:\xampp\htdocs\absensi\spark(83): CodeIgniter\CodeIgniter->initialize()

2 {main}

thrown in D:\xampp\htdocs\absensi\vendor\codeigniter4\framework\system\CodeIgniter.php on line 595

Fatal error: Uncaught Error: Undefined constant "CodeIgniter\ENVIRONMENT" in D:\xampp\htdocs\absensi\vendor\codeigniter4\framework\system\CodeIgniter.php:595
Stack trace:

0 D:\xampp\htdocs\absensi\vendor\codeigniter4\framework\system\CodeIgniter.php(207): CodeIgniter\CodeIgniter->bootstrapEnvironment()

1 D:\xampp\htdocs\absensi\spark(83): CodeIgniter\CodeIgniter->initialize()

2 {main}

thrown in D:\xampp\htdocs\absensi\vendor\codeigniter4\framework\system\CodeIgniter.php on line 595

mohon solusinya

diengoes commented 1 year ago

setelah dicoba lg tetap tidak bisa, tapi muncul seperti ini: php spark migrate --all

CodeIgniter v4.4.3 Command Line Tool - Server Time: 2023-11-22 08:23:06 UTC+07:00

[TypeError]

CodeIgniter\Router\RouteCollection::__construct(): Argument #3 ($routing) must be of type Config\Routing, null given, called in D:\xampp\htdocs\attendance\vendor\codeigniter4\framework\system\Config\Services.php on line 618

at SYSTEMPATH\Router\RouteCollection.php:285

mohon solusinya

ikhsan3adi commented 1 year ago

Sudah di fix di update terbaru. Bisa download ulang