WordPress.org

Ready to get started?Download WordPress

Forums

BruteProtect
[resolved] Fatal PHP error in 1.0.0.2b (6 posts)

  1. David Anderson
    Member
    Posted 9 months ago #

    Whoops...

    $ 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).

    David

    http://wordpress.org/plugins/bruteprotect/

  2. Sam Hotchkiss
    Member
    Plugin Author

    Posted 9 months 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
    Member
    Posted 9 months ago #

    Hi Sam,

    Thanks...

    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.

    David

  4. gecko_guy
    Member
    Posted 8 months ago #

    Sam,

    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.

    Guy

  5. Sam Hotchkiss
    Member
    Plugin Author

    Posted 8 months 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
    Member
    Posted 1 month ago #

    Hi,

    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,
    David

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.