This release fixes the issue where if your data folder isn't called "data", so it'll make a folder called instagram regardless what your data folder name is.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
fopen has been enabled on my accounts php.ini
and added this to instagram/lib/instagram.php file
but the profile page get broken, new log errors are:
[Wed Feb 25 06:26:27 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:26:27 (EST): "file_get_contents(https://api.instagram.com/v1/users/search?q=username&access_token=000000000.bf31711.377d5578ba95435285c5ad6b000c000b) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found" in file /home/public_html/mod/instagram/lib/instagram.php (line 124), referer: http://home.net/profile/stefano
[Wed Feb 25 06:26:27 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:26:27 (EST): "file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0" in file /home/public_html/mod/instagram/lib/instagram.php (line 124), referer: http://home.net/profile/stefano
[Wed Feb 25 06:26:19 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:26:19 (EST): "file_get_contents(https://...@hotmail.com&access_token=000000000.bf31711.377d5578ba95435285c5ad6b000c000b) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found" in file /home/public_html/mod/instagram/lib/instagram.php (line 124), referer: http://home.net/profile/stefano
[Wed Feb 25 06:26:19 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:26:19 (EST): "file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0" in file /home/public_html/mod/instagram/lib/instagram.php (line 124), referer: http://home.net/profile/stefano
[Wed Feb 25 06:23:05 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:23:05 (EST): "file_get_contents(https://api.instagram.com/v1/users/search?q=username&access_token=000000000.bf31711.377d5578ba95435285c5ad6b000c000b) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found" in file /home/public_html/mod/instagram/lib/instagram.php (line 124), referer: http://home.net/profile/stefano
[Wed Feb 25 06:23:05 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:23:05 (EST): "file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0" in file /home/public_html/mod/instagram/lib/instagram.php (line 124), referer: http://home.net/profile/stefano
[Wed Feb 25 06:22:52 2015] [error] [client 31.157.226.211] PHP WARNING: 2015-02-25 06:22:52 (EST): "Argument 2 passed to elgg_extract() must be an array, integer given, called in /home/public_html/mod/juipo_profile/views/default/profile/widget/myphotos.php on line 13 and defined" in file /home/public_html/engine/lib/elgglib.php (line 1603), referer: http://home.net/activity
These settings must be on, otherwise it blocks fetching external files from Instagram.
Also, any changes to php.ini will only be in effect if the server gets rebooted or reloaded.
at the end of broken profile page I get following error too
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/public_html/mod/instagram/lib/instagram.php on line 5
line 5 is ini_set('allow_url_fopen', 1);
hosting says they did everything fine and verified, but still same error ... anything else I can try?
Remove the ini_set since they changed the php.ini settings. Enable the plugin on your site again, I want to test it out.
@stefano looks like it's working now, I just checked your site.
works like a charm :)
thanks a lot for your prompt and continued support!
No problem.
Hi Cim,
the plugin stopped working and I get again the error "/!\ error getUserIDFromUserName. /!\ error empty username or access token."
Can you suggest what could cause the problem?
Thanks in advance
in the error log I can find these two lines:
[Sun Jul 24 08:36:21 2016] [error] [client 79.20.85.7] " in file /home/kitetrib/public_html/mod/instagram/lib/instagram.php (line 114), referer: http://kitetribe.net/activity
[Sun Jul 24 08:23:46 2016] [error] [client 79.20.85.7] " in file /home/kitetrib/public_html/mod/instagram/lib/instagram.php (line 114), referer: http://kitetribe.net/profile/Kitetribe
in that file at line 114 is written:
else { $request = file_get_contents($url); }
but I can't undertsand ...