WordPress.org

Ready to get started?Download WordPress

Forums

WP-Instaroll
[resolved] Can't get pictures to show up (10 posts)

  1. gregchambers
    Member
    Posted 2 years ago #

    Everything installed good and authorized correctly. But I can't get any photos to show up in the either stream (tag or user). Any ideas where to start looking?

    http://wordpress.org/extend/plugins/wp-instaroll/

  2. FeliceMente
    Member
    Plugin Author

    Posted 2 years ago #

    Do you get any message?

    Did you specify, in settings, the search tag?

  3. gregchambers
    Member
    Posted 2 years ago #

    I was able to set it up, give it a search tag and connect my user account. It even pulled my profile pic back.

    When I go the screen to view the feeds it comes up and says loading... and after about 1 or 2 seconds it looks like it is complete but there are no pictures. I of course also verified that the search term should have returned results.

    Everything looks and acts like is working just fine...there just is no pictures showing up.
    I have changed apps, disconnected, reconnected and all the normal type stuff with no luck.

  4. FeliceMente
    Member
    Plugin Author

    Posted 2 years ago #

    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?

  5. gregchambers
    Member
    Posted 2 years ago #

    No worries..

    System Info below including active plugins

    let me know what I can do to help you help me.

    greg

    WordPress Version: 3.3.2

    PHP Version: 5.3.10
    MySQL Version: 5.5.17-55-log
    Web Server Info: nginx/1.2.0

    ACTIVE PLUGINS:

    Akismet: 2.5.6
    Audit Trail: 1.1.15
    Gravity Forms: 1.6.4.4
    Gravity Forms PayPal Add-On: 1.4
    Jetpack by WordPress.com: 1.3.4
    Jigoshop: 1.2.2
    JigoShop Carrousel: 1.0
    Jigoshop for PageLines: 1.3
    Login Logo: 0.6
    LoopStack: 1.1
    ManageWP - Worker: 3.9.18
    Pagelines Sections: 1.0
    Post Types Order: 1.5.1
    WP-Instaroll: 1.0.4.2

  6. gregchambers
    Member
    Posted 2 years ago #

    Sorry forgot the browser ... chrome Version 19.0.1084.46

  7. FeliceMente
    Member
    Plugin Author

    Posted 2 years ago #

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

  8. gregchambers
    Member
    Posted 2 years ago #

    Here is the request from the developer panel...let me know what else I can help with...greg

    Request URL:http://wwwgaenergyinformatics.zippykid.it/wp-admin/admin-ajax.php?action=wpinstaroll_photosbyusertable
    Request Method:GET
    Status Code:200 OK
    Request Headersview parsed
    GET /wp-admin/admin-ajax.php?action=wpinstaroll_photosbyusertable HTTP/1.1
    Host: wwwgaenergyinformatics.zippykid.it
    Connection: keep-alive
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5
    Accept: */*
    Referer: http://wwwgaenergyinformatics.zippykid.it/wp-admin/admin.php?page=wpinstaroll_menu_photo_selection
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie: wordpress_47d39e53337839cd01dc2123f19944ad=gregchambers%7C1337962354%7C926e3f4ef10d95e4472f437c6721de45; pagelines-settings-two-tabs=8; pagelines-special-tabs=1; htabs-default=0; htabs-posts=1; htabs-archive=0; htabs-category=0; htabs-search=0; htabs-tag=0; htabs-author=0; htabs-404_page=0; htabs-product_archive=0; metatabs-tabs=1; PHPSESSID=dkcmd7mbt3956mor4sen3fvl51; __utma=237514246.43783495.1336651921.1337723199.1337789497.12; __utmc=237514246; __utmz=237514246.1336651921.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=237514246.|1=logged-in=no=1^3=username=Guest=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_47d39e53337839cd01dc2123f19944ad=gregchambers%7C1337962354%7C1a32848b063c90e29b72960afe93e376; wp-settings-2=editor%3Dhtml%26imgsize%3Dfull%26align%3Dcenter%26wplink%3D1%26hidetb%3D1; wp-settings-time-2=1337880050
    Query String Parametersview decoded
    action:wpinstaroll_photosbyusertable
    Response Headersview parsed
    HTTP/1.1 200 OK
    Server: nginx/1.2.0
    Date: Fri, 25 May 2012 00:28:39 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Vary: Accept-Encoding
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    Access-Control-Allow-Origin: *
    Content-Encoding: gzip

  9. FeliceMente
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  10. FeliceMente
    Member
    Plugin Author

    Posted 2 years ago #

    I tested with a user who had the same exact problem, and version 1.0.4.3 of the plugins resolves the issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.