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 263We run WP on php 7 and this is compatibility issue.
OAuth1Clienthas$http_headerproperty declared as string. WhenOAuthClient1::getHeaderparses response headers it rises PHP Warning on line$this->http_header[$key] = $value;Please fix this by setting
$http_headertonullby default.
The topic ‘PHP Warning: Illegal string offset…’ is closed to new replies.