简体   繁体   中英

WordPress integrating social login not working in PHP 7

I am trying to integrate social login in WordPress. I have installed the plugin https://wordpress.org/plugins/wordpress-social-login/ . It is working fine for the PHP version 5.6.31. When I change the PHP version to 7.1.9 it is showing plenty of warnings while clicking on the twitter authentication button.

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

Please help.

Add this code before $this->http_header[$key] = $value; :

$this->http_header = [];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM