Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When submitting translated strings the submit handler fails due to call to a member function of a non-object.
Proposed resolution
Check if i18n_string_get_by_lid($lid) returns a valid object.
The same is done in i18n_string_locale_translate_edit_form() so I think this can be done here the same way.
But I have no overview of what you're doing here at all :)
Comment | File | Size | Author |
---|---|---|---|
i18n_string_submit_form_nonobject.patch | 800 bytes | LukyLuke_ch |
Comments
Comment #1
jgullstr CreditAttribution: jgullstr commentedThis is already fixed and commited in dev.
see #2227523: Fatal error: Call to a member function cache_reset() on a non-object in i18n_string.pages
Comment #2
jgullstr CreditAttribution: jgullstr commented