The admin page of AudioField shows the following error on open:

url: ?q=admin/config/media/audiofield
Fatal error: Unsupported operand types in [...drupal]/includes/theme.inc on line 817

This line is part of the theme function in Drupal7 theme.inc:

function theme($hook, $variables = array()) {
...
  // Merge in argument defaults.
  if (!empty($info['variables'])) {
    $variables += $info['variables'];
  }
...
}

Comments

jide’s picture

Status: Active » Needs review

This is because the theme implementation of flowplayer is not correct.
In audiofield.module, line 326 :

function audiofield_flowplayer($player_path, $audio_file) {
  return theme('flowplayer', $audio_file, 'audiofield', array( 'style' => 'height: 24px', ));
}

Should be :

function audiofield_flowplayer($player_path, $audio_file) {
  return theme('flowplayer', array('config' => $audio_file, 'id' => 'audiofield', 'attributes' => array( 'style' => 'height: 24px')));
}
LagPRO-dupe’s picture

Jide, thanks, this fixed the problem. +1

swapna.m’s picture

thank you..

Taxoman’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev

Subscribing - will this be committed, or in need of more testing or confirmations?

Taxoman’s picture

Status: Needs review » Closed (duplicate)
2xe’s picture

The patch referenced in #5 works like charm for me.