-
-
Notifications
You must be signed in to change notification settings - Fork 207
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 when running "php spark migrate -all" #189
Comments
Sounds like you don’t have the SQLite PHP extension installed. Please review the CodeIgniter 4 server requirements. |
I have according to my xampp file "phpinfo.php" I am on PHP 7.3.5, Codeigniter 4.0.2 and I have installed Myth/auth today. |
Sometimes the database error occurs if a Composer installation fails. Can you verify if you install via Composer? Also make sure you are viewing phpinfo.php from the command line since PHP often runs different versions from browser and CLI, and you need spark to have access to the extension. |
MGatner, I have now installed SQLite and still get the following error when I run "php spark migrate -all": Running all new migrations... Type: Error agungsugiarto: Thank you. I might try it as a Plan B. |
I temporarily renamed the Test folder and run "php spark migrate -all". Now I got the this message: PHP Fatal error: Cannot declare class Myth\Auth\Commands\CreateGroup, because t And when I now check my db I have 16 Myth tables. Maybe they was migrated the first time I run the command and got the SQLite error. I don't know. Anyway, time to move on. |
In php.ini uncomment the following lines does solve the issue for me.
|
I myself just ran into this issue and solved it by running 2 commands sudo apt install php7.2-sqlite hope it helps! |
It's work for me too. Thanks a lot... |
Its work, thanks |
Thanks. its work. Terimakasih sejauh ini berhasil dengan cara sederhana |
Thanks. It work for me |
I have installed myth and I try to migrate you tables using the command "php spark migrate -all", but I get this error in my cmd:
Type: Error
Message: Class 'SQLite3' not found
Filename: C:\xampp\htdocs\ci4i\vendor\codeigniter4\framework\system\Database
SQLite3\Connection.php
Line Number: 89
The text was updated successfully, but these errors were encountered: