Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2011 at 14:55 UTC
Updated:
16 Mar 2012 at 10:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedprofile2 is a module. I suggest you start with the profile2 module.
Comment #2
janicak commentedHello. I received the same error message, along with another:
Notice: Undefined index: user in field_views_field_default_views_data() (line 222 of /home/darkener/public_html/ad7/sites/all/modules/views/modules/field.views.inc).
Disabling profile2 got rid of the profile2 error, but had no effect on the above. This error appears on the top of the module list and on a views edit page with user fields.
Comment #3
yazzou commentedI need profile2 for my site, i was thinking of reverting back to th previous version of profile2 make my site working again, or hide notices...altering php.ini file, until a olution is found.
Comment #4
yazzou commentedI have reverted back to old profile2 version and cleaned the cache nothing changed
Comment #5
yazzou commentedI have commented the line 222 and the notice is gone...i would be very greateful if somebody finds a real solution for that.
Comment #6
dawehnerLet's move this issue to profile2, because this could be a bug of profile2.
If views assumes something here please move it back.
Comment #7
seaneffel commentedStrongly disagree. I have the same error but have never used Profile2. In fact, the only contrib modules running on my test site is Views 7.x-3.0-RC1.
Notice: Undefined index: user in field_views_field_default_views_data() (line 222 of /home/cedncsu/public_html/drupal2/sites/all/modules/views/modules/field.views.inc).
Comment #8
jastraat commentedThis is the same issue as #1194062 - which is completely unrelated to profile2
Comment #9
dawehnerI think i understand the problem, but sadly noone explained how to reproduce the problem.
Some entity types don't have revisions, so check it.
Comment #10
Stolinski commentedI am also getting this error after upgrading to 7.x-3.0-rc1 and I am not using profile2
Comment #11
neoglez commented@Scott_Tski Would you try the patch #9 ??
Comment #12
seaneffel commentedI can upload a copy of my db so you can see the error. There is nothing sensitive in there, just a vanilla D7.2 and Views RC1 and some test content. Let me know if that is helpful.
Comment #13
jastraat commentedI tried the patch, and I'm no longer getting the error.
Comment #14
00trav commentedTried patch in #9 and it seems to work. error gone and not negative consequences (that i have noticed).
Comment #15
neoglez commentedThis deserve RTBC.
Comment #16
JGO commentedPatch #9 seems to work for me too
Comment #17
smk-ka commented+1, patch is working fine.
Comment #18
dawehnerOne problem is that i never was able to reproduce this bug, and people don't tell how to do so.
Fortunately many people tryed out the patch so commited to 7.x-3.x
Comment #19
rickdrup commentedHad a slightly different error 'Notice: Undefined index: comment in field_views_field_default_views_data() (line 222 of ...' Applied patch, error gone, no problems so far.
Comment #20
dawehnerUpdate status
Comment #22
yousername commented+1
Patch #9 works for me too.
Thank you!
Any idea whether it's going to be committed to the next release of the module?
Comment #23
abeger commentedThanks! This has been bugging the heck out of me!
Comment #24
celiakyle commentedUm, not to sound like an idiot, but where do I past this within field.view.inc?
I know the issue surrounds line 222, but I have no idea what to overwrite or if I should just drop it at the end of the file.
Help?
Comment #25
00trav commentedYou have to apply the patch to the module code.
The process will vary depending on what operating system you are using and whether you are using Git.
for instance on most Linux system you can use the 'patch' command from the command line. So you would download the patch to the module base directory, then navigate there via command line and execute "patch -p1 < 1192666-field-entity_type-no-revision.patch "
See here for more info: http://drupal.org/patch
The comments have links to some documentation specific to Windows.
Comment #26
MatthijsG commentedPatch #9 worked for me, tnx
Problem appeared with module Date 7.x-2.x-dev
Comment #27
MatthijsG commented@ 24
This patch has only 1 line. Look for the line where - stands before and replace it with the + line. Very basic, but in this case it's only one line ;-)
Comment #28
shaneonabike commentedHas this issue been resolved I'm also receiving this problem
Comment #29
dawehnerUpdate status as this is already fixed in the dev version since quite some time.
Comment #30
ygerasimov commentedIn my case similar error
appeared after I added organic group reference field to the node. But of course patch #9 solves the issue. Thanks!
Comment #31
jdlind38 commentedThanks for the patch. #9 worked for me