I just ran update.php, no errors were thrown. However when I looked in my site log I saw the following.

Warning: Invalid argument supplied for foreach() in views_update_6011() (line 511 of C:\xampp\htdocs\sandboxsite4\sites\all\modules\views\views.install).

Doesn't seem to be much of a problem but I wanted to point it out.

Comments

dawehner’s picture

Status: Active » Fixed

This function is not really important but fixed the issue.

edemicity’s picture

Project: Views (for Drupal 7) » Quotes
Version: 7.x-3.x-dev » 7.x-1.x-dev
Priority: Normal » Critical
Status: Fixed » Active
Issue tags: +quotes

I get this error on my site, I have tried all means to resolved but it fail, please any one with idea to help me;

Warning: Invalid argument supplied for foreach() in quotes_load() (line 412 of /home/anfoesec/public_html/shareyourworry.com/sites/all/modules/modules/quotes/quotes.module).

ctmattice1’s picture

Priority: Critical » Major

The error results from no quotes being selected. However, the function is currently faulty as it does not check for a result set before entering the foreach section.

Will fix this in the next dev release.

ctmattice1’s picture

Title: Warning: Invalid argument supplied for foreach() in views_update_6011() (line 511 » Invalid argument supplied for foreach() line 412 (Warning: Invalid argument supplied for foreach() in views_update_6011() )

changing title.

edemicity’s picture

How soon will the new release be out! what can i do now to fix the error. you can check that on www.shareyourworry.com.

Thanks

ctmattice1’s picture

You can temporarily disable the quotes block you have set up by changing the region to none

ctmattice1’s picture

Status: Active » Closed (duplicate)