I have a major problem with all my views containing product referenced no-longer having (Referenced Line items or Referenced Products) as options in the views "Relationships". One of the most important views thats broken is "Shopping cart form (Commerce Order)". The line items no longer have pricing. Sometimes the entire view has no fields available.

I have tried dev versions as well as older versions of modules including (views, commerce_kickstart, entity) as well as a few others.

Each time I edit a view I get the dreaded message that "This view has been automatically updated to fix missing relationships...". Then my view has multiple broken/missing fields and relationships.

I am getting an error:
EntityMalformedException: Missing bundle property on entity of type commerce_order. in entity_extract_ids...
But that error is coming from [DOMAIN]/admin/structure/views/view/commerce_cart_form/preview/default/ajax
That error appears when I first edit the view. I recently updated to commerce_kickstart-7.x-2.x-dev but the problem still exists.

Forgot to mention my Drupal version is: drupal 7.34 but I have also reverted to: 7.32

Any help is greatly appreciated.

Thanks in advanced.

CommentFileSizeAuthor
#5 drupal_commerce_entities.png69.98 KBIvan_Dagreat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ivan_Dagreat’s picture

Issue summary: View changes
Ivan_Dagreat’s picture

Issue summary: View changes
Ivan_Dagreat’s picture

I resolved all errors (unrelated issues) but the view still has missing dependencies.

Now when i edit the view I only get:
This view has been automatically updated to fix missing relationships. While this View should continue to work, you should verify that the automatic updates are correct and save this view.

Ivan_Dagreat’s picture

I could really use some help with this if anyone has an idea.

Every view on the site that uses a "commerce_order" reference is broken.

  • Commerce Orders Page
  • Commerce Products Page
  • Invoice
  • Cart, Cart Form & Cart Summary
  • ect

Thanks

Ivan_Dagreat’s picture

FileSize
69.98 KB

One thing I have noticed while comparing this site to an older backup (too old to use) is that in the "Entity View Modes" there are far more entities listed under Commerce Product than the backup. And the new entities seem to be some sort of duplicate under "Commerce Product".

Example:

  • "Commerce Product: Commerce Line item: Display" also "Commerce Line item: Display"
  • "Commerce Product: Commerce Line item: Tokens" also "Commerce Line item: Tokens"

And plenty more that same way. See attached..

I know this could possibly be normal but I am just checking any and all options.

Please let me know if this is (un)common.

Thanks

lsolesen’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: -#views #commerce

It is hard to help you as there is really no telling when stuff went wrong for your relationships. Can you replicate the issue on a clean install? Otherwise, your best bet is probably to contract a Drupal Shop to fix the problems.

I do not know about the extra view modes.

On another note, it is not wise to upgrade or downgrade modules which is a part of CK distribution. The modules are tested to work together. Not with newer or older versions of the modules. Always perform such tasks on a dev-site.

Ivan_Dagreat’s picture

Thanks for the response lsolesen.

I actually tried to reach out to Commerce Guys but never received a response. Do you have a shop in mind?

mglaman’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Not sure what happened, but you can try reverting your views, because some customization must have happened (or commerce_product_reference disabled?)

Try Drupal Answers (http://drupal.stackexchange.com/) for better support responses (usually more timely than queue)