I have tried to make some minor corrections to several of the pages in the Drupal handbook but each time I submit the edited page for consideration, I get this error:

warning: implode(): Bad arguments. in /var/www/drupal.org/includes/theme.inc on line 37.

Comments

ax’s picture

this error has been reported a hundred times. it is caused by theme.inc::links() expecting an array as first parameter but getting a string or nothing. there is a bug report for this [1] which has been marked "Won't fix" and advises to <cite>make sure you call the functions with the expected arguments</cite>.

as mentioned in the bug report, i don't really agree with this conclusion and would prefer to check for a valid parameter in links(). we will keep getting and having to support these errors ...

anyway: the caller that causes your special error seems to be taxonomy.module::taxonomy_link() called from xtemplate.theme. for nodes w/o terms assigned (such as bug reports are) it returns nothing. the return at line 62 of taxonomy.module should probably changed to

return is_array($links) ? $links : array();

[1] http://drupal.org/node/view/1186

Philippe’s picture

If this is a duplicate bug report, it should be marked as such instead of polluting the issue tracker. If someone disagrees with the "Won't fix" status, it should be discussed as follow up of the original bug report.

Duplicate of http://drupal.org/node/1186