Forum

Thread tagged as: Problem, Configuration, Twitter

No secret found

I'm trying to schedule a cron job to fetch tweets but the test of the script returns this error.

Your script returned the following:
X-Powered-By: PHP/5.5.10
Content-type: text/html

No secret found. See https://docs.grabaperch.com/docs/scheduled-tasks/ for configuration instructions.

I've set up a secret, and I can manually retrieve tweets and get them remotely using the URL method.

Hosting with heart Internet on a shared server.

Any ideas?

Simon Knox

Simon Knox 1 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you passing the secret into the script in your cron configuration? It should be something like

php /var/www/perch/core/scheduled/run.php abc123

I think so,

/usr/bin/php55 /home/sites/my_site.co.uk/public_html/perch/core/scheduled/run.php mysecret
Drew McLellan

Drew McLellan 2638 points
Perch Support

That should work. Searching around, I can see lots of people having similar issues with cron arguments at Heart Internet.

Does Heart have any documentation on this?

Ok I've got it working for Heart Internet you need;

/usr/bin/php55 /home/sites/my_site.co.uk/public_html/perch/core/scheduled/run.php secret=mysecret

Simon

Rachel Andrew

Rachel Andrew 394 points
Perch Support

cool - I think we need a section of the docs for "hosting company peculiarities" :D

Hi - sorry digging up an old thread but I had to do the same with my host, define secret=mysecret, so ended up with

php /home/sitename/public_html/perch/core/scheduled/run.php secret=mysecret