This fixes it for me.

diff --git dbtuner.admin.inc dbtuner.admin.inc
index ab9e809..eec4bae 100644
--- dbtuner.admin.inc
+++ dbtuner.admin.inc
@@ -281,12 +281,12 @@ function dbtuner_views_filters_relationshps() {
       foreach ($filters as $name => $filter) {
         if (!empty($filters['type']['value'])) {
           foreach ($filters['type']['value'] as $key => $value)
-          $indexes[$filter['table']][$filter['id']]['node-type'][$key] = $value;
+          $indexes[$filters['table']][$filters['id']]['node-type'][$key] = $value;
         }
         else {
-          $indexes[$filter['table']][$filter['id']]['node-type']['-1'] = 'all';
+          $indexes[$filters['table']][$filters['id']]['node-type']['-1'] = 'all';
         }
-        $indexes[$filter['table']][$filter['id']]['relationship'] = $filter['relationship'];
+        $indexes[$filters['table']][$filters['id']]['relationship'] = $filters['relationship'];
       }
     }
     if (!empty($relationships)) {

Also, there's a minor typo in this file ... it's "wish", not "whish".

Comments

mathieu’s picture

Status: Active » Needs review
StatusFileSize
new964 bytes

Not being lazy anymore, here's the same thing in a patch file.

Toxid’s picture

I have the same problem, but I can't apply your patch. I'm using TurtoiseMerge, when I load the files it shows nothing. It looks like the files don't get loaded.

EDIT: I noticed it happens to all patches I try to apply, so it's probably some setting I'm not seeing.

mikeytown2’s picture

Status: Needs review » Needs work
StatusFileSize
new1.42 KB

@mathieu, @toxid
mind running this patch as a debugging tool? Attach/Post the output from drupal_set_message.

The current patch is not the correct solution. I can not replicate the problem, so this output should let me see whats going on.

mikeytown2’s picture

StatusFileSize
new1.18 KB

@jwilde, @mathieu, @toxid
mind running this patch as a debugging tool? Attach/Post the output from the "DEBUG MSG" drupal_set_message.

mikeytown2’s picture

Title: Cannot use string offset as an array in dbtuner.admin.inc on line 284 » Cannot use string offset as an array in dbtuner.admin.inc on line 489
kanani’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha1
StatusFileSize
new409.4 KB

I have experienced this error while accessing admin/settings/dbtuner/ and admin/settings/dbtuner/index.

Access it /engine, /collation, and /mysqltuner does not generate the error.

I have also used been able to access the dbtuner and dbtuner/index successfully on a different site.

Results of the DEBUG MSG patch attached.

mikeytown2’s picture

Status: Needs work » Needs review
StatusFileSize
new1.41 KB

give this a shot

kanani’s picture

StatusFileSize
new739 bytes
new31.83 KB

No dice.

I think the issue is that it's trying to unset node-type, but for the index on my site that's throwing the error, node-type doesn't exist.

modifying the if to check to see that the index isn't set to none allows the page to load. Not sure how it affects the functionality though.

Patch to dbtuner-762306.patch attached

mikeytown2’s picture

StatusFileSize
new1.31 KB

can you try this?

mikeytown2’s picture

StatusFileSize
new1.64 KB

no, try this

kanani’s picture

patch in #10 works. thanks.

mikeytown2’s picture

Status: Needs review » Fixed

committed #10

Status: Fixed » Closed (fixed)

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