miled / wordpress-social-login

WordPress Social Login
http://miled.github.io/wordpress-social-login/
MIT License
401 stars 233 forks source link

PHP Warnings: Illegal string offset in OAuth1Client.php & Twitter.php #273

Closed slaFFik closed 4 years ago

slaFFik commented 6 years ago

Lots of them.

PHP Warning:  Illegal string offset 'cache_control' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'content_length' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'content_type' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'date' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'expires' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'last_modified' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'ml' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'pragma' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'server' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'set_cookie' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'set_cookie' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'status' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'strict_transport_security' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_connection_hash' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_content_type_options' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_frame_options' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_response_time' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_transaction' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_twitter_response_tags' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_ua_compatible' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'x_xss_protection' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263
PHP Warning:  Illegal string offset 'date' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/Twitter.php on line 61
PHP Warning:  Illegal string offset 'date' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/Twitter.php on line 61
PHP Warning:  Illegal string offset 'date' in /app/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/Twitter.php on line 63
lucianahanan commented 4 years ago

I also have this issue here. how to fix ?

adamlefeuvre commented 4 years ago

Had the same issue, fixed it by setting the http_header variable to be an array. Go to the file: plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php On line 34, set the variable to be "array();" (without the quotes) instead being "". Fixed!