Hello Roland,
We are setting our cron jobs using your latest tutorial but noticed the following issue:
- Whatever secret key we use in the template settings, we always get the following output from the cron:
"The key was given but this does not match the key set in the template"
I checked the database and the 'secret' field in _csvi_templates table is saved ok, so maybe you will find a clue in the cron.php
For example we set the keyword 'test' (without the ') in the template settings and use the --key="test" in the command but we still get the error.
Also suggesting the following: the template id is not very straightforward to locate, either from the database or from the url in the template editing screen; it would be nice to have a column in the templates list screen with the id for quick reference
Rgrds,
Chris
Accepted Answer
Pending Moderation
Hello Chris,
The devil of choice :P Just need 1 version that works. Hehehehe.
Thanks for your feedback.
The devil of choice :P Just need 1 version that works. Hehehehe.
Thanks for your feedback.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hey Chris,
I have tested the key option on both Windows and Linux and it works there, CSVI doens't do anything odd as it uses Joomla to retrieve the posted variables.
Do I understand correctly that the template_id option does work? In other words you see the template name in the output of the cron job?
As for the template ID, good point, I will not add a column to the list but I will put the ID underneath the Secret key field as they are related and you don't really need the ID for anything else.
"The key KEY was given but this does not match the key set in the template"This message is missing the key you specified in the cronjob. I have highlighted it with the word KEY as this is where the given key is expected.
I have tested the key option on both Windows and Linux and it works there, CSVI doens't do anything odd as it uses Joomla to retrieve the posted variables.
Do I understand correctly that the template_id option does work? In other words you see the template name in the output of the cron job?
As for the template ID, good point, I will not add a column to the list but I will put the ID underneath the Secret key field as they are related and you don't really need the ID for anything else.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hello Roland,
Good point, the KEY is indeed missing.
Yes, correct, i can see the template name in the output, so the template_id option works.
Great, thanks.
Just for your info, i'm using Virtualmin on a CentOS 6.6, PHP is 5.5.6
Rgrds,
Chris
This message is missing the key you specified in the cronjob. I have highlighted it with the word KEY as this is where the given key is expected.
Good point, the KEY is indeed missing.
Do I understand correctly that the template_id option does work? In other words you see the template name in the output of the cron job?
Yes, correct, i can see the template name in the output, so the template_id option works.
As for the template ID, good point, I will not add a column to the list but I will put the ID underneath the Secret key field as they are related and you don't really need the ID for anything else.
Great, thanks.
Just for your info, i'm using Virtualmin on a CentOS 6.6, PHP is 5.5.6
Rgrds,
Chris
Accepted Answer
Pending Moderation
Hello Chris,
Since you can see the template_id I am quite sure it is something related to the system. This is where it gets tricky because the one Linux is definitely not the other. I don't know how you call the cron job but one option you can try is to use the php-cgi binary instead of the php binary.
Since you can see the template_id I am quite sure it is something related to the system. This is where it gets tricky because the one Linux is definitely not the other. I don't know how you call the cron job but one option you can try is to use the php-cgi binary instead of the php binary.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »