The /node/add/page gives me a white screen of death and the module listing page gives me the following warning (9, one per fieldset) :

warning: preg_match() expects parameter 2 to be string, array given in /Users/antoine/versioned/asobo/public_html/includes/bootstrap.inc on line 777.

The problem seems to be related to some code written to handle the fielsets.

Trying Seven under a drupal-6.14 install with cck,views and company, but I would think this is not related to other installed modules. (of course if needed I can provide a more extensive setup info)

I'm sorry I can't solve the problem (and suggest a patch), but I've pinpointed the problem to the following code (removing it solves the warnings and page add error, but leaves all the fielsets uncolapsible)

"template.php - line 83-89"

    if (!isset($element['#attributes']['class'])) {
      $element['#attributes']['class'] = array();
    }
    $element['#attributes']['class'][] = 'collapsible';
    if (!empty($element['#collapsed'])) {
      $element['#attributes']['class'][] = 'collapsed';
    }

Comments

Antoine Lafontaine’s picture

This bug is not present in beta2.

mcrittenden’s picture

Status: Active » Closed (duplicate)

Thanks for the detailed report and trying to find a fix. Marking as a duplicate for #626526: Error - template.php line 87 (uses classes as array instead of a string) since, even though the symptoms are different, the problem is the same.

By the way, if you were wondering why it's not present in Beta2, it's because Beta2 doesn't have the code to move the fieldset legends inside the fieldset. Instead, they just appear where normal fieldset legends appear. That's the code that's causing the problem, apparently due to an API change between D6 and D7.