Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get this error when try to add views support to a product variations computed field
Error: Call to a member function getType() on null in commerce_price_form_views_ui_config_item_form_alter()
Comment | File | Size | Author |
---|---|---|---|
#2 | 3150380-2.patch | 903 bytes | facine |
|
Comments
Comment #2
facine CreditAttribution: facine as a volunteer and at Cambrico commentedComment #3
amateescu CreditAttribution: amateescu as a volunteer commentedI think this could be related to #3138565: \Drupal\commerce\CommerceEntityViewsData::getViewsData() shouldn't try to generate views data for computed fields, could you try that patch instead and see if it helps?
Comment #4
facine CreditAttribution: facine as a volunteer and at Cambrico commentedHi @amateescu, I've tried your patch but it doesn't fix this issue.
Comment #5
loze CreditAttribution: loze commentedPatch in #2 worked for me.
Comment #6
facine CreditAttribution: facine as a volunteer and at Cambrico commentedComment #7
SpokjeReproducible by: (Using latest Drupal Core
9.3.x
and Commerce2.25.0
)- Enable Content Moderation
- Enable Commerce Price
- Enable Workflow on Content Type (I've choosen `page`) here: /admin/config/workflow/workflows/manage/editorial
- Create node of type `page`
- Go to /admin/structure/views/view/moderated_content/edit/moderated_content
- Edit/Click Field
Content revision: Moderation state (Moderation state)
- Ajax error occurs, watchdog shows one notice and one error:
and
Comment #9
jsacksick CreditAttribution: jsacksick at Centarro commentedCommitted! Thanks everyone!