FIX: WP e-Commerce Product Image Upload Problem

WP e-Commerce shopping cart, v3.8.6
WordPress, v3.2.1


Can’t complete a product image upload. I keep getting the following error after attempting to upload an image into the product’s description field:

“Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /XXXXXXXX/store.designparc/wp-content/plugins/wp-e-commerce/wpsc-admin/includes/display-items-functions.php on line 984”


File: root/wp-content/plugins/wp-e-commerce/wpsc-admin/includes/display-items-functions.php

Change line 1018:

$metadata[‘sizes’] = array_merge( $generated[‘sizes’], $metadata[‘sizes’] );


$metadata[‘sizes’] = array_merge( (array)$generated[‘sizes’], (array)$metadata[‘sizes’] );

Original solution post:

0 thoughts on “FIX: WP e-Commerce Product Image Upload Problem”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top