I had this problem before with Drupal 4.7 - and today it happend again - but i have no clue where it comes from:
Some of the Field-Details are lost - and therefore the view itself breaks.
When i enter in edit-view-mode i can see, that some of the fields are empty, they are still there - but no labeling.
Now - i i just save the view - without doing anything - anything is fine again.
What is the reason for this? I was looking for a solution - as exactly the same error happend to me in drupal 4.7 - but i could not find any comment...
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | analyse.gif | 143.71 KB | chriszz |
Comments
Comment #1
merlinofchaos commentedWhat fields did this happen to?
Views tracks fields by table/field name combinations. If whatever provides these fields changes the table or field name, or just disappears, it can screw up Views that are utilizing this data; and Views currently is not good at ensuring that data remains sane and usable, so it behaves erratically when that happens.
Identifying what fields this happened to might be able to identify where the problem is coming from; it could be that some module developer utlizing the API is unaware of the impact of changing field names without updating the views.
(Please set back to 'active' when you answer -- thanks)
Comment #2
chriszz commentedi have analysed the PHP-Errors now:
It always breaks with Fields from the Profile Table:
The views represent content-types but i get certain information about the authors from the profile.module
any ideas, what is happening?
regards
Christian
Comment #3
cosmicdreams commentedAre you sure you didn't include a typo with "titel". Did you copy and paste that line?
Comment #4
chriszz commentedYes i 'am sure - i did paste and copy that line. Titel is german. I have a profile-field called Titel. it is not the same as title but the academic grade as Dr, and so on
Comment #5
chriszz commentedLook: Here is another one with the same problem: http://drupal.org/node/186104
Comment #6
chriszz commentedI did a small analysis between a working query - and a broken one. There are differences within this queries which are explained by different viewers. The right side is viewed by somebody with restricted view.rights, while the left side is viewed by me - Number 1. Therefore the WHERE-Clause is different - an that is okay. The problem is not within the where-clause - it is before - complaining that: Unknown column 'profile_anrede.value' in 'field list' query.
Now - please take a closer look - the left side is working - the right side is not working. What i can clearly see is, that at the right side many LEFT JOINS are lacking.
This happens very often - but i cannot find any scheme there. After some people did access the view - it breaks.
This is the view Export:
Comment #7
chriszz commentedComment #8
catchDid you try the fix at http://drupal.org/node/186104#comment-630799 ?
Comment #9
chriszz commentedYes - i brought those issues together.
Yes - it works now for me - it is "by design" i guess - because the way it works is still not the way i would expect it to work.
In my opinion it should never show fields, if there lecks an access right - not show sometimes, and other times show failures. But if one knows, it is okay.