2
Answers
Vote up!
0
Vote down!

File licenses not being assigned

My store has been working perfect for the last year and a half. Yesterday I had to manualy add a license file for a user through Store>File Licenses and clicking on the "Add a file license".

Since then every sale that has come through no file licenses has been allocated to them. When I look in the log file, it gives me this error: "Unable to evaluate action commerce_file_license_issue_order." .

When I go into the order under "LICENSE ORDER OPERATIONS" and I select " Sync to current product" and then press Create, it gives me the following error:
"Licenses could not be updated or created for Little Lien. Check the logs for any errors that occurred." Then when I go and look in the logs, it gives me this error: "EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityMetadataWrapper->set() (line 122 of /home/embrojpq/public_html/sites/all/modules/entity/includes/entity.wrapper.inc)."

I hope someone can help please!

Thank you

Asked by: Hendrik Martens
on August 17, 2013

2 Answers

Vote up!
0
Vote down!

I managed to fix the problem...after 20 sales have gone through without assigning any file licenses ;)

Yesterday before everything went screwed up, I added the zip file extention under Store>Configuration>License Settings in the "Allowed file extentions" and then I also ticked the "LICENSED FILE FIELD SETTINGS" - "Number of values" to unlimited. That one settings stuffed everything up!

When I changed the "Number of values" back to 1, I could go forth and asign the licenses to the purchases that weren't being assigned licenses without eny issues.

I hope this helps someone if they get stuck in the same issue ;)

Answer by: Hendrik Martens
Posted: Aug 17, 2013
Vote up!
0
Vote down!

Thank you so much for posting your solution. I was literally just minutes away from a re-install. For me, the error goes away (and the license can be set / sync to current product) when the value is set to 1. Any other value does not work.

Answer by: Brian
Posted: Aug 3, 2014