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.
According to the api documentation, entity_load should return all order entities with this call. I ran into this trying to get all entities using commerce's native commerce_order_load_multiple function.
Instead, calling entity_load this way gives the following fatal error:
PHP Fatal error: Unsupported operand types in /.../drupal-7.12/sites/default/modules/commerce/includes/commerce.controller.inc on line 43,
Comment | File | Size | Author |
---|---|---|---|
#1 | entity_load-without-ids-1528136-1.patch | 946 bytes | sfyn |
Comments
Comment #1
sfyn CreditAttribution: sfyn commentedFortunately, this was relatively easy to patch
Comment #2
rszrama CreditAttribution: rszrama commentedExcellent, thanks for the fix. Committed!
Comment #3.0
(not verified) CreditAttribution: commentedremove irrelevant path information from the fatal error text