Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product pricing
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2011 at 23:39 UTC
Updated:
19 Sep 2011 at 18:47 UTC
Price field throws an error when using it in a custom content type and submitting a content to that form:
Warning: unserialize() expects parameter 1 to be string, array given in function commerce_price_field_load() (row 85 / /htdocs/sites/all/modules/commerce/modules/price/commerce_price.module).
I'm using commerce 7.x-1.x-dev from 2011-07-08.
Tormi
Comments
Comment #1
tormiAlso, in spite of marking price field as a required field in that custom content type, it's actually not required when submitting a content.
Tormi
Comment #2
rszrama commentedIf I'm not mistaken, the original error is no longer appearing. I'm not sure how to reproduce it. However, I did corroborate the "required" problem; the field widget form callback wasn't accommodating either the required setting or the help text. I've committed a fix for that. Please reopen w/ instructions to reproduce the original problem if it's still occurring.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/e607a42
Comment #4
ablaa commentedI can't test 7.x-1.x-dev right now, but I can reproduce this in 7.x-1.0 when previewing the content