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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xrxphawxby created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, ui-fix.patch, failed testing.

xrxphawxby’s picture

FileSize
1.39 KB
xrxphawxby’s picture

Attempt 2, this time generating the patch correctly *sigh*

xrxphawxby’s picture

FileSize
1.38 KB