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.
Getting this error when ordering a product with multiple files. My guess is that it is an issue with a product that has multiple file values attached. I'll try to test more, but so far I have done an order with a single file attached the the product and it worked perfectly. However, with a product that has multiple files in the commerce file value it throws this error.
Notice: Undefined property: stdClass::$name in theme_commerce_file_download_link() (line 476 of /sites/all/modules/commerce_file/commerce_file.module).
Thanks!
Comments
Comment #1
deggertsen CreditAttribution: deggertsen commentedOkay, I looked into this more and realized I was TOTALLY off. The problem is that "$file->name" need to be "$file->filename" instead on line 476 of commerce_file.module. Once I made that small change it worked as expected.
Thanks for the great module rework!
Comment #2
bojanz CreditAttribution: bojanz commentedWell, that was a stupid mistake :)
Committed the fix, thanks for reporting.
Comment #3.0
(not verified) CreditAttribution: commentedRemoved personal data.