Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2008 at 16:20 UTC
Updated:
5 Jan 2010 at 18:15 UTC
Scenario:
1) Installed OG module
2) Overriden og_php_ron
3) Bulk export to an include file, system will give error :
warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in /includes/module.inc on line 473.
My solution so far is to prefix the Views name with the module name, but I don't know if it's the right direction for a generalized patch. If it's the right solution I can provide a patch.
Comments
Comment #1
merlinofchaos commentedIt is not technically valid to export the same view in two modules; the name IS meant to be unique, and in a module theoretically you can test for that.
I guess it could be considered a bug that Views does not handle this gracefully, though I can also provide the workaround of "Don't do that". =)
Comment #2
dawehnerShouldn't this be possible with using array_merge instead of array_merge_recursive
Comment #3
dodorama commentedsimply change the name of the exported view in something like default_view_overridden?
Comment #4
kenorb commentedYes, it's caused by duplicated exported views. Thanks.
Here is backtrace:
Comment #5
amitaibuduplicate of #455364: Duplicate view name causes module_invoke_all('views_default_views') error due to recursion