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.
_uc_stock_send_mail calls $account = user_load($order); this call will fail!
creating some entries in the log...
Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (
the $account is not even used in the function so i think the call should just be removed...
Comment | File | Size | Author |
---|---|---|---|
#1 | stock.patch | 691 bytes | TR |
#1 | stock-D6.patch | 735 bytes | TR |
Comments
Comment #1
TR CreditAttribution: TR commentedI kept the $account in so it can be used for user tokens. Patch attached for D7 and for D6, which has a similar problem.
Comment #2
bwynants CreditAttribution: bwynants commentedworks fine
Comment #3
bwynants CreditAttribution: bwynants commentedtested and works
Comment #4
TR CreditAttribution: TR commentedCommitted to 6.x-2.x and 7.x-3.x.