• 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

    Here is the test site currently working in: http://www.swell.test.clevernameseo.com/

    I get this in the cart:
    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.