Closed shinokada closed 7 years ago
I am trying the module on Laravel 5.4.16. I tried to add a new language and get this error.
SQLSTATE[HY000]: General error: 1364 Field 'app_name' doesn't have a default value (SQL: insert into languages (name, native, abbr, flag, active, default) values (Norwegian Bokmål, Norsk bokmål, nb, , 1, 0)) in Connection.php line 647 at Connection->runQueryCallback('insert into languages (name, native, abbr, flag, active, default) values (?, ?, ?, ?, ?, ?)', array('Norwegian Bokmål', 'Norsk bokmål', 'nb', null, '1', '0'), object(Closure)) in Connection.php line 607 at Connection->run('insert into languages (name, native, abbr, flag, active, default) values (?, ?, ?, ?, ?, ?)', array('Norwegian Bokmål', 'Norsk bokmål', 'nb', null, '1', '0'), object(Closure)) in Connection.php line 450 at Connection->statement('insert into languages (name, native, abbr, flag, active, default) values (?, ?, ?, ?, ?, ?)', array('Norwegian Bokmål', 'Norsk bokmål', 'nb', null, '1', '0')) in Connection.php line 404 at Connection->insert('insert into languages (name, native, abbr, flag, active, default) values (?, ?, ?, ?, ?, ?)', array('Norwegian Bokmål', 'Norsk bokmål', 'nb', null, '1', '0')) in Processor.php line 32 at Processor->processInsertGetId(object(Builder), 'insert into languages (name, native, abbr, flag, active, default) values (?, ?, ?, ?, ?, ?)', array('Norwegian Bokmål', 'Norsk bokmål', 'nb', null, '1', '0'), 'id') in Builder.php line 2133 at Builder->insertGetId(array('Norwegian Bokmål', 'Norsk bokmål', 'nb', null, '1', '0'), 'id') in Builder.php line 1242 ......
languages
name
native
abbr
flag
active
default
In the database, there is app_name for native. Should I delete app_name in the database?
app_name
Ok, I deleted it according to this post.
I am trying the module on Laravel 5.4.16. I tried to add a new language and get this error.
In the database, there is
app_name
fornative
. Should I deleteapp_name
in the database?