1. fatelettronica
  2. RO CSVI
  3. Tuesday, 26 July 2022
  4.  Subscribe via email
I have read the instructions for using the cron but I must say that the information contained is not sufficient to create a functioning cron system. I have also read some support articles.
Honestly, it is not well explained how to modify the cron.php file and therefore I will ask you some questions.
Which lines to modify (line number) content to modify and text to insert. I think everyone would be happy with it.
In the meantime, let's start with this.
Then the "mio.csv" file must be uploaded to the server, right, or do I have to upload it through the "Mio" template set as cron?
Ok I have to be accompanied step by step, I have never done this.
Thank you

Lorenzo
Accepted Answer Pending Moderation
Tharuna

It may not be possible for a server to trigger a command that is executable by browers. I am attaching screenshots
Where did you see the duplicate domain?
I checked and it is unique.

Thank you

Lorenzo
Attachments (2)
  1. 2 weeks ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Lorenzo,
It may not be possible for a server to trigger a command that is executable by browers.

The frontend import is for the servers which do not support real cron command and can run cron job using a URL. How does your server support cron jobs? Can you post us an example?

Where did you see the duplicate domain?

Please see the attached screenshot. Check what is before index.php?option=com_csvi. You also have the domain name already selected in list box.
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 2 weeks ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
I have read a few things on the net and created an account on webcron.org, can this help? I have done some tests and it does not go with the configurations I know.
I believe aruba does not support the cron.
I have read that other systems put the script in the CLI folder.
I transcribe webcron's responses to the test with the start of the command from fron-end. Attached is the screenshot.
I insert the download of the log. I see it doesn't work.
I am also attaching the example of webcron but I don't understand what I have to insert after cron.php
"http://www.example.com/administrator/components/com_csvi/helpers/cron.php?username=admin&passwd=admin&template_id=xx";
Thank you

Lorenzo
Attachments (2)
  1. one week ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello Lorenzo,
From the screenshots I see that you are using a wrong cron URL. The 301 status code in the screenshots shows that the URL you are using now is redirected. You should be using https://www.fatcomp.it/it/cron.html as cron URL in your cron configuration. Fix this and see if the cron runs as expected.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Dear Tharuna

I opened a tichket in Aruba to fix the cron problem on their servers.

They replied suggesting to insert a script and run it from the sheduled task.
I'll copy their answer to you.
"Dear customer
in order to use the scheduled task included in the admin panel, you need to create a custom php script like the following as an example:

schedule.php

/ bin / php /web/htdocs/http://www.fatcomp.it/home/administrator/components/com_csvi/helper/cron.php username = "XXX" passwd = "YYY" template_name = "importAll" filename = "/ web / htdocs /http://www.fatcomp.it/home/media/import_all0.csv "> /web/htdocs/http://www.fatcomp.it/home/cronlog.log

check that it is running via the web and then schedule it via the panel.

I invite you to check and I remain at your disposal for further checks. "

I think you know better than me how to change it. I can only add username and password.

Do you think it will work?

Thank you

Lorenzo
  1. one week ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hello Lorenzo,
/ bin / php /web/htdocs/http://www.fatcomp.it/home/administrator/components/com_csvi/helper/cron.php username = "XXX" passwd = "YYY" template_name = "importAll" filename = "/ web / htdocs /http://www.fatcomp.it/home/media/import_all0.csv "> /web/htdocs/http://www.fatcomp.it/home/cronlog.log

The path of the cron file looks wrong /web/htdocs/http://www.fatcomp.it/home/administrator/components/com_csvi/helper/cron.php. This is a mix of relative and absolute URL. You cannot have domain name http://www.fatcomp.it in the path. You need to check the relative URL and use in the path.

They replied suggesting to insert a script and run it from the sheduled task.

I guess they are talking about bash script. Bash file is nothing but a text file with a collection of CLI commands. You can directly write the cron command in this bash script file and use it in cron task.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Lorenzo,

What Tharuna has told you is not completely correct because your code is malformed. Anything that is a link is prefixed with http:// on the forum. The advice given by Aruba is something we have given you as well I think. You should be able to use the URL https://www.fatcomp.it/it/cron.html because when I open that URL, your import starts.

If you use that URL either in Aruba hosting or some cron service, it should run as well. If not, Aruba has to tell you why it won't run. They are executing the URL different than a browser.

If you open that URL in your browser, the import starts right?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO CSVI
  3. # 7
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!