Open makerror opened 1 year ago
mohon jelaskan secara detail bagaimana itu bisa terjadi dan kejadian nya seperti apa terimakasih
setelah composer update, ERROR waktu php spark migrate. php spark serve jg error
lewat xampp... localhost/pos-project/public -> keluar error Fatal error: Uncaught Error: Call to a member function run() on int in D:\xampp\htdocs\pos-project\public\index.php:37 Stack trace: #0 {main} thrown in D:\xampp\htdocs\pos-project\public\index.php on line 37
install laragon dan pasang php versi 7.4 untuk projek ini, dan konfigurasikan seperti instruksi di web ini https://forum.codeigniter.com/showthread.php?tid=82087
php spark migrate PHP Fatal error: Uncaught TypeError: CodeIgniter\CLI\Console::__construct(): Argument #1 ($app) must be of type CodeIgniter\CodeIgniter, int given, called in D:\xampp\htdocs\pos-project\spark on line 49 and defined in D:\xampp\htdocs\pos-project\vendor\codeigniter4\framework\system\CLI\Console.php:29 Stack trace:
0 D:\xampp\htdocs\pos-project\spark(49): CodeIgniter\CLI\Console->__construct(1)
1 {main}
thrown in D:\xampp\htdocs\pos-project\vendor\codeigniter4\framework\system\CLI\Console.php on line 29
Fatal error: Uncaught TypeError: CodeIgniter\CLI\Console::__construct(): Argument #1 ($app) must be of type CodeIgniter\CodeIgniter, int given, called in D:\xampp\htdocs\pos-project\spark on line 49 and defined in D:\xampp\htdocs\pos-project\vendor\codeigniter4\framework\system\CLI\Console.php:29 Stack trace:
0 D:\xampp\htdocs\pos-project\spark(49): CodeIgniter\CLI\Console->__construct(1)
1 {main}
thrown in D:\xampp\htdocs\pos-project\vendor\codeigniter4\framework\system\CLI\Console.php on line 29