1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

unexpected '[' in add-ons

Discussion in 'XenForo Development Discussions' started by Dadparvar, Jul 23, 2016.

  1. Dadparvar

    Dadparvar Well-Known Member


    There are two exactly the same XF site. Both running XF 1.5.8 and the same plugins of the same version.

    One of them are totally OK and all the things are working fine.

    But one of them gives "unexpected '[' ..." error related to files of plugins.

    I checked those files of plugins and their codes are totally OK and that [ is not unexpected at all. (and if its unexpected, then why the other site is working fine?)

    Any opinion will be appreciated.
  2. Claudio

    Claudio Well-Known Member

    Using [] as arrays only works with PHP 5.4 and up. Are you sure both sites are running on PHP 5.4 or higher?
    Alfa1, Thomas.B and Dadparvar like this.
  3. Dadparvar

    Dadparvar Well-Known Member


    It seems the problem is exactly this. I need to check it. I'll update the thread upon result.
  4. Dadparvar

    Dadparvar Well-Known Member

    I checked the server, and that was exactly the problem @Claudio (y)
    Claudio likes this.

Share This Page