WordPress整合社交登录不适用于PHP 7

时间:2018-03-16 06:59:37

标签: php wordpress php-7.1

我正在尝试将社交登录集成到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

请帮忙。

1 个答案:

答案 0 :(得分:0)

$this->http_header[$key] = $value;之前添加此代码:

$this->http_header = [];