Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
1 Apr 2010 at 05:48 UTC
Updated:
16 Aug 2011 at 19:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerUpdate the patch again
Comment #2
adpo commentedwarning: Invalid argument supplied for foreach() in /home/stpeters/public_html/sites/all/modules/views/includes/admin.inc on line 1315.
warning: Invalid argument supplied for foreach() in /home/stpeters/public_html/sites/all/modules/views/plugins/views_plugin_display.inc on line 673.
same problem after patch.
PS. I`m using the latest 6.x-3.x-dev.
Comment #3
dawehnerAre you really sure this are the same problems?
Comment #4
dawehnerSeams to be a duplicate of #792184: Invalid argument supplied for foreach() ===> views_plugin_display.inc on line 679.
Comment #5
merlinofchaos commentedOk, patch no longer applies.
Comment #6
dawehnerThe patch just didn't applied to views 2.x, so here is a version for 2.x.
The 6.x-3.x patch still applies.
Comment #7
merlinofchaos commentedCommitted to all branches.
Comment #8
brad.bulger commentedsince picking up this change i am getting a fatal error trying to edit a view with a field from a relationship node:
Fatal error: Cannot use object of type content_handler_relationship as array in /var/www/medallurgy/ucsf/palive/modules/views/includes/admin.inc on line 1256
sorry, should add that i am using views 6.x-2.x-dev
Comment #9
bojanz commentedComment #10
merlinofchaos commentedComment #11
aspedia commentedHad the same problem on 6.x-2.x-dev. I applied the attached patch to fix the problem. Not sure if this is the correct approach, but it appears to work....
Comment #12
brad.bulger commentedi can confirm that this fixed the issue for me as well. at least, it made the error go away.
Comment #13
inforeto commentedHad the same related problem as #8 above solved with this patch, which i first posted on the flag module here: http://drupal.org/node/1000684
Fatal error: Cannot use object of type flag_handler_relationship_content as array in /home/******/public_html/modules/views/includes/admin.inc on line 1256
Which correspond to the same line of the patch on #11 above.
Applied the patch and the error went away.
Comment #14
michelleSame problem as #13 here and confirmed that the patch in #11 fixes it. Setting to needs review because aspedia seems unsure if it's done correctly. It definitely fixes the problem, though. :)
Michelle
Comment #15
dawehnerHere is a rerole for 6.x-2.x
The patch fixes the problem
Comment #16
michelleOh, I didn't even notice the version. The other patch worked on 2.x for me. LOL! Thanks for the new patch, dereine.
Michelle
Comment #17
merlinofchaos commentedTotally critical, this causes whitescreens.
Comment #18
dawehnerThis was commited already.
The follow up was commited, too.
#1011266: Error getting relationship handler label from non-object.
Comment #20
angelil-il6 commentedHello.
I am trying to change the server of my site: mywall.co.il
the new location will be at: http://mywall.talr.co.il
the DNS has not been updated yet...
currently, when I try and run from the new site, I get this error:
warning: Invalid argument supplied for foreach() in /var/www/vhosts/mywall.co.il/webapps/mywall/sites/all/modules/views/includes/view.inc on line 1747.
all I did was copy the files to the new location, no modifications were made.
Why am I getting this error ?
How can I fix it ?
Thanks
Angel
Comment #21
akalata commented@angelil-il6 You should open up a new issue for your bug, as this one is already closed.