Hello Yanick,
To solve this, you will need to use a different variable name in place of
script_name
in your second iRule, i.e.
script_name_intranet
. When writing iRules, in particular if there are other developers involved, it's best to avoid generic variable names like "log", "time" etc. TMM does not want one variable name to be used twice. Although, this will not cause any issues before 2 iRules where a variable name overlaps are applied to the same Virtual Server. While you're at it, check if other iRules have specific-enough variable names to prevent the same issue in future.
Rgds,