-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
sqlite error while inserting new record #232
Comments
Just get your sources. And create messages. All works ok. So i think problem on your server. |
Hi, thank you very much for the debugging, so I have to figure out, what's Von: rusmaxim [email protected] Just get your sources. And create messages. All works ok. So i think problem ‹ |
I think it may be useful |
Is the directory containing your sqlite file writable? |
Yes 777 Von meinem iPhone gesendet Am 11.05.2013 um 14:01 schrieb Qiang Xue [email protected]:
|
disk space problems? any special open_base_dir restrictions or other things active? |
thanks for the many answers and suggestions! The think is, that on my external webserver it works, but on my local machine it fails:( with yii 1.11 I have no problems! The owner of the db-file is: staff |
For complete enviroment here the log enty while I try to insert: 2013/05/11 18:55:17 [::1] [error] [yii\db\Command::execute] SQLSTATE[HY000]: General error: 14 unable to open database file $_POST = array ( $_COOKIE = array ( $_SESSION = array ( $SERVER = array ( |
ok, finaly found another possible reason... textarea id="messages-body" rows="10" name="Messages[body]" |
So it works now? After you changed a text areas id? |
Ok, I'm still in "search" mode! And it's not the textareas id -> and although not the database access! I can easily read and write with other components... I created a simple console controller thanks to @cebe ! and with this it's easy to create users or messages complete project can be found in the repo and running sample is online under www.frenzel.net ... |
I close it, as it works online without any problems... can't figure out the local problem:( but must be a fault of my configuration... if you don't agree, pls. reopen;) |
I had this problem too. You must set mode 777 on directory which contains sqlite database, and all will work. |
don't recommend chmod 777 ...
gives you |
@elyzov THX a lotttttttt!!!!!!!!! That costs me lots of time to find the answer |
Database Exception (yii\db\Exception)
SQLSTATE[HY000]: General error: 14 unable to open database file
But, the db is readable and writable! (777)
Source can be found here:
https://github.com/philippfrenzel/frenzelgmbh/blob/master/app/controllers/MessagesController.php
The text was updated successfully, but these errors were encountered: