Viewing 6 replies - 16 through 21 (of 21 total)
  • Actually Chris, can you try changing that line to this instead?
    add_action('template_redirect', 'members_only');

    I hoping that might fix the issue (for those that have it) for good – fingers crossed.

    / Hami

    Hami, that last line:

    add_action(‘template_redirect’, ‘members_only’);

    Worked when I put it in the plugin and re-uploaded it. You should make this change to the current release (as of today, April 4, 2008).

    Thanks!

    This is now fixed in the new version (0.5).

    / Hami

    Thread Starter mrgreen

    (@mrgreen)

    hami,

    Thanks for fixing the variable bypass problem so quickly!

    Sorry for not responding, been away…

    Anywaste, I uploaded the new version now I get this error:

    Warning: require(/home/—/public_html/wp-config.php) [function.require]: failed to open stream: No such file or directory in /home/—/public_html/wp-login.php on line 2

    Fatal error: require() [function.require]: Failed opening required ‘/home/—/public_html/wp-config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/—/public_html/wp-login.php on line 2

    My config file is located here: /home/—/public_html/journal/wp-config.php So I’m unsure why it’s being looked for in the blog url not the installation url.

    Hey Chris,

    That sounds like your WordPress install has gone screwy and your file permissions have gone a rye. The error is basically saying it can’t find wp-config.php, but that could mean the permissions are wrong for the file. The correct permissions should be rw-r--r-- or 644.

    I assume removing Members Only doesn’t fix this issue?

    I pretty confident this is nothing to do with my plugin as I have it installed on multiple WordPress testbeds running several versions. Try reinstalling WordPress or checking all the files are there with the correct permissions.

    / Hami

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘[Plugin: Members Only] Bypassed by adding variable to url’ is closed to new replies.