AlexandrosD
Active member
There seems to be an error when importing a language .xml with many phrases via the Language Importer.
Reproduce in debug mode:
1) Export the English (US) language (βeta 5) with all XenForo phrases.
2) Edit the downloaded file and change the title value to something else, ex.
I get:
If I split the file (remove half of the phrases), it will get imported, no matter which phrases got deleted. I played with the php and mysql config files, but hadn't any luck.
Reproduce in debug mode:
1) Export the English (US) language (βeta 5) with all XenForo phrases.
2) Edit the downloaded file and change the title value to something else, ex.
<language title="English (US)"> to <language title="English (US)2">
3) Save and try to import the "new" language from the admin.php?languages/import page.I get:
Mysqli statement execute error : Duplicate entry 'about-N' for key 'title'
- Zend_Db_Statement_Mysqli->_execute() in \htdocs\xenforo\library\Zend\Db\Statement.php at line 312
- Zend_Db_Statement->execute() in \htdocs\xenforo\library\Zend\Db\Adapter\Abstract.php at line 479
- Zend_Db_Adapter_Abstract->query() in \htdocs\xenforo\library\Zend\Db\Adapter\Abstract.php at line 574
- Zend_Db_Adapter_Abstract->insert() in \htdocs\xenforo\library\XenForo\DataWriter.php at line 1500
- XenForo_DataWriter->_insert() in \htdocs\xenforo\library\XenForo\DataWriter.php at line 1489
- XenForo_DataWriter->_save() in \htdocs\xenforo\library\XenForo\DataWriter.php[/B] at line 1291
- XenForo_DataWriter->save() in \htdocs\xenforo\library\XenForo\Model\Phrase.php at line 1071
- XenForo_Model_Phrase->importPhrasesXml() in \htdocs\xenforo\library\XenForo\Model\Language.php at line 594
- XenForo_Model_Language->importLanguageXml() in \htdocs\xenforo\library\XenForo\ControllerAdmin\Language.php at line 267
- XenForo_ControllerAdmin_Language->actionImport() in \htdocs\xenforo\library\XenForo\FrontController.php at line 310
- XenForo_FrontController->dispatch() in \htdocs\xenforo\library\XenForo\FrontController.php at line 132
- XenForo_FrontController->run() in \htdocs\xenforo\admin.php at line 13
If I split the file (remove half of the phrases), it will get imported, no matter which phrases got deleted. I played with the php and mysql config files, but hadn't any luck.