PHP Warning: Illegal string offset…
-
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. WhenOAuthClient1::getHeader
parses response headers it rises PHP Warning on line$this->http_header[$key] = $value;
Please fix this by setting
$http_header
tonull
by default.
- The topic ‘PHP Warning: Illegal string offset…’ is closed to new replies.