1. atrus
  2. RO CSVI
  3. Sunday, 26 July 2015
  4.  Subscribe via email
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
Hey Chris,

"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
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Roland,

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
  1. more than a month ago
  2. RO CSVI
  3. # 2
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.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hi Roland,

Thanks for the tip; actually we have multiple php versions installed in our server for testing purposes, so it was a matter of selecting the proper php executable, managed to get it working finally :)

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello Chris,

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
  1. more than a month ago
  2. RO CSVI
  3. # 5
  • Page :
  • 1


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