ZenphotoCMS Forum
login submit takes me out of zen directory - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: login submit takes me out of zen directory (/thread-457.html)



login submit takes me out of zen directory - lokjah - 2006-04-21

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.




login submit takes me out of zen directory - Mania - 2006-04-21

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.




login submit takes me out of zen directory - lokjah - 2006-04-26

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




login submit takes me out of zen directory - trisweb - 2006-04-26

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.




login submit takes me out of zen directory - lokjah - 2006-04-28

thanks trisweb!




login submit takes me out of zen directory - deadcrow - 2006-05-26

?? 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 ";




login submit takes me out of zen directory - DarrellD - 2006-05-26

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?




login submit takes me out of zen directory - trisweb - 2006-05-26

Fixed in my original post -- the backslashes should be there, yeah.




login submit takes me out of zen directory - DarrellD - 2006-05-26

haha trisweb, you forgot the \ at the beginning for the [b]\n[/b]




login submit takes me out of zen directory - trisweb - 2006-05-27

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.