Title: PHP Warning: Illegal string offset&#8230;
Last modified: September 26, 2018

---

# PHP Warning: Illegal string offset…

 *  [mazursv](https://wordpress.org/support/users/mazursv/)
 * (@mazursv)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-10/)
 * I constantly get a lot of warnings like
 * `PHP Warning: Illegal string offset 'cache_control' in wordpress-social-login/
   hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263`
 * We run WP on php 7 and this is compatibility issue.
 * `OAuth1Client` has `$http_header` property declared as string. When `OAuthClient1::
   getHeader` parses response headers it rises PHP Warning on line
 * `$this->http_header[$key] = $value;`
 * Please fix this by setting `$http_header` to `null` by default.

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

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-social-login_a1a2bc.svg)
 * [WordPress Social Login](https://wordpress.org/plugins/wordpress-social-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-social-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-social-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-social-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-social-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-social-login/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 0 replies
 * 1 participant
 * Last reply from: [mazursv](https://wordpress.org/support/users/mazursv/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-10/)
 * Status: not resolved