The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Fatal PHP error in (6 posts)

  1. David Anderson
    Posted 2 years ago #


    $ wget -q http://downloads.wordpress.org/plugin/bruteprotect.zip
    $ unzip -q bruteprotect.zip
    $ php -l bruteprotect/admin/inc/plugin-install.php

    Parse error: syntax error, unexpected '[' in bruteprotect/admin/inc/plugin-install.php on line 6

    Errors parsing bruteprotect/admin/inc/plugin-install.php
    $ php -v
    PHP 5.3.20 (cli) (built: Dec 20 2012 06:20:32)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Rethans

    The line:

    var $errors = [];

    is that a PHP 5.4-ism?

    Now that you've reached 1.0, any chance of less frequent updates? The update treadmill is tiring my clicking finger out! (Even with WordShell, which automatically detected the above PHP error before I installed - http://wordshell.net).



  2. Sam Hotchkiss
    Plugin Author

    Posted 2 years ago #

    Hey David-- we knew about that problem, so the file you're referencing there doesn't get included (so this error wouldn't happen when the plugin is activated)

    Sorry about the frequent updates this last week, we're working on fixing the issue with that file so that we can include it, then we should be quiet on the update front for a while. Our long-term update plan is every 2 weeks.

  3. David Anderson
    Posted 2 years ago #

    Hi Sam,


    For my two-cents worth, every 2 weeks is still too frequent, even if you have zero bugs and need no immediate fixes to show-stoppers that come with those 2-week releases. Personally, anything more than once a month (give or take those immediate fixes, which happen - that's life) starts to get annoying and make me investigate alternative solutions for any particular plugin.


  4. gecko_guy
    Posted 2 years ago #


    My thanks again for your tremendous efforts and a great solution, but I agree with David Anderson.

    It is a real pain needing to constantly update plugins unless it really is for operational reasons, and this is particularly the case for developers/designers who maintain a large number of sites.

    Please bear this in mind if possible, although with such an important mechanism on a site I am happy to update as frequently as necessary if it does indeed help with protection.


  5. Sam Hotchkiss
    Plugin Author

    Posted 2 years ago #

    Thanks for your feedback Guy and David-- we will definitely keep this in mind and try to err toward fewer releases rather than more frequent.

  6. David Anderson
    Posted 2 years ago #


    Any chance that this invalid PHP could either be commented out, or the file removed? I realise that the file does not get included, but it still gets flagged up by my updating tools every time there's a BruteProtect update, and I have to manually approve it. (I have tools which lint all plugin PHP before it goes live on a site - it's saved me sometimes from bad plugin updates which authors have released - not you!).

    I don't mean to whine about this. BruteProtect is great. It was just that I wondered if the issue would go away with the release of 2.0, since you mentioned in your original post that the file would eventually be included.

    Best wishes,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BruteProtect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.