Forum

Thread tagged as: Error, Twitter

Twitter App - Auto-Updating

Hi guys,

I've been using the Twitter app for a while now across multiple sites, and I've noticed that it will occasionally fail to auto-update (even though it's set to automatically update every 10 - 30 minutes, depending on the site).

Is this known, and is there a solution?

Thanks, Harry

Harry Ray

Harry Ray 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Auto-updating happens via your cron script so you would need to check to see if that is running regularly and if there are any errors in the log.

Of course it is also possible that for some reason no tweets were returned - for example an error from the API.

Hi Rachel,

This is just set through the Twitter apps auto-update feature - where would I see any CRON errors?

Thanks!

Hi,

I have had an issue with cron jobs on some hosts. Where the suggestion in Perch (which works most of the time) is something like:

php /sitepath/perch/core/scheduled/run.php mysecret

I have occasionally had to use:

php /sitepath/perch/core/scheduled/run.php secret=mysecret

Maybe give this a try and see if it helps

Mike Harrison said:

php /sitepath/perch/core/scheduled/run.php secret=mysecret

Hi Mike,

Great - that looks like it could help, where would I put that?

Thanks, Harry

That is what you need to set as the cron job running to fetch the tweets. How are you running them at the moment?

I am only a cPanel person, so if you have that you need to go to "Cron Jobs" in the "Advanced" section then put that in the Command section of "Add New Cron Job".

Rachel Andrew

Rachel Andrew 394 points
Perch Support

The Twitter app can only auto-update if you have configured a scheduled task. Otherwise you have to do it by clicking the button.

https://docs.grabaperch.com/docs/scheduled-tasks/

Okay, thanks for the help both.