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.
We have a fairly complex and heavily hooked locale module and found tmgmt to throw a mass of errors in the translation interface, for example:
/en-us/node/57791/translate
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
Warning: array_splice() expects parameter 1 to be array, null given in tmgmt_node_ui_node_form() (line 75 of /var/www/html/sites/all/modules/contrib/tmgmt/sources/node/ui/tmgmt_node_ui.pages.inc).
I'm not entirely sure what the code I corrected was attempting to do but this appears to correct it.
Comment | File | Size | Author |
---|---|---|---|
#5 | ui-fix.patch | 1.38 KB | xrxphawxby |
Comments
Comment #3
xrxphawxby CreditAttribution: xrxphawxby commentedComment #4
xrxphawxby CreditAttribution: xrxphawxby commentedAttempt 2, this time generating the patch correctly *sigh*
Comment #5
xrxphawxby CreditAttribution: xrxphawxby commented