We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34174
    • 67 Posts
    The bug was fixed by bertoost in github.
      • 43957
      • 79 Posts
      I have a similar problem with 2.2.0 with option select box.

      [!+fi.tellmesomething:FormItIsSelected=`Yes`]]

      Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/content/MYWEBSITE/core/cache/includes/elements/modsnippet/110.include.cache.php on line 39

      Rolled back to 2.1.2 and it's ok.
        • 34174
        • 67 Posts
        In the bugtracker, this was fixed but it hasnt been included in the final code yet.
          • 12888
          • 2 Posts
          I've the fix in the code but get the same error anyway. Maybe there is something missing.
          Now I do it in the way below. Not so nice but it works:
          <input type="checkbox" name="agb" value="yes" [[!+fi.agb:is=`yes`:then=`checked`]] />
          Best indy
            • 42414
            • 3 Posts
            I had the same issue as indygfx - still had errors in the protocol.

            This seems to work:

            In the snippets FormitIsChecked and FormItIsSelected change lines
            if (in_array($options,$input)) {

            with
            if (!empty($input) && is_array($input) && in_array($options,$input)) {


            Source: http://www.forum.jolichter.de/index.php?topic=240.0