Laravel-Backpack / LangFileManager

A quick interface to edit Laravel language files, for Backpack.
http://backpackforlaravel.com
MIT License
92 stars 42 forks source link

When I add a new language I get an error. #34

Closed shinokada closed 7 years ago

shinokada commented 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 ......

In the database, there is app_name for native. Should I delete app_name in the database?

shinokada commented 7 years ago

Ok, I deleted it according to this post.