After installing the WYO theme and making it my default theme, the following warning was displayed at the top of my theme selection screen:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /themes/wyo/template.php on line 314.
The error seems to be referencing this line from template.php:
$output .= '<td><div class="'. $plink_div_class .'"><div class="plink_div_inner">'. l($link['title'], $link['href'], array('attributes' => array_merge($link['attributes'], array('class' => $class)), 'query' => $link['query'], 'fragment' => $link['fragment'], 'alias' => FALSE, 'html' => FALSE)) .'</div></div></td>';
Refreshing the screen makes the error go away. I'm using WYO 6.x-1.0-beta3 on Drupal 6.14. The problem seems to occur after first installing and activating the theme. I have not noticed that this affects functionality at all. It's more of a minor nuisance.
| Comment | File | Size | Author |
|---|---|---|---|
| templatephp.txt | 11.15 KB | exmentis |
Comments
Comment #1
exmentis commentedAfter further research, it appears that PHP5 differers from PHP4 in how it handles the array-merge function. Perhaps this is the root of the problem, which has since shown up several more times (randomly, it seems) on my Drupal site.
Ref: http://us.php.net/array_merge