To reproduce this bug, go to a product edit form, click on "Options" tab, after adding several attributes, and this error appears :
Fatal error: Unsupported operand types ubercart/uc_attribute/uc_attribute.admin.inc on line 1003
PHP 5.3
To remediate this error, go to line 1003, on uc_attribute.admin.inc et replace
$header = array(array('data' => ' ' . t('Options')) + theme('table_select_header_cell'), t('Default'), t('Cost'), t('Price'), t('Weight'), t('List position'));
$table_id_num = $tables = 0;
by
$header = array(array('data' => ' ' . t('Options')) . theme('table_select_header_cell'), t('Default'), t('Cost'), t('Price'), t('Weight'), t('List position'));
$table_id_num = $tables = 0;
Best regards
Comments
Comment #1
Island Usurper commentedtheme_table_select_header_cell() has been removed from Drupal, so we need to figure out how it should be ported. Maybe using a #type => 'tableselect' element, but I'm not sure.
Comment #2
Island Usurper commentedBetter title so I remember what it's about.
Comment #3
lphm commentedGood!
Comment #4
Island Usurper commentedI decided that the tableselect element is just a little too limited, since I needed to put in radio buttons and checkboxes in the same table. So I just fake it by adding the CSS and JavaScript myself. No big deal.
Found some minor problems with the attribute forms, so got those fixed as well.