Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From http://drupal.org/node/697794#comment-2792338
Even i cannot reproduce the issue yet :)
Comment | File | Size | Author |
---|---|---|---|
#15 | 759082-foreach.patch | 607 bytes | dawehner |
#11 | views-759082-11.patch | 562 bytes | aspedia |
#6 | views-relationship-fix_0-6.x-2.x.patch | 1.03 KB | dawehner |
#1 | views-relationship-fix.patch | 640 bytes | dawehner |
views-relationship-fix.patch | 640 bytes | dawehner | |
Comments
Comment #1
dawehnerUpdate the patch again
Comment #2
adpo CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: merlinofchaos commentedCommitted to all branches.
Comment #8
brad.bulger CreditAttribution: 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 CreditAttribution: bojanz commentedComment #10
merlinofchaos CreditAttribution: merlinofchaos commentedComment #11
aspedia CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: akalata commented@angelil-il6 You should open up a new issue for your bug, as this one is already closed.