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.
Problem
I have Fatal error with this module.
PHP Fatal error: Call to undefined function commerce_cart_order_is_cart() in [path_to_module]/inline_entity_form/includes/commerce_line_item.inline_entity_form.inc on line 106
Practical situation
I use commerce for backend only without cart etc, frontend is Flash application, so I do not use "commerce_cart" module.
This error appears on page "admin/commerce/orders/%commerce_order/edit" when i try to edit line items.
Proposed resolution
In first comment I will attach fix patch.
Comment | File | Size | Author |
---|---|---|---|
#1 | inline_entity_form-2108661-1.patch | 961 bytes | kalistos |
Comments
Comment #1
kalistos CreditAttribution: kalistos commentedFix patch.
Comment #1.0
kalistos CreditAttribution: kalistos commentedFix Description.
Comment #2
bojanz CreditAttribution: bojanz commentedActually, the first module_exists is wrong.
Committed a fix: http://drupalcode.org/project/inline_entity_form.git/commitdiff/fc71495?...