Closed (duplicate)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2012 at 19:02 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andyg5000I've attached a simple patch that checks for existing and disabled fields before calling commerce_price_create_instance to prevent this error from being thrown. It is likely that a similar patch could fix the error in http://drupal.org/node/1361562.
Comment #2
andyg5000Setting as needs review
Comment #3
Peter Kashpurenko commented#1: fix_php_exception_for_existing_bundles-1580340-1.patch queued for re-testing.
Comment #4
andyg5000@bojanz explained to me that fields should not be created during hook_enable which is the root cause of this issue. The patch above fixes the fatal error for enabling commerce_product and could also be adapted to other sub modules of commerce. However, they do not fix the underlying problem discussed in http://drupal.org/node/1361562. Closing as duplicate.