PHP Fatal error: Unsupported operand types

Created on 31 October 2013, about 11 years ago
Updated 17 January 2024, 10 months ago

I installed Datatables 7.x-1.2 on drupal version 7.23 and also DataTables 1.9.0 When I tried to access the table, i get the error: PHP Fatal error: Unsupported operand types in /var/zpanel/hostdata/devel2/public_html/includes/form.inc on line 1037.

I insured I had placed the media folder where it needed to be and use drupal.

Here is my code

$attributes['datatable_options'] = array(
  'bFilter' => TRUE,
  'bInfo' => TRUE,
);

$build['datatable'] = array(
  '#theme' => 'table',
  '#header' => $header,
  '#rows' => $rows,
  '#attributes' => $attributes,
);

$variables = array(
  'attributes' => $attributes,
  'header' => $header,
  'rows' => $rows,
);

$output = theme('datatable', $variables);
return $output;

Any ideas where the bug is?

💬 Support request
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

🇮🇩Indonesia rovandi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024