1.5 Fixes | Voting Closed

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

[SOLVED] Help with CRON needed


  • Please log in to reply
9 replies to this topic
haylau

    PrestaShop Addict

  • Members
  • PipPipPip
  • 730 posts

Posted 21 October 2011 - 12:27 PM

Hi

I have two modules crontab for prestashop and the backup module from presto changeo

I can get neither to work, and think it must be to do with prestashop install. Why?

I have created cron and run them manually and they work. The crons for these modules run manually and they work.

I set up a separate email cron and that works manually and when configured to run automatically.

I put the mail cron in the same folders as the modules and it still runs manually and automatically.

But if I change the name to be the same as the ones supplied with the modules so that they trigger the call- nothing

So it seems to me that for whatever reason, the prestashop installation is preventing the call being made

Hope that all makes sense

I am on 1&1 (i know! don;t all shout at me) with ssh access to create the crontab

Anyone have any ideas?
Regards, Ron: ADD YOUR STORE TO OUR FREE WEB-LISTING DIRECTORY: http://www.retail-directory.com
Look for our websites at www.graphskill.co.uk, www.u-bolts-r-us.co.uk and www.shackles-r-us.co.uk

haylau

    PrestaShop Addict

  • Members
  • PipPipPip
  • 730 posts

Posted 22 October 2011 - 03:36 PM

Solved, thanks to Tomer and Saṃdhā

If the method given int he module instructions don;t work, then you can use a wget instead

instruction example

0 0 * * 0 /usr/bin/php -q /homepages/10/xxxxxxxxxxxxxx/htdocs/prestashop/modules/prestashopbackup/cron/dbcron.php secure_key=xxxxxxxxxxxxxxxxxx

Alternative method:


0 0 * * 0 wget -O /dev/null http://www.graphskill.co.uk/prestashop/modules.prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxx

Making sure you use the ? instead of the space in the original

This seems to work just fine
Regards, Ron: ADD YOUR STORE TO OUR FREE WEB-LISTING DIRECTORY: http://www.retail-directory.com
Look for our websites at www.graphskill.co.uk, www.u-bolts-r-us.co.uk and www.shackles-r-us.co.uk

cchhaass

    PrestaShop Apprentice

  • Members
  • PipPip
  • 130 posts

Posted 17 November 2011 - 08:28 PM

Hi haylau,

I'm in 1and1 and to set a cron I must be on SSH configuration, but is it dificult to set it up in the back pannel????

If you could explain step by step will be perfect!!!

I must do it for a few modules...

Please help!!!
Thank you

Carlos
P.S. 1.4.3

haylau

    PrestaShop Addict

  • Members
  • PipPipPip
  • 730 posts

Posted 17 November 2011 - 09:16 PM

Carlos

Not every 1&1 account can use the ssh configuration. Setting it up was easy. In control panel, jsut click SSH if it is there and follow the simple instructions

If you can do that, then there help is actually very good in setting up a cron. It really is worth going through there suggestions first before starting on your own

http://faq.oneandone...jobs/index.html
Regards, Ron: ADD YOUR STORE TO OUR FREE WEB-LISTING DIRECTORY: http://www.retail-directory.com
Look for our websites at www.graphskill.co.uk, www.u-bolts-r-us.co.uk and www.shackles-r-us.co.uk

cchhaass

    PrestaShop Apprentice

  • Members
  • PipPip
  • 130 posts

Posted 18 November 2011 - 11:13 AM

Thank you for your help!!! I knoe it is not available for all hostings. I must upgrade my hosting plan to be able to do it but I wanted to know before it is was dificult or not. Thanx!!!
P.S. 1.4.3

Carisma

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 posts

Posted 13 January 2012 - 03:39 PM

The command
0 0 * * 0 wget -O /dev/nullhttp://www.myaddress.com/prestashop/modules.prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxx
doesn't work in my cron job.

the simbol " - " causes an error..

can u help me?

haylau

    PrestaShop Addict

  • Members
  • PipPipPip
  • 730 posts

Posted 13 January 2012 - 04:05 PM

The command
0 0 * * 0 wget -O /dev/nullhttp://www.myaddress.com/prestashop/modules.prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxx
doesn't work in my cron job.

the simbol " - " causes an error..

can u help me?

i can;t quite tell, but the - should not have a space after it, and is it a capital "oh" you have there? Also there needs to be a space between Null and http, and I guess you did replace the xxxxxxxx with your own secure key?
Regards, Ron: ADD YOUR STORE TO OUR FREE WEB-LISTING DIRECTORY: http://www.retail-directory.com
Look for our websites at www.graphskill.co.uk, www.u-bolts-r-us.co.uk and www.shackles-r-us.co.uk

Carisma

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 posts

Posted 13 January 2012 - 04:55 PM

maybe i've solved the problem!

haylau

    PrestaShop Addict

  • Members
  • PipPipPip
  • 730 posts

Posted 13 January 2012 - 06:12 PM

maybe i've solved the problem!

Well done - why not share your solve for others to benefit
Regards, Ron: ADD YOUR STORE TO OUR FREE WEB-LISTING DIRECTORY: http://www.retail-directory.com
Look for our websites at www.graphskill.co.uk, www.u-bolts-r-us.co.uk and www.shackles-r-us.co.uk

Carisma

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 posts

Posted 16 January 2012 - 09:41 AM

Sure!

1) Install Crontab for prestashop. ( by Saṃdhā )

2) Go In Database Backup Module ( by Presto Changeo ) and copy the URL of the third method

3) Paste the URL

( look like this : www.yoursite.com/folder/modules/prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxxxx )

in the Crontab's job creator. ( Remember to put http:// before the URL )


Now everything seems work!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users