New 4.7.3 drupal install with yesterday's 4.7.0 ecommerce running on php 5.1.2. When creating a parcel I'm getting a number of array errors which are repeated when the parcel is displayed:
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in htdocs\modules\ecommerce\parcel\parcel.module on line 79.
* warning: array_unique() [function.array-unique]: The argument should be an array in htdocs\modules\ecommerce\parcel\parcel.module on line 79.
... (I think repeated for each item in parcel)
* warning: in_array() [function.in-array]: Wrong datatype for second argument in htdocs\modules\ecommerce\product\product.module on line 190.
The parcel is also shown as sold out - this is the latest version without the mispelling error seen in http://drupal.org/node/70360.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | parcel.module_0.patch | 264 bytes | allie micka |
Comments
Comment #1
adub commentedI've put the following on line 79 of parcel.module. Please be aware that I have no idea how this module works and it's a hack just to get rid of the error.
After:
/* With this approach, we can't have parcels within parcels! */
if ($product->ptype != 'parcel') {
I added:
if(!is_array($attributes)) { $attributes = (array)$attributes; }
Comment #2
allie mickaI fixed this similarly, by initializing the $attributes variable on line 79.
So, this:
Becomes:
Bumping this to critical because you can't create/use parcels without a slew of error messages
Comment #3
allie mickaFor those of you playing along at home, note my misspelling on "$attributes" in the above example. Instead use:
Comment #4
brmassa commentedfixed no v3
Comment #5
(not verified) commented