我正在尝试将社交登录集成到WordPress中。我已经安装了插件https://wordpress.org/plugins/wordpress-social-login/。它适用于PHP 5.6.31版。当我将PHP版本更改为7.1.9时,它会在点击twitter身份验证按钮时显示大量警告。
Warning: Illegal string offset 'cache_control' in E:\wamp64\www\iedecode\wp-content\plugins\wordpress-social-login\hybridauth\Hybrid\thirdparty\OAuth\OAuth1Client.php on line 263
请帮忙。
答案 0 :(得分:0)
在$this->http_header[$key] = $value;
之前添加此代码:
$this->http_header = [];