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.
$title being empty, when t($title), returns a big array,
so the search results has as a title 'Array'
also maybe tt() should be used if translating variable.
For now, made a quick fix.
Comment | File | Size | Author |
---|---|---|---|
#1 | google_appliance_t.patch | 619 bytes | coderintherye |
google_appliance_array.patch | 617 bytes | aufumy | |
Comments
Comment #1
coderintherye CreditAttribution: coderintherye commented+1 For this. I was also getting this error. The proper way to use t is to escape the variables, as shown at http://api.drupal.org/api/drupal/includes--common.inc/function/t/6
So here is a patch which does that.
Comment #2
coderintherye CreditAttribution: coderintherye commentedOn a side note, the reason I saw "array" was because $title was getting passed as NULL. Presumably from:
Might be nice to add into the theme function that if $title is NULL to set it to 'Search results'. This is in the function declaration, but you have already declared it as NULL prior so it seems to stay as NULL when passed to the theme function.
Comment #3
lambic CreditAttribution: lambic commentedPatch works for me