New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • I've just updated FormIT on one of my sites and now it's preventing me from logging into manager (HTTP ERROR 500). I updated via the manager.
    The error is:
    mod_fcgid: stderr: PHP Parse error: syntax error, unexpected '[' in /home/webs60/public_html/core/components/formit/src/FormIt.php on line 24

    I installed it on another site to see if it was an update issue and the same thing happened with the same error and stopping me from logging into manager.

    Line 24 is:
    public $config = [];

    Any ideas?

    This question has been answered by Jako. See the first response.

    [ed. note: crewmark last edited this post 10 months, 3 weeks ago.]
    • discuss.answer
      That’s a php version specific issue. Your version (5.3 or below) does not know the new array syntax.
      • Brilliant... thought it had to be something simple. Many thanks.
        • Thanks for that tip. Same problem for me here and was tearing my hair out! Easily solved!
          • Quote from: Jako at Apr 22, 2018, 12:15 PM
            That’s a php version specific issue. Your version (5.3 or below) does not know the new array syntax.

            How does one fix this error?
            • Quote from: dubbs at Aug 15, 2018, 08:09 PM
              Quote from: Jako at Apr 22, 2018, 12:15 PM
              That’s a php version specific issue. Your version (5.3 or below) does not know the new array syntax.

              How does one fix this error?

              In my case I just upgraded to PHP 7 and all was good.
                • Quote from: crewmark at Aug 15, 2018, 08:24 PM
                  Quote from: dubbs at Aug 15, 2018, 08:09 PM
                  Quote from: Jako at Apr 22, 2018, 12:15 PM
                  That’s a php version specific issue. Your version (5.3 or below) does not know the new array syntax.

                  How does one fix this error?

                  In my case I just upgraded to PHP 7 and all was good.

                  OK thanks - yeh, that would be the simplest solution!