Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Cronjob issue 303 redirect
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Cronjob issue 303 redirect

Cronjob issue 303 redirect 11 years, 9 months ago #36842

Hi Support.

Im currently setting up the automatic sending of invoices that have been confirmed. The problem is that my cronjob is not working.. Im getting return HTTP 303

en.wikipedia.org/wiki/List_of_HTTP_status_codes

This is my cron: */20 * * * * www.mysite.com/component/vminvoice/vminvoice/cronMail


If i load the cron URL in my browser it works perfectly and all emails are sent..

So i contacted my server provider and they told me that the header their cron system sends is missing in the softwares PHP code and therefore the code makes a 303 redirect..

Im really not keen to using the automatic plugin which sends on every pageload.. Hopefully i can get this cronjob running..

Thank you in advance
Last Edit: 11 years, 9 months ago by jacob22.
The topic has been locked.

Re: Cronjob issue 303 redirect 11 years, 8 months ago #36907

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

try to use example from our documentation or this one:
*/20 * * * * "wget www.mysite.com/component/vminvoice/vminvoice/cronMail > /dev/null"

From documentation:
*/20 * * * * wget -q -O /dev/null "www.mysite.com/component/vminvoice/vminvoice/cronMail"

Main problem was that you didn't have wget there.
ARTIO Support Team
The topic has been locked.

Re: Cronjob issue 303 redirect 11 years, 8 months ago #36978

Hello maju.

Thank you for your reply.

I have now been in contact with my server host and they told me that their cron system open the website same way as wget, but it does not follow redirects..

They think its because your cron-system is dependent on a browser redirect?
The topic has been locked.

Re: Cronjob issue 303 redirect 11 years, 8 months ago #36979

Note: My server provider tells me that they do not follow redirects because of the possibility of creating loops.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný