WordPress.org

Ready to get started?Download WordPress

Forums

WP-Instaroll
Auto posting broken? (31 posts)

  1. vitious
    Member
    Posted 1 year ago #

    Hi,
    it seems that automatic creation of posts doesn't work, is it just me? I've chooses tag stream, every minute, and publish as published. No signs of activity. I suppose that this feature should post everytime a take an instagram with selected tag, after one minute. Is it?
    Thanks in advance.

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

  2. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    Due to how event scheduling works in WordPress, scheduled events can only start on page visit. This is how it works:
    - on a page visit, the system checks if there's any scheduled events and, for each events, checks if enough time has passed since the last execution: if yes, it executes the scheduled event.
    This means that, even when scheduling automatic posts to happen every minute, they can't really happen without visiting at least a page.

    Can you try reloading a page and verify that the post isn't actually created (as draft or published post, depending on how you configured the plugin).

    Can you also verify any error message in server/PHP logs?

    Anyway, when settings the auto posting, what stream did you choose?

  3. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    I just performed some tests, setting the creation of posts every minute, selecting from tag stream, from user stream and both, and with the created post directly published.
    I waited for one minute reloaded the page, and the photos have been added, so it seems there's no problem.

    I performed the test both as logged user and as guest, and it worked in both cases.

  4. pookeyblow
    Member
    Posted 1 year ago #

    I thought I had the same problem, but checked the site in Safari and it was working. I think another plugin (wp super cache) prevented it from working correctly in Chrome.

    Another question about this plugin:
    Does anyone of you know how to turn on "Photo insertion mode for posts" with BOTH "in post content" and "as featured image"? I need it to work as my blog is based on a thumbnail grid.

  5. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    The WP Super Cache thing needs to be investigated. I'lll try to make some tests about it.

    About the "Photo insertion mode for posts", I din't think of adding the "both" option, but it's actually useful, I'll add into next version.

    In the meantime there are some modifications that can be manually done to the plugin to work this way:
    - file: instagram/instagram.php
    - function: wpinstaroll_createpostfromphoto()
    - lines 482-499:

    if ($insert_photo_mode === 'featured')
    	{
    		// attach to image as featured image (post thumbnail)
    		add_post_meta($created_post_ID, '_thumbnail_id', $attach_id, true);
    	}
    	else {
    
    		if (!$image_info)
    			$image_info = wp_get_attachment_image_src($attach_id, 'full');
    
    		// insert the image inside the post, followed by post caption
    		$update_post_data = array();
      		$update_post_data['ID'] = $created_post_ID;
      		$update_post_data['post_content'] = '<img src="'.$image_info[0].'" alt="'.strip_tags($insta_caption).'" width="'.$image_info[1].'" height="'.$image_info[2].'"/><br/>'.
      											$insta_caption;
    
      		wp_update_post($update_post_data);
    	}

    must become:

    // attach to image as featured image (post thumbnail)
    add_post_meta($created_post_ID, '_thumbnail_id', $attach_id, true);
    
    if (!$image_info)
    	$image_info = wp_get_attachment_image_src($attach_id, 'full');
    
    // insert the image inside the post, followed by post caption
    $update_post_data = array();
    $update_post_data['ID'] = $created_post_ID;
    $update_post_data['post_content'] = '<img src="'.$image_info[0].'" alt="'.strip_tags($insta_caption).'" width="'.$image_info[1].'" height="'.$image_info[2].'"/><br/>'.$insta_caption;
    
    wp_update_post($update_post_data);

    That should be all (this way, the plugin ignores the settings set in main panels and behaves as 'both' has been selected).

  6. pookeyblow
    Member
    Posted 1 year ago #

    Thanks a lot! Works perfect! :)

    btw, do you know any good wp plugins that can create a gallery of Instagram photos on a static page? E.g. all photos with a specific hashtag?

  7. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    Nice! :-)

    I don't know other plugins with this feature, but... it's similar (but slightly different) to a request received some days ago for this plugin, I'm starting to think about it...! ;-)

  8. vitious
    Member
    Posted 1 year ago #

    Hi there, about the auto post test you asked. I tried to reload and waited for post creation but nothing happens. I tried also visiting from different browsers and ips, but nothing. No clues as to what to do now.
    Can you tell me how to see the php logs?

  9. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    What configuration options did you choose?

    How to acess PHP/sever logs depends on you hosting solution. You should have some options for reading the logs in you hosting admin panel.

    Do you have other plugin installed or some caching solution for PHP and/or WordPress?

  10. pookeyblow
    Member
    Posted 1 year ago #

    Felice,

    I tried to install a plugin called Instapress. When I try to use that plugin I get this error:


    Warning: Cannot modify header information - headers already sent by (output started at /home/pookeyblow/touchdownoslo.com/wp-content/plugins/wp-instaroll/instagram/instagram.php:603) in /home/pookeyblow/touchdownoslo.com/wp-includes/pluggable.php on line 881"

    Seems like there is a conflict. What do you think? Is there any way to fix this issue?

  11. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    I don't think the two plugins can conflict. They are installed in different locations and don't register things that overlap.

    You should ask Instapress plugin creator.

  12. pookeyblow
    Member
    Posted 1 year ago #

    If you look in the error message it says wp-instaroll.

    I deactivated both plugins, and when I reactivated WP-Instaroll I got this message:

    "The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."

    Then I installed the official Facebook plugin and I got the same error message as I posted before.

    Seems like there is a problem with WP-Instaroll... any ideas what it can be?

  13. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    You didn't have problems before installing Instapress, right?

    What operations do you exactly do for getting the errors? What you mean with "when I try to use that plugin (Instapress)?

    What do the PHP logs show?

  14. pookeyblow
    Member
    Posted 1 year ago #

    It doesn't matter if it's Instapress or another plugin. I tried with the Facebook plugin too. The error is the same, and it happened when I installed a new plugin after WP-Instaroll.

    I get the error when I install a new plugin. I also get the error when I publish or update a post. The content has been published when I check the post though..

    Actually I can't enter the site from Safari. Check it out for yourself: http://bit.ly/L8m3jY
    Friends are also telling me they get an error message.

    Since I'm logged in to the site in Chrome it works for some reason.

    How do I check the PHP logs?

  15. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    I'm out till sunday/monday, so can't do any test at the moment, but will as soon as I can.

    I need anyway to know what steps you did, for trying to reproduce the problems.

    What I was saying is that the plugin (and everything else) worked until you installed the other prlugin, so something must have broken something in that moment.

    I'm trying to understand what can happend but, for now, the only infos I know is that it worked before, then you installed Instapress and it stopped working (that's what you said).

    What happens if you remove or deactivate WP-Instaroll (if you can do it now)?

    How to see the php/server logs depends on your hosting. There's probably some option for this in you hosting provider's admin panel.

  16. pookeyblow
    Member
    Posted 1 year ago #

    I already tried to deactivate Instapress and then install other plugins to see if the same thing happened. It did. I installed the Facebook plugin and I got the same errors as with Instapress.

    I now deactivated WP-Instaroll and reinstalled the Facebook plugin to see if I got the same errors as when WP-Instaroll was installed. I didn't get any errors at all.

    The site also works in Safari again.

    Couldn't find the PHP logs. Did some googling too, but that got me even more confused. I'm using Dreamhost.

  17. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    Hi.
    I'm back and am trying to reproduce the error.

    I installed Instapress and didn't get any error message or warning (neither in WordPress nor in the server/PHP logs).

    Tried accessing the photos from the streams and had no problems. Logged in Instapress and had no problem. Checked the photo streams and, again, everything worked.

    Can you please tell me all the passed you make for getting the error, so that I can try to reproduce it?

    Anyway, I'd also like to know:
    PHP version
    WordPress version

    You can also try creating a page, calling for example phpinfo.php, with this content:

    <?php
    phpinfo();
    ?>

    then visit the page and post it's output here.

    I don't use Dreamhost,but will try to find how to show the logs.

    Can you send me a link to the Facebook plugin you tried?

    Thanx

  18. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    About PHP loggin on dreamhost:
    http://wiki.dreamhost.com/PHP.ini#Turning_on_PHP_Error_Logging

    Basically, you need to create a file containing this:
    log_errors = 1
    error_log = /home/username/php.log

    Name the file phprc and save into:
    /home/username/.php/5.3/

    Then the PHP log should be active, in /home/username/php.log

    PS. I Assumed you're using PHP 5.3.x on your site, and not 5.2.x, because the plugins requires at least PHP 5.3.0 to work.

  19. pookeyblow
    Member
    Posted 1 year ago #

    Ok here is the phpinfo:
    http://bit.ly/Nt7nfJ

    I couldn't find "/home/username/.php/5.3/" so I'm not sure how to do the PHP error logging.

    I deactivated both Instapress and Facebook and the error is still there.

    Link to Facebook plugin: http://wordpress.org/extend/plugins/facebook/

    Maybe I can email you with the login so you can try to activate the plugin and see for yourself?

    Thanks for helping!

  20. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    The phpinfo looks ok.

    About '/home/username/.php/5.3/', di you substitute 'username' with you username, didn't you?

    If you want to send me the login ok. I won't be able to perform any test before tomorrow, anyway.

    Do you also have other plugins active (installed before WP-Instaroll)?

  21. jitske@paladijn.com
    Member
    Posted 1 year ago #

    Can you help me?
    The WP-Instaroll does exactly what I am looking for, but ...
    The automatic creation of posts doesn't work. Is there anything I can do?

    I work with WP 3.5
    In the tab 'Instagram Photos by Tag' I see the post appear, but it doesn't post automaticly so it is not visible on the website until I click 'create post' manually.

  22. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    I order for me to figure the problem out, can you tell me:

    1. the steps you perform for enabling automatic post creation

    2. version of PHP, version of MySQL

    3. did automatic post creation work before WP 3.5, or you only tried on WP 3.5?

    4. what you mean "In the tab 'Instagram Photos by Tag' I see the post appear"? Instagram Photos by Tag tab doesn't show posts, just shows the Instagram photos found based on the specified tag.

    5. In WordPress config file, can you enable the debug mode (changing the debug parameter from false to true) and see if you get any error message when accessing the website and when setting the parameter for automatic post creation?

  23. jitske@paladijn.com
    Member
    Posted 1 year ago #

    Thank you for your help and quick respons;-)
    Hereby some answers to your questions:

    1.
    at instaroll settings I click on published (at Post status for posts created from Instagram photos)
    At instarol photos I see this list of posts that need to be posted manualy.

    In my widgets I use 'featured posts' (included possibility in the Themify template).

    2.
    PHP: 5.3.21
    MySQL: 5.5.29

    3. I haven't tried that yet, so I don't know

    4.
    Yes, that's what I meant: it shows the Instagram photos found based on the specified tag

    This is the errorcode I get:
    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /var/www/vhosts/durftedragen.nl/httpdocs/wp-includes/functions.php on line 2824

    edit:
    The website is in maintenance. If you want me to disable temporarily, please let me know.

  24. FeliceMente
    Member
    Plugin Author

    Posted 1 year ago #

    About point 1: did you enable automatic post creation in the settings, by specifying how often the automatic post creation must be performed?

    Also consider that, as specified in the notes, WordPress scheduling only works when someone visit a page on the site: when a page is requested, the scheduler checks is enough time has passed since the last automatic post creation. If yes, it checks for new photos and, if there are any, creates the new posts.

    About point 4: register_sidebar_widget() function isn't used in the plugin, so something else is calling that function. This is almost certainly NOT causing any problem but, just in case, what plugins are you using?

  25. jitske@paladijn.com
    Member
    Posted 1 year ago #

    About point 1: did you enable automatic post creation in the settings, by specifying how often the automatic post creation must be performed?

    Yes, every minute

    Also consider that, as specified in the notes, WordPress scheduling only works when someone visit a page on the site: when a page is requested, the scheduler checks is enough time has passed since the last automatic post creation. If yes, it checks for new photos and, if there are any, creates the new posts.

    does that means that even ctrl F5 refreshing of the page won't help?

    This is almost certainly NOT causing any problem but, just in case, what plugins are you using?

    I have the following plugins:
    Contact Form 7
    Featured articles Lite
    All in one Favicon
    Maintenance Mode
    Trackable Social Share Icons
    Tweet Blender
    WP-Instaroll

  26. jitske@paladijn.com
    Member
    Posted 1 year ago #

    I even de-activated all other plugins, but still no automatic creation of posts.

  27. jitske@paladijn.com
    Member
    Posted 1 year ago #

    I am still trying to auto-creat posts, but still with no results.
    Does anyone have an idea that might be the solution tot this problem?

    I even de-activated all other plugins, but still no automatic creation of posts.

  28. pookeyblow
    Member
    Posted 1 year ago #

    Felice,

    I haven't been able to do anything with the site I was working on for a very long time.

    The plugin is still causing trouble. Everytime I activate a theme or a plugin I get this message:


    Warning: Cannot modify header information - headers already sent by (output started at /home/pookeyblow/touchdownoslo.com/wp-content/plugins/wp-instaroll/instagram/instagram.php:603) in /home/pookeyblow/touchdownoslo.com/wp-includes/pluggable.php on line 876"

    Themes and plugins are activated though. What's going on? Any ideas? If I deactivate your plugin, the error messages stops.

  29. DSTNDR
    Member
    Posted 1 year ago #

    Hi Felice,
    the plugin works like a charm and it's my favorite Instagram WP plugin.
    concerning your "fix" to photo insertion mode on posts and featured image both, I need to get two different pictures, one at full size for posts insertion and one resized (not in css or html) at 255px, is this possible?

    thanks!

    About the "Photo insertion mode for posts", I din't think of adding the "both" option, but it's actually useful, I'll add into next version.

    In the meantime there are some modifications that can be manually done to the plugin to work this way:
    - file: instagram/instagram.php
    - function: wpinstaroll_createpostfromphoto()
    - lines 482-499:
    if ($insert_photo_mode === 'featured')
    {
    // attach to image as featured image (post thumbnail)
    add_post_meta($created_post_ID, '_thumbnail_id', $attach_id, true);
    }
    else {

    if (!$image_info)
    $image_info = wp_get_attachment_image_src($attach_id, 'full');

    // insert the image inside the post, followed by post caption
    $update_post_data = array();
    $update_post_data['ID'] = $created_post_ID;
    $update_post_data['post_content'] = '<img src="'.$image_info[0].'" alt="'.strip_tags($insta_caption).'" width="'.$image_info[1].'" height="'.$image_info[2].'"/>
    '.
    $insta_caption;

    wp_update_post($update_post_data);
    }
    must become:
    // attach to image as featured image (post thumbnail)
    add_post_meta($created_post_ID, '_thumbnail_id', $attach_id, true);

    if (!$image_info)
    $image_info = wp_get_attachment_image_src($attach_id, 'full');

    // insert the image inside the post, followed by post caption
    $update_post_data = array();
    $update_post_data['ID'] = $created_post_ID;
    $update_post_data['post_content'] = '<img src="'.$image_info[0].'" alt="'.strip_tags($insta_caption).'" width="'.$image_info[1].'" height="'.$image_info[2].'"/>
    '.$insta_caption;

    wp_update_post($update_post_data);
    That should be all (this way, the plugin ignores the settings set in main panels and behaves as 'both' has been selected).

  30. staceppa
    Member
    Posted 1 year ago #

    auto post creation doesn't work for me either...
    this is how it is set up
    http://www.screencast.com/t/Ogl9Px4sM

    i also refreshed the page but still nothing... any clue?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.