[Plugin: WP-Instaroll] Auto posting broken?
-
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.
-
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?
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.
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.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).
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?
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…! ??
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?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?
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?
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.
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?
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?
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: https://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?
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.
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.
- The topic ‘[Plugin: WP-Instaroll] Auto posting broken?’ is closed to new replies.