-
Notifications
You must be signed in to change notification settings - Fork 780
Local development
cosenary edited this page Apr 3, 2013
·
3 revisions
If you intend to use the Instagram class in a local dev environment, you might experience an error with localhost:
Notice: Trying to get property of non-object in C:\xampp\htdocs\works\instagram\index.php on line 12
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\works\instagram\index.php on line 12
This can be solved by adding the following options to cUrl in the _makeCall()
method:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
Thanks @thefrosty for pointing out the issue with cURL.