Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2009 at 07:01 UTC
Updated:
17 Dec 2009 at 07:22 UTC
This is really bizarre and I'm very stressed trying to figure it out. Every time I create a new view or clone a view, they are output after load with the same name.
This first manifested itself when I started noticing broken layouts. I inspected each view object before theming, and they all seem to be given the same name, despite obviously not being the same view.
There was some data corruption a few days ago on the db, but I have checked through it and can't see any reference in the database to the view name which is being output instead of the real one.
I'm really confused by this, could somebody point me in the right direction?
Comments
Comment #1
dawehnerCould you please give more informations...
How do you do it?
What happens if you edit them in the admin interface, are they the same there, too?
Comment #2
cameron tod commentedOk, so creating:
Go to admin/build/views/add. Create a view with a certain name (lets call it test). Set some basic info for demo purposes:
Now I'll demo it in the Ajax preview area, and see what comes out in the views header:
If I output the view at view load time (by using print_r in view.inc), the name is incorrect again. I have checked in views_view and views_display and there is no reference to the other view (which I have since deleted).
It doesn't appear to be being renamed by the theme layer OR the module layer beyond theming. I guess I could try disabling modules one by one to see if that helps...but it really does seem to be happening high up the chain. Weird I know.
Comment #3
cameron tod commentedWoops sorry guys.
You know how the act of explaining something can help you think it through? Well...here's the line that was causing all the trouble
In a hook_views_query_alter.
So I've now changed it to:
Thanks for any help! I needed it!
Comment #4
cameron tod commented