Needs review
Project:
Views Atom
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2012 at 17:57 UTC
Updated:
17 Aug 2016 at 14:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
adbo commentedThe offending statement was
$this->view->style_plugin->namespaces += $xml_rdf_namespaces;should be$this->view->style_plugin->namespaces = array_merge($this->view->style_plugin->namespaces, $xml_rdf_namespaces);since I don't think you can '+=' an array that doesn't already exist.Patch to follow shortly
Comment #2
adbo commentedHere is the simple patch.This patch produces the following warnings: Warning: array_merge() [function.array-merge]: Argument #1 is not an arrayI will replace this patch to correct this.
Comment #3
adbo commentedUpdated patch attached
Comment #4
adbo commentedBetter formatted patch
Comment #5
jmdeleon commentedNone of the patches in this issue worked for me.
There appears to be a related issue directly in the Views issue queue. I submitted a patch to Views in that issue that resolved the issue for me.
Comment #6
jmdeleon commentedAfter running into other similar errors with this module, I am attaching a patch to the Views Atom module itself, which initializes the namespace array in the Views display plugin.