Title: Warning: array_values() [function.array-values]: The argument should be an array
Last modified: August 21, 2016

---

# Warning: array_values() [function.array-values]: The argument should be an array

 *  [clever_name](https://wordpress.org/support/users/clever_name/)
 * (@clever_name)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_values-functionarray-values-the-argument-should-be-an-array/)
 * Version 3.7.3 – can’t update according to client. No new plugins added. The only
   change that I did was tried to add a coupon.
 * Here is the original live site: [http://www.swellbottle.com](http://www.swellbottle.com)
 * Here is the test site currently working in: [http://www.swell.test.clevernameseo.com/](http://www.swell.test.clevernameseo.com/)
 * I get this in the cart:
    [http://www.swell.test.clevernameseo.com/shop/checkout/](http://www.swell.test.clevernameseo.com/shop/checkout/)
 * `Warning: array_values() [function.array-values]: The argument should be an array
   in /home4/sindeez/public_html/swell.test/wp-content/plugins/wp-e-commerce/wpsc-
   theme/wpsc-shopping_cart_page.php on line 651`
 * This is in the wpsc-shopping_cart_page.php file
 *     ```
       <?php  //this HTML displays activated payment gateways   ?>
             <?php
   
                            $misc_error_messages = wpsc_get_customer_meta( 'gateway_error_messages' );
                            $message = array_shift(array_values($misc_error_messages));
                          if(!empty($misc_error_messages)){?><tr><td colspan="2" style="color:#ff0000"><?=$message?></td></tr><?php }?>
       ```
   
 * The payment settings are set to “test mode”.

The topic ‘Warning: array_values() [function.array-values]: The argument should 
be an array’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [clever_name](https://wordpress.org/support/users/clever_name/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_values-functionarray-values-the-argument-should-be-an-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
