login submit takes me out of zen directory

I saw a post about this here but I didnt see a posted solution and wondered how I could fix this issue.

I upgraded tonite thinking it might fix it, but Im still being taken out of the zen directory after submitting the login/pass.

I have to use the browser back button to get back to the login page and then if I click submit again it takes me to the right place, but with sporadic results, sometimes it works others it doesnt.

I uncommented the two path overrides in the config, but nothing worked at all in my installation using either or both of the overrides.

Comments

  • Mania Member
    I have the same problem. The second login (well, not actually a login since you just have to go back and press the button and not even enter anything on the fields) works for me every time. This doesn't bother me though since I don't use the admin side that much.
  • does anyone have a patch/fix for this- or can tell me what I need to do and I'll do it, just need to get this sussed.

    thanks
  • trisweb Administrator
    zen/admin-functions.php, line 144(ish)

    Replace the whole mod_rewrite if/else block with this one line:

    ` echo "\n ";`

    It will be fixed in 1.0.3, to be out in a week or two.
  • thanks trisweb!
  • ?? doesn't work for me
    I've got mod_rewrite=false and the same problems like described before every login just works after second attemt with forward and back in my broser (Firefox and IE newest versions)

    I replaced in zen/admin-functions.php, line 144;
    and got now the error:
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /usr/export/www/vhosts/funnetwork/hosting/marabu/wordpress/photos/zen/admin-functions.php on line 146
    PS: Addin ";" and "," at the end of your line didn't work

    [EDIT] Ok sometimes i don't get the point, maybe
    here's the corrected version from me:
    // Is rewrite enabled?
    echo "\n <input type=\"hidden\" name=\"redirect\" value=\"/zen/admin.php\" />";
  • Deadcrow,
    Yeah, you're edited verion looks correct. It looks like it trisweb's backslashes got cut off when he posted that line.

    Now that you've correctly changed that line, are you still having that problem?
  • trisweb Administrator
    Fixed in my original post -- the backslashes should be there, yeah.
  • haha trisweb, you forgot the \ at the beginning for the \n
  • trisweb Administrator
    Ah, this stupid forum was stripping them out! I probably had it right the first time... ;-) Should be good now.

    Anyway, it's patched in the next version. I hope to release it next week.
Sign In or Register to comment.