unexpected '[' in add-ons

Dadparvar

Well-known member
Hi,

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.
 
Hi,

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.
Using [] as arrays only works with PHP 5.4 and up. Are you sure both sites are running on PHP 5.4 or higher?
 
Top Bottom