Title: Getting Illegal String Offset when completing order
Last modified: August 22, 2016

---

# Getting Illegal String Offset when completing order

 *  [mtduff99](https://wordpress.org/support/users/mtduff99/)
 * (@mtduff99)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/)
 * We get a page with these two lines printed over and over when hitting submit 
   on an order. The order goes through, but it appears to error out so people are
   submitting multiple orders.
 * Warning: Illegal string offset ‘sales’ in /homepages/4/d371164879/htdocs/wp-content/
   plugins/wp-e-commerce/wpsc-includes/purchase-log.class.php on line 165
 * Warning: Illegal string offset ‘earnings’ in /homepages/4/d371164879/htdocs/wp-
   content/plugins/wp-e-commerce/wpsc-includes/purchase-log.class.php on line 166
 * Please help!
 * [https://wordpress.org/plugins/wp-e-commerce/](https://wordpress.org/plugins/wp-e-commerce/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Edward](https://wordpress.org/support/users/edwardinstinct/)
 * (@edwardinstinct)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/#post-5892030)
 * Have you installed, upgraded, changed anything including the theme recently?
 * Can you provide a link to the site?
 * What versions do you have installed
 * WordPress V
    WP eCommerce V Gold Cart V
 *  Thread Starter [mtduff99](https://wordpress.org/support/users/mtduff99/)
 * (@mtduff99)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/#post-5892033)
 * Nothing has changed that I know of. Our site is sandpaperamerica.com. i will 
   add that it’s not every order. I tried a few that went through ok today, but 
   a majority didn’t.
 * WP: 4.1.1
    WP eCommerce: 3.9.1 Gold Cart: 2.9.7.5
 * Thanks,
    Mitch
 *  [Edward](https://wordpress.org/support/users/edwardinstinct/)
 * (@edwardinstinct)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/#post-5892047)
 * First… your Gold Cart is outdated and not compatible with the version of WPeC
   you’re using.
 * Current Gold Cart version is 2.9.7.8
 * That’s the only thing I can see being a problem from the outside.
 *  [Vitaliy Umanets](https://wordpress.org/support/users/vitaliy-umanets/)
 * (@vitaliy-umanets)
 * [11 years ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/#post-5892298)
 * WordPress 4.2.2
    WP eCommerce 3.9.3 Gold Cart for WP eCommerce 2.9.8 The same
   problem: [Wed May 27 00:53:56 2015] [warn] [client 92.249.88.98] mod_fcgid: stderr:
   PHP Warning: Illegal string offset ‘sales’ in /home/adsiitad20984/nwork.com.ua/
   wp-content/plugins/wp-e-commerce/wpsc-includes/purchase-log.class.php on line
   165, referer: [http://www.nwork.com.ua/products-page-2/checkout/](http://www.nwork.com.ua/products-page-2/checkout/)[
   Wed May 27 00:53:56 2015] [warn] [client 92.249.88.98] mod_fcgid: stderr: PHP
   Warning: Illegal string offset ‘earnings’ in /home/adsiitad20984/nwork.com.ua/
   wp-content/plugins/wp-e-commerce/wpsc-includes/purchase-log.class.php on line
   166, referer: [http://www.nwork.com.ua/products-page-2/checkout/](http://www.nwork.com.ua/products-page-2/checkout/)
 * Please help!
 *  Thread Starter [mtduff99](https://wordpress.org/support/users/mtduff99/)
 * (@mtduff99)
 * [11 years ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/#post-5892299)
 * Hello,
    I worked with WP E-Commerce Support to resolve the issue. I was told 
   they had to clear some meta data from the database to resolve the issue. I would
   recommend you get a support token to resolve the issue. You can reference my 
   case.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Getting Illegal String Offset when completing order’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-e-commerce_ebebeb.svg)
 * [WP eCommerce](https://wordpress.org/plugins/wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-e-commerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [mtduff99](https://wordpress.org/support/users/mtduff99/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/getting-illegal-string-offset-when-completing-order/#post-5892299)
 * Status: not resolved