BoltTranslate / Translate

Provides translation for contenttypes.
Other
43 stars 37 forks source link

[BUG] Back-end gets stuck when saving a translated html field #99

Closed zomars closed 7 years ago

zomars commented 7 years ago

I've made some tests, and it only happens when trying to save an html field in another language. I get this:

FatalErrorException in AbstractProcessingHandler.php line 29:
Error: Maximum execution time of 30 seconds exceeded

My contenttypes.yml

pages:
    name: Pages
    singular_name: Page
    fields:
        title:
            type: text
            class: large
            group: content
            is_translateable: true
        slug:
            type: slug
            uses: title
        image:
            type: image
        teaser:
            type: html
            height: 150px
            is_translateable: true
        body:
            type: html
            height: 300px
            is_translateable: true
        locale:
            type: locale
            group: content
        esdata:
            type: hidden
        esslug:
            type: locale_data
            index: true
        endata:
            type: hidden
        enslug:
            type: locale_data
            index: true

translage.animal.yml

locales:
    es_ES:
        label: Español
        slug: es
    en_GB:
        label: English
        slug: en
routing_override: false
menu_override: true
url_generator_override: true
translate_slugs: true
use_accept_language_header: true

Details

zomars commented 7 years ago

It seems to happen only with html fields where tags has some kind of attribute (like "class").

zomars commented 7 years ago

My buddy @ezerangel pinpointed the problem. By removing a templateselect type field in the contenttype.

SvanteRichter commented 7 years ago

zomars: So it was unrelated to the html field? Do you have templatefields in this record?

zomars commented 7 years ago

Yes, and fortunately no, it was the pages contentype but we weren't using it.

SvanteRichter commented 7 years ago

So, was the templateselect tagged as translatable?

Puddingboy commented 7 years ago

in my case no

Puddingboy commented 7 years ago

report from here: Translate Version: the dev and the 4.0.1 Install type: [ Extension Repository | Local install ] (installed from adminpanel) Bolt Version: 3.2.6 NOT-flat PHP version: 5.6.22 Used webserver: Apache/2 translate dev and 4.0.1 both responsed with infinite loading issue arrises when template field is present when the is_translatable option is not added

zomars commented 7 years ago

Neither in my case @SahAssar

SvanteRichter commented 7 years ago

Fixed now, could the both of you please update to the latest dev-master and see if it works for you too? Thanks!