Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#13461 closed bug (fixed)

Changes in "Full Edit" mode aren't applied

Reported by: humdinger Owned by: waddlesplash
Priority: normal Milestone:
Component: Website/Userguide Translator Version:
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Something weird's going on at the translation site of the user guide.

I added a bit on keyboard shortcuts to the Vision page yesterday. Today I wanted to add another line as first row in the table:

<tr><td><span class="key">TAB</span></td>
<td style="width:15px;"></td>
<td>Tab-completion like in Terminal: After entering a few letters of a nickname, hitting <span class="key">TAB</span> completes to the first matching nickname.</td></tr>

Clicking "Validate edit" works, I view the changes and enter the commit message, but when I finally "Submit edit", I only get a blank page. With QupZilla it says error code "500".

Looking at the translation of that page, I see "undefined" instead of the h2 headers.

I notice the "Revision" when full editing the Vision page says: "Revision: /srv/www/i18n-htdocs/userguide/source_docs/userguide/en/applications /srv/www/i18n-htdocs/userguide (current)". Clicking on "Load another..." I see the one I did yesterday is named quite differently: "Revision d985f1a846eee3adf72db44bfc3d4ae0b679281b"

For giggles, I changed a comment in the "Deskbar" page in "Full Edit" mode. That one I could submit and also submit again after removing the change again.

What makes the Vision page so specially broken?

Attachments (2)

Vision_current.html (16.7 KB) - added by humdinger 2 years ago.
the current Vision "Full Edit"
Vision_new.html (17.0 KB) - added by humdinger 2 years ago.
the Vision page with the addition that wouldn't take

Download all attachments as: .zip

Change History (9)

comment:1 Changed 2 years ago by waddlesplash

Hmm. I have a guess of what's going on here, but I'm not quite sure -- it seems the XML parser is somehow failing. Can you upload a complete copy of the full-edited page so I can test offline?

comment:2 Changed 2 years ago by humdinger

I attached Vision_current.html and Vision_new.html which contains the additional first row in the keyboard shortcuts table.

Changed 2 years ago by humdinger

Attachment: Vision_current.html added

the current Vision "Full Edit"

Changed 2 years ago by humdinger

Attachment: Vision_new.html added

the Vision page with the addition that wouldn't take

comment:3 Changed 2 years ago by waddlesplash

Strange, I can load both of those into my offline test instance. I suppose I should plumb the error logs on the live server..

comment:4 Changed 2 years ago by humdinger

May be related, only happens on the Vision site: I can do a block edit of the English original page, but when trying to update that block e.g. on the German page, I get an alert:

There was an error sending the translation. Please retry.
The source text seems to have changed since you opened the translation page.

I did try to reload the page first etc.

comment:5 Changed 2 years ago by waddlesplash

OK, I finally managed to extract an error for this:

Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '40-8a57542c0d5ae0986194069391c35f40' for key 'doc_md5'' in /srv/www/i18n-htdocs/userguide/inc/common.php:150
Stack trace:
#0 /srv/www/i18n-htdocs/userguide/inc/common.php(150): PDOStatement-&gt;execute(Array)
#1 /srv/www/i18n-htdocs/userguide/edit.php(539): db_query('\n\t\t\t\t\tINSERT IN...', Array)
#2 /srv/www/i18n-htdocs/userguide/edit.php(502): update_translations(Object(DOMElement), Array)
#3 /srv/www/i18n-htdocs/userguide/edit.php(502): update_translations(Object(DOMElement), Array)
#4 /srv/www/i18n-htdocs/userguide/edit.php(502): update_translations(Object(DOMElement), Array)
#5 /srv/www/i18n-htdocs/userguide/edit.php(502): update_translations(Object(DOMElement), Array)
#6 /srv/www/i18n-htdocs/userguide/edit.php(235): update_translations(Object(DOMDocument), Array)
#7 {main}
  thrown in /srv/www/i18n-htdocs/userguide/inc/common.php on line 150

This doesn't look like it's going to be fun to debug.

comment:6 Changed 2 years ago by waddlesplash

Resolution: fixed
Status: newclosed

OK, the problem turned out to be some corruption in the database. I fixed that, and imported the New document.

comment:7 Changed 2 years ago by humdinger

Thanks, that did it! I was able to add that row to the keyboard shortcuts on the Vision page!

Note: See TracTickets for help on using tickets.