enable the module, went to Site Configuration -> DB Tuner and got this :

warning: Invalid argument supplied for foreach() in /var/www/html/.../sites/all/modules/contrib/dbtuner/dbtuner.admin.inc on line 294.
warning: Invalid argument supplied for foreach() in /var/www/html/.../sites/all/modules/contrib/dbtuner/dbtuner.admin.inc on line 294.
warning: Invalid argument supplied for foreach() in /var/www/html/.../sites/all/modules/contrib/dbtuner/dbtuner.admin.inc on line 294.
warning: Invalid argument supplied for foreach() in /var/www/html/.../sites/all/modules/contrib/dbtuner/dbtuner.admin.inc on line 294.
warning: Invalid argument supplied for foreach() in /var/www/html/.../sites/all/modules/contrib/dbtuner/dbtuner.admin.inc on line 294.

I'm pressflow
Thanks

CommentFileSizeAuthor
#7 dbtuner-762186.patch761 bytesmikeytown2
#1 dbtuner-762186.patch10.22 KBmikeytown2

Comments

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new10.22 KB

put checks before most foreach statements

mikeytown2’s picture

Status: Needs review » Fixed

committed; new release should be out in about 4 hours if your not pulling from CVS.

mikeytown2’s picture

Status: Fixed » Needs review

be aware, last patch had errors; this fixes them. All in the repo
http://drupalcode.org/viewvc/drupal/contributions/modules/dbtuner/dbtune...

mikeytown2’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

_-.’s picture

Status: Closed (fixed) » Active

looks similar/related

with
pressflow revno 92
dbtuner 6.x-1.x-dev 2010-Jul-11 Development, Installed
// $Id: dbtuner.admin.inc,v 1.1.2.12 2010/06/01 20:53:49 mikeytown2 Exp $

@ http://.../admin/settings/dbtuner, @/after exec of: "Set index configuration"
Warning: Invalid argument supplied for foreach() in dbtuner_get_add_del() (line 289 of /www/1/sites/all/modules/dbtuner/dbtuner.admin.inc).

mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new761 bytes

odd error, because dbtuner_get_add_del() is processing the $form & $form_state arrays. I guess if you don't have any views in the list, you will get the error.
committed.

Status: Fixed » Closed (fixed)

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