Support is offline. We are back Monday 23 November, 09:00.

I need help the cron job! #68102

Resolved revolte opened this topic Wednesday, 08 September 2021 · 6 replies
Author

Hi!

I want to use cron function.I wrote the cron commands based on the instructions.

/usr/local/bin/php /home/sveahu/public_html/administrator/components/com_csvi/helper/cron.php --template_name="bosch_sablon_image " --file="home/sveahu/public_html/beepitheto/image.csv"

mytemplate-----> bosch_sablon_image

myfile -----------> image.csv

/usr/local/bin/php /home/sveahu/public_html/administrator/components/com_csvi/helper/cron.php --template_name="neff_sablon_image" --file="home/sveahu/public_html/beepitheto/neff.csv"

mytemplate-----> neff_sablon_image

myfile ----------> neff.csv

but something is missing because I i get an automated email!

The Email

Use --help to see the help information
Processing started...
Template bosch_sablon_image
The option Enable frontend/cron has been disabled. Set this option to Yes, to be able to use the template in a cron job.

I don't understand what needs to be set up yet. i can't find anything

any idea?

  • helphelp.png
Support

Hello,
In your import template settings on Details tab set Enable frontend/cron to Yes, save the template and run the cron. See attached screenshot.

  • Screenshot 2021-09-08 at 12.58.14 PM.png

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

I received another email!

Use --help to see the help information
Processing started...
Template bosch_sablon_image
No secret key has been specified. A secret key must be specified to be able to execute the template.

where can i find the secret key?

  • secretkey.png
Support

Hello,

where can i find the secret key?

You need to enter the secret key in your template settings(the field shown in your screenshot) and save the template. You then use this secret key in your cron command. Please check Setting up a cron job in RO CSVI and under Build the cron command section to know on how to use field settings in cron command.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thanks for the help:D

The command ran but printed an error.

Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/sveahu/public_html/administrator/components/com_csvi/helper/file/import/csv.php on line 463

i don't know what's wrong!

Support

Hello,
That is not an error but a notice. You can hide this notice by setting Error Reporting field to Simple or System Default in Joomla Configuration page and on Server tab.

  • Screenshot 2021-09-10 at 1.06.19 PM.png

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

thank you !:D :D

Log in to reply to this topic.