Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2010 at 16:46 UTC
Updated:
26 May 2011 at 17:22 UTC
I installed DrupalCommerce but most boxes were greyed out as Rules and Entity were needed. I don't see these listed anywhere as dependencies though??
When I installed Entity - I got this message:
Error message
FieldException: Attempt to create a field of unknown type commerce_line_item_reference. in field_create_field() (line 298 of mysite\drupal7\modules\field\field.crud.inc).
Followed by:
* Notice: Undefined index: teaser in _field_write_instance() (line 799 of C:\web\drupal7\modules\field\field.crud.inc).
* Notice: Undefined index: teaser in _field_write_instance() (line 799 of C:\web\drupal7\modules\field\field.crud.inc).
Comments
Comment #1
bojanz commentedGot the same error when installing from scratch (Ryan's github branch of Commerce, latest CVS of Rules and Entity).
Also got the above mentioned notices when enabling Product Reference (and Cart and Checkout along with it).
The notices are thrown from here:
With the offending line being:
My Drupal instance is a few weeks old, and I remember you making changes for alpha6, so maybe updating to a newer HEAD would fix this.
Comment #2
bojanz commentedI also get the following in the Cart view:
Debug: 'Missing handler: field_data_line_items line_items_line_item_id relationship' in views_get_handler() (line 724 of /home/bojan/public_html/drupal/sites/all/modules/views/views.module).
Which might be related to the first error...
Comment #3
bojanz commentedInstalled latest D7 HEAD, and all the latest modules.
The critical error is no longer there.
However, the two notices remain.
Comment #4
rszrama commentedThis still an issue?
Comment #5
bojanz commented@rszrama
As far as I know, they are gone (it was due to Entity, you found it on irc, fago said in his own queue that it's fixed).
I will do a reinstall to confirm.
Comment #6
rszrama commentedAs best as I can tell, the notices were coming from the creation of Price fields and a Product Reference field on the installation of the Product and Product Reference modules. I've updated the code to use the proper view modes when creating these fields, because the Product Reference field creation was using an outdated view mode and the Price field creation wasn't changing the view modes specified based on the type of entity the field was being added to. See the fix here:
http://github.com/rszrama/drupalcommerce/commit/1202c6a8fa4749984727b9b9...
Committing to CVS now so it can be tested. Use the latest versions of Views, Entity, and Rules, too.
Comment #8
aristeides commentedusing the latest dev versions of everything (including core) I'm still getting these notices...
Comment #9
rfay@aristeides, I imagine you have a failed install, where some fields were not successfully created.
You can figure out where the messages are coming from with the Commerce Devel module. But it's likely you'll have to uninstall and reinstall all commerce related modules. #858722: Cannot reinstall Commerce modules after uninstall due to field deletion failure, which I think you're in, has information about how to do a manual uninstall.