• Cannot activate plugin due to error.

    Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/force-https-littlebizzy/admin-notices-ms.php on line 85

    • This topic was modified 5 years, 11 months ago by bajan4evr2.
Viewing 3 replies - 1 through 3 (of 3 total)
  • What version of PHP are you using? That line uses the “new” array notation [] introduced in v5.4. If you’re running an earlier version, that would explain the error.

    On a separate note, I strongly suggest upgrading PHP versions. There are massive performance improvements, especially in v7.0+.

    Quick follow-up:

    If you’re using a newer PHP version, you may be having the same issue as detailed here: https://www.ads-software.com/support/topic/php-7-compatibility-229/

    In that case, it’s not the use of [] but instead the & used before $this in lines 85, 86.

    The plug-in goes into the mu-plugins directory. If you don’t have the mu-plugins directory, FTP to your site and create it in the wp-content directory. So the path would be /wp-content/mu-plugins/ Simply upload the entire force-https folder to this directory.

    The mu stands for must use. Depending on your hosting company, you probably have it already. Little Bizzy plugins may require their autoloader.php script, which goes in the same directory. It’s a single file and was available on git-hub. Not sure if it was taken down by Little Bizzy.

    A lot of their plugins are only available if you host your site on their servers. So they probably don’t have the time to provide support to non-hosting customers. My crappy hosting company is the same way and use their own proprietary plugins.

    I use Really Simple SSL which is available here. You install it, activate it, and choose the settings right for you (the default settings should work just fine). Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected’ is closed to new replies.