We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5976
    • 30 Posts
    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 5 years, 11 months ago.]
    • discuss.answer
      That’s a php version specific issue. Your version (5.3 or below) does not know the new array syntax.
        • 5976
        • 30 Posts
        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!
            • 8168
            • 1,118 Posts
            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?
              • 5976
              • 30 Posts
              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.
                • 8168
                • 1,118 Posts
                  • 8168
                  • 1,118 Posts
                  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!