Hi

I'm getting this PHP notice in the product listing view (admin/commerce/products).
I've found that the problem is originated in the Operations field in the view, this call of menu_contextual_links in the commerce_product_handler_field_product_operations handler:

$links = menu_contextual_links('commerce-product', 'admin/commerce/products', array($product_id));

This call looks for the admin/commerce/products/%commerce_product item link and the title callback is the function raising the error:

function commerce_product_ui_product_title($product) {
  return t('Product: @sku', array('@sku' => $product->sku));
}

I think that $product is a integer when called from the view and the callback is somehow expecting an object with SKU property.

Comments

rszrama’s picture

Out of curiosity, does applying #979958: load_functions detection for menu items broken by patch #606966 fix this issue? It was a patch related to the autoloading of entities based on the URL.

arcanys’s picture

Hi,

I have this problem too. Is this already fix?

- John

pcambra’s picture

Status: Active » Closed (fixed)

Thanks rszama, with the last drupal 7 dev, which includes the patch you mentioned, this is not happening anymore.