Title: &quot;illegal string offset&quot; error messages
Last modified: August 30, 2016

---

# "illegal string offset" error messages

 *  Resolved [robriggs](https://wordpress.org/support/users/robriggs/)
 * (@robriggs)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/)
 * getting multiple error messages: Warning: Illegal string offset ‘environment’
   in /home…
 * screenshot: [http://screencast.com/t/QMdE1EjKVQcS](http://screencast.com/t/QMdE1EjKVQcS)
 * [https://wordpress.org/plugins/woo-payment-gateway/](https://wordpress.org/plugins/woo-payment-gateway/)

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

 *  [Anadar](https://wordpress.org/support/users/dlfulle/)
 * (@dlfulle)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640241)
 * Not sure if it’s related but I’m seeing the same error on some calls to the WooCommerce
   REST API.
 * <?xml version=”1.0″ encoding=”UTF-8″?><root><Subscription><order_id></order_id
   ><product_id></product_id><variation_id></variation_id><status></status><end_date
   ></end_date><failed_payments></failed_payments><completed_payments></completed_payments
   ><suspension_count></suspension_count><last_payment_date></last_payment_date>
   </Subscription>Unknown error type: [2] Illegal string offset ‘order_id’
    Unknown
   error type: [2] Illegal string offset ‘product_id’ Unknown error type: [2] Illegal
   string offset ‘variation_id’ Unknown error type: [2] Illegal string offset ‘status’
   Unknown error type: [2] Illegal string offset ‘end_date’
 * Dave
    [Dave@wastelessbiztime.com](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/Dave@wastelessbiztime.com?output_format=md)
   [http://www.wastelessbiztime.com](http://www.wastelessbiztime.com)
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640243)
 * Hey Guys,
 * Sorry for the delay, you can email me directly at [mr.clyaton@wordpresspayments.co](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/mr.clyaton@wordpresspayments.co?output_format=md)
   if you like with questions as I check that on an hourly basis. The illegal offset
   issue is simply a warning and will not affect the functionality. I am guessing
   you are using a third party debugger plugin?
 * We will be addressing the warnings in our later release but for now you have 
   nothing to be concerned about functionality wise.
 * Kind Regards,
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640244)
 * [@robriggs](https://wordpress.org/support/users/robriggs/) Can you confirm which
   version of PHP you are running?
 * [@dlfulle](https://wordpress.org/support/users/dlfulle/) we have not integrated
   with any of the REST API functionality yet so those errors would be unrelated
   to the Braintree plugin.
 * In the next few days, we will be releasing an updated version that integrates
   fully with subscriptions 2.0. You will be able to create variable products and
   schedule recurring payments through Braintree or the subscription API.
 * Kind Regards,
    Clayton
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640259)
 * Hey Guys,
 * Since I haven’t heard back from you I will go ahead and mark this thread as resolved
   at the end of the day 10/16/2015.
 *  [Anadar](https://wordpress.org/support/users/dlfulle/)
 * (@dlfulle)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640261)
 * Sorry mr.clayton, as you said, my issue wasn’t related to the Braintree. I figured
   it out. There was a change in the response from the subscription manager which
   broke a method that I had. Was actually a small fix once I figured it out.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640267)
 * Glad you got it figured out. We just released a major version update which adds
   support for woocommerce subscriptions 2.0+
 * Let me know if you run into any issue.

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

The topic ‘"illegal string offset" error messages’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)

 * 6 replies
 * 3 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-error-messages-1/#post-6640267)
 * Status: resolved