macro errors

Mark Elliott asked on July 7, 2015 23:50

We intermittently encounter an issue where the macros get corrupted for some reason. We have not been able to determine the cause of the problem but resigning the macros resolves the error. One of our main concerns however is what we should do in the event we are not able to login when this happens and thus are unable to resign the macros. Does anyone have any ideas what we would be able to do if this happens?

Thanks

Recent Answers


Roman Hutnyk answered on July 8, 2015 03:17 (last edited on July 8, 2015 03:19)

Mark,

This can't happen by itself, there should be event causing this:

  • user account, that signed a macro has been removed
  • hash salt has been changed
  • hash salt was not specified, so system used a connection string instead of hash salt and it has changed
  • someone copied macro from another Kentico instance, so signature became invalid
  • macro has been staged from the other instance, so signature became invalid

If you have a few environment, please make sure all they use the same hash salt.

You can always go to System -> Macro section -> Report and see information on all your macros across the site.

In case there are a lot of issue, especially with signatures, go to Signature section and re-sign all the macros.

Answering your question, I'd would say, that syncing hash salt across all the instances, checking and potentially re-signing all the macros should prevent you of having this issue in the future.

You may find more details here.

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on July 8, 2015 22:46

I went to the System - Macro section - Report and saw that there are a handful of macros that say Invalid Signature. Are these an issue and what if anything would need to be done to resolve them?

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on July 10, 2015 16:13

Hello Mark,

Please re-sign all macro signature as it's describer in our Documentation -> Working with macro signatures section.

Best regards, Martin

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.