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

deggertsen’s picture

Title: Undefined property when product has multiple downloadable files » Undefined property "$file->name"

Okay, 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!

bojanz’s picture

Status: Active » Fixed

Well, that was a stupid mistake :)
Committed the fix, thanks for reporting.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Removed personal data.