Forum Replies Created

Viewing 11 replies - 46 through 56 (of 56 total)
  • Plugin Author FeliceMente

    (@felicemente)

    I added it to the todo list for next minor update, thanx for the suggestion.

    Plugin Author FeliceMente

    (@felicemente)

    Sorry for answering so late.
    I don’t think the problem is client related, but due to your server configuration.

    You can perform Instagram authorization, so cURL (that is used for this phase) is installed and working.
    The problem is getting the photos from the user stream and the tag stream, that don’t use cURL.

    If you can perform a test, patching one of the files of the plugin, we could e sure this is the problem, ad then include the patch in the next update.

    The file to modify is wp-instaroll/instagram/instagram.php:
    1. add this block to the beginning of the file, just the line after ‘<?php’:

    function curl_file_get_contents($url)
    {
    	$curl = curl_init();
    	$userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
    
    	curl_setopt($curl,CURLOPT_URL,$url);
    	// TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly
    	curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE);
    	// the number of seconds to wait while trying to connect
    	curl_setopt($curl,CURLOPT_CONNECTTIMEOUT, 6); 	
    
    	curl_setopt($curl, CURLOPT_USERAGENT, $userAgent);
    	curl_setopt($curl, CURLOPT_FAILONERROR, TRUE);
    	curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
    	curl_setopt($curl, CURLOPT_AUTOREFERER, TRUE);
    	curl_setopt($curl, CURLOPT_TIMEOUT, 12);	
    
    	$contents = curl_exec($curl);
    	curl_close($curl);
    	return $contents;
    }

    2. find
    $file_contents = @file_get_contents(WP_ROLL_INSTAGRAM_USER_STREAM_URLBASE.$accessToken);
    and substitute with:
    $file_contents = @curl_file_get_contents(WP_ROLL_INSTAGRAM_USER_STREAM_URLBASE.$accessToken);

    3. find
    $file_contents = file_get_contents(WP_ROLL_INSTAGRAM_STREAM_BYTAG_URL_A.$tag.WP_ROLL_INSTAGRAM_STREAM_BYTAG_URL_B.$accessToken);
    and substitute it with:
    $file_contents = @curl_file_get_contents(WP_ROLL_INSTAGRAM_STREAM_BYTAG_URL_A.$tag.WP_ROLL_INSTAGRAM_STREAM_BYTAG_URL_B.$accessToken);

    Otherwise, if you send me a support email, I can aswer you, ataching the file already modified.

    Plugin Author FeliceMente

    (@felicemente)

    I think this is a feature we could implement in the next version.

    Plugin Author FeliceMente

    (@felicemente)

    Can you try opening the developer panel in Chrome and checking any strange/error message both in console and in network panels?

    Plugin Author FeliceMente

    (@felicemente)

    Sorry for the problem.

    Can you please tell me what browser you’re using (and which version), and what version of WordPress, PHP and MySQL you’re using?

    Plugin Author FeliceMente

    (@felicemente)

    Do you get any message?

    Did you specify, in settings, the search tag?

    Plugin Author FeliceMente

    (@felicemente)

    It’s very likely that there’s some problem when the server were you installed the product tries to connect to Instagram server via SSL, so:

    – what version of PHP is you server running?
    – is the CURL extension installed with SSL support enabled (CURL is used for the connection, using a mandatory secure SSL connection)?
    – are you testing the plugin on a local or remote server?

    Can you read the php log file and see if there’s any error?

    In case PHP is at least 5.2 and CURL is installed, there’s probably some error regarding SSL connection. In this case, you can try decommenting this line:
    //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    to
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    in instagram/instagram.php file inside the plugin directory (it tells the server not to check for valid server,, in case you server doesn’t have an updated list of valid servers).

    Plugin Author FeliceMente

    (@felicemente)

    I just uploaded a new version that fixes a little issues regarding authorization, but, if you get that message (that’s a different from your previous post) it means the authorization code from Instagram was not received so:
    – check that instagram application id and secret in WordPress setting are the same specified for the Instagram application
    – check that the correct authorization redirect URL is set for the Instagram application (it must be the one showed in the settinga panel of the plugin).

    I just double checked using Chrome, Safari and Firefox, with a previous installation and with an installation from scratch, and couldn’t reproduce the problem.

    Can you please try with version 1.0.4.2?

    Plugin Author FeliceMente

    (@felicemente)

    Hi.

    Can you please tell me what browser you’re using and what happened exaclty when performing the authorization process.

    It’s normal getting just -1 in WordPress when trying to directly access an admin action without having an active admin session.

    Can you try deauthorizing the application from:
    https://instagr.am/accounts/manage_access
    and then logging-out from Instagram (https://instagr.am/accounts/logout/). Then you can try again the authorization process from the plugin.

    A pop-up window should appear and, after inserting the login data, the window should close and the plug-in settings page should show the logged-in account info.

    Plugin Author FeliceMente

    (@felicemente)

    The plugin also works with WordPress automatic installation, now, with version 1.0.4.1.

    Sorry for the inconvenience.

    Plugin Author FeliceMente

    (@felicemente)

    Hi.

    For using the plug-in, you simply have to decompress the downloaded archive anche place the contained ‘wp_instaroll’ folder (not all the decompressed content, just that folder) to WordPress plugin directory (‘/wp-content/plugins/’).

    Then you just have to go to ‘Settings->plugins’ and click on ‘activate’.

    I suppose you tried to install the plugin directly from WordPress, so I’ll try to modify the package to making it become compatible with automatic WordPress installation.

Viewing 11 replies - 46 through 56 (of 56 total)