In the latest dev release of Ubercart, when I try to edit stock levels, the page breaks with this error:

Fatal error: Unsupported operand types in /Users/mndonx/Sites/drupal7/sites/all/modules/ubercart/uc_stock/uc_stock.admin.inc on line 263

That line is:

    array('data' => '  ' . t('Active')) + theme('table_select_header_cell'),

I read that theme('table_select_header_cell') is going away -- removing it solves the problem as well. Anyone else seen this problem?

Thanks!

CommentFileSizeAuthor
#2 uc-stock-ui.patch1.06 KBthreewestwinds

Comments

tr’s picture

threewestwinds’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Visiting node/123/edit/stock still gives a fatal error in the latest Dev version.

The attached patch fixes it, modelled after #914060: Can't use theme_table_select_header_cell() any more.

essbee’s picture

Yep that patch works for me. Fixes the problem and retains functionality.

longwave’s picture

Status: Needs review » Fixed

Committed, thanks for the patch and test report.

Status: Fixed » Closed (fixed)

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