Fixed  Rewrite language

lms

Well-known member
I get an error when trying to overwrite a language to import a translation:

Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry 'template_list-3' for key 'title' - library/Zend/Db/Statement/Mysqli.php:214

¿Bug?

Salud2

NOTE: opera not show buttons editor in xenforo.com
 

Vincent

Well-known member
I get an error when trying to overwrite a language to import a translation:

Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry 'template_list-3' for key 'title' - library/Zend/Db/Statement/Mysqli.php:214

¿Bug?

Salud2

NOTE: opera not show buttons editor in xenforo.com
About your note, this has just been fixed, look in the Resolved Bugs forum.
 

lms

Well-known member
only in RC3. Not solved.
I just ran into this - it's actually triggering what appears to be a bug in PHP with SimpleXML. It manifests itself in really strange ways. However, I stumbled upon this using way more queries than it should, and fixing that seems to have resolved this issue.

Salud2
 

Mike

XenForo developer
Staff member
This isn't something that I've been able to reproduce locally. It's possible it's related to the SimpleXML bug, but since your error is happening on template_list (which has a very strange version attached to it), it's hard to be sure; normally the issue goes back to the beginning of the XML.

Can you reproduce it consistently? Does anyone else have that issue with that language?
 

Alluidh

Well-known member
I had an error like this in the past only with special character for German languages. If I use (for example) an ü in the text it is showned as a special character in the XML after export. When I edit the XLM and use on one hand the ü and on the other hand the special character in the same phrase, I got an error overwriting the language and no error creating a new language.
 

lms

Well-known member
XenForo 1.0.0
Addons installed: in attach 16.png
Browser: safari 5
I get the same error importing spanish language overwriting Español Es Tu.
Attach file language pack.
captura1.png 13.png 14.png 15.png

I solved deleting language español Es Tu and reimporting.
Salud2
 

Attachments

Mike

XenForo developer
Staff member
If you can provide me FTP and admin CP access to your server where this is happening, I may be able to fix it. (I have to be able to reproduce it though, obviously.)
 

lms

Well-known member
Conversation started with the requested data. The error importing language: Español (ES) Tu - Importing error.

Salud2
 

Mike

XenForo developer
Staff member
Fixed now. Issue was caused by the phrase in the XML having a different add-on ID than the current phrase.
 

lms

Well-known member
Thanks, but the language was exported without addons and then, after some modification of the xml file, reimported.

Thank you very much, Mike.

Salud2
 
Top