Title: Warning: Illegal string offset &#8216;slug&#8217;
Last modified: January 24, 2022

---

# Warning: Illegal string offset ‘slug’

 *  [calfree](https://wordpress.org/support/users/calfree/)
 * (@calfree)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-slug/)
 * I am trying to work with the API and and looking at Postman I see in an article
   they talk about a v3 of wpapp. So just as matter of interest I go to the rest
   api url of a local site and I change the version of the rest api from 2 to 3.
   I get a long list of warnings and I’m wondering is this how it should be? Should
   it not rather say ‘not found’ instead of printing out warning with variables 
   and paths. Is that not a security risk?
 * The warning I get is this:
    Warning: Illegal string offset ‘slug’ in /home/cal/
   Local Sites/wpsite/app/public/wp-content/plugins/woocommerce/packages/woocommerce-
   admin/src/API/Reports/PerformanceIndicators/Controller.php on line 149
 * [http://localhost/mysite/wp-json/wp/v3](http://localhost/mysite/wp-json/wp/v3)

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

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-slug/#post-15284515)
 * There is no v3 of the WordPress REST API. _WooCommerce_ may have a v3 of its 
   API, but the endpoint of that is not `wp/v3`, it’s `wc/v3`.
 * The errors you’re seeing are unrelated to the WordPress REST API. They seems 
   to be issues with WooCommerce. I recommend asking at [https://wordpress.org/support/plugin/woocommerce/](https://wordpress.org/support/plugin/woocommerce/)
   so the plugin’s developers and support community can help you with this.
 *  Thread Starter [calfree](https://wordpress.org/support/users/calfree/)
 * (@calfree)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-slug/#post-15284739)
 * Thanks it’s actually a conflict with the JWT Auth plugin and I posted on their
   page about it. Apologies for posting in the wrong place

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

The topic ‘Warning: Illegal string offset ‘slug’’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [calfree](https://wordpress.org/support/users/calfree/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-slug/#post-15284739)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
