Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error php spark #1

Open
makerror opened this issue Dec 5, 2022 · 4 comments
Open

Error php spark #1

makerror opened this issue Dec 5, 2022 · 4 comments

Comments

@makerror
Copy link

makerror commented Dec 5, 2022

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

@kodetumbuh
Copy link

mohon jelaskan secara detail bagaimana itu bisa terjadi dan kejadian nya seperti apa terimakasih

@makerror
Copy link
Author

setelah composer update, ERROR waktu php spark migrate. php spark serve jg error

@makerror
Copy link
Author

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

@kodetumbuh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants