Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2009 at 23:10 UTC
Updated:
25 Jul 2009 at 11:50 UTC
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
Comment #1
benkewell commentedThe 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.
Comment #2
benkewell commentedok, 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/"Comment #3
benkewell commentedIt 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.