i am using 'codeigniter-facebook-google-login' library
Fatal error: Call to undefined function stream_context_get_params() in /application/libraries/oauth2/Provider.php on line 203
the code is as following.......
$opts = array('http' => array('method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query($params),));
$_default_opts = stream_context_get_params(stream_context_get_default());
$context = stream_context_create(array_merge_recursive($_default_opts['options'], $opts));
$response = file_get_contents($url, false, $context);
$return = json_decode($response, true);
my php version is 5.4.38 on server as per the php document stream_context_get_params is supported greater than the 5.3.0v
any one know what is the problem or alternative of the problem...
I dont know the library but the error is clear. Inspect the file "Provider.php" and ensure that either the function is declared somewhere in that file or that is requiring a file with the function that is missing. I am sure the function is available somewhere you just need to make it available in "Provider.php" and all will be good
Edit: as per your comment this is a native function of php 5.3> so if not available you must be running older version of php
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.