warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mcs/www/dev/sites/all/modules/views/modules/node/views_plugin_row_node_rss.inc on line 117.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mcs/www/dev/sites/all/modules/views/modules/node/views_plugin_row_node_rss.inc on line 117.

The error message appears every time after I visit a Views RSS page on the site.
And usually the warning repeats for many lines in the error message.
Seems like to be triggering the warning every time a node is generated in the RSS page.

Comments

benkewell’s picture

Project: Views (for Drupal 7) » Content Templates (Contemplate)
Version: 6.x-2.6 » 6.x-1.1

The warning message only appears if I enabled Contemplate with custom RSS template for node type set.
So I believe it should be a Contemplate issue.

benkewell’s picture

Title: array_merge warning for views_plugin_row_node_rss.inc » Missing XML namespace if $xml_elements is set in RSS template
Status: Active » Needs review

ok, the issue is for using Contemplate with Views RSS display plugin
and it's found in fact to have two parts:

1.) warning message on array_merge() shown by views node RSS plugin
after viewing the view RSS display page for the nodes

2.) if $xml_elements is set in the Contemplate RSS template,
the RSS generated by Views RSS display plugin will be missing the default XML namespace:
xmlns:dc="http://purl.org/dc/elements/1.1/"

benkewell’s picture

Status: Needs review » Fixed

It seems to be a issue in my $xml_elements setting code causing the problem.
By declaring namespace in $xml_elements and using array of 'key' and 'value' pair,
the problem seems to be solved.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.