Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

FileSize
640 bytes

Update the patch again

adpo’s picture

warning: 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.

dawehner’s picture

Are you really sure this are the same problems?

dawehner’s picture

merlinofchaos’s picture

Status: Needs review » Needs work

Ok, patch no longer applies.

dawehner’s picture

Status: Needs work » Needs review
FileSize
1.03 KB

The 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.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to all branches.

brad.bulger’s picture

since 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

bojanz’s picture

Status: Fixed » Active
merlinofchaos’s picture

Assigned: Unassigned » merlinofchaos
aspedia’s picture

FileSize
562 bytes

Had 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....

brad.bulger’s picture

i can confirm that this fixed the issue for me as well. at least, it made the error go away.

inforeto’s picture

Had 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.

Michelle’s picture

Status: Active » Needs review

Same 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

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
607 bytes

Here is a rerole for 6.x-2.x

The patch fixes the problem

Michelle’s picture

Oh, I didn't even notice the version. The other patch worked on 2.x for me. LOL! Thanks for the new patch, dereine.

Michelle

merlinofchaos’s picture

Priority: Normal » Critical

Totally critical, this causes whitescreens.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

This was commited already.

The follow up was commited, too.
#1011266: Error getting relationship handler label from non-object.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

angelil-il6’s picture

Title: Invalid argument supplied for foreach in admin.inc line 1296 » Invalid argument supplied for foreach()

Hello.

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

akalata’s picture

Title: Invalid argument supplied for foreach() » Invalid argument supplied for foreach in admin.inc line 1296

@angelil-il6 You should open up a new issue for your bug, as this one is already closed.