Table of contents ▼▲
Bug 23 - login button does not seem to work
Need to work through this with you...When the login button is pressed, does a login form appear?
[Uffe]: No I'm getting the home page. I'll try to dig up some more info today.
[DT]:Does the url change and hav
&action=acl&acla=login in it ?
[Uffe]: Well yes and no: My Windows installation of WikiDX adds "page=start&action=acl&acla=login" to the url and gives me the server side directory listing of the WikiDX installation dir. My linux installation does not change the url and shows me the "start" page of WikiDX.
[DT]:ok... comment out the line
$InterfaceCtlFunction = "_CmdButton"; in /skins/default/skin.php. This will then use simple text links where the correct url can be seen in the status bar.. If these work, the problem lies in the button generation, if not we will have to delve deeper... I only have XP locally, so will need your help on this one...
[Uffe]: Implementing the suggested change to skin.php makes login/editing/logout work on my linux WikiDX installation :-) On my local Windows XP WikiDX installation commenting out the "InterfaceCtlFunction" makes a difference - now I get a login page. But when I give correct credentials to the login page I get this url and response: http://localhost/205203?page=sandpit/sandpit
Not Found
The requested URL /205203 was not found on this server.
Apache/2.0.52 (Win32) PHP/5.0.4 Server at localhost Port 80
[DT]: Great!!! That helped a lot... I have put together a beta release that should address this.. Can you download it, try it, and let me know... 0.4.03 beta
[Uffe]: downloaded beta 0.4.03 and installed it on my local WinXP laptop. Now when I login I'm just redirected to the start page (that means that it is not possible to edit a page when using authentication). Same happends if I comment out "$InterfaceCtlFunction" in skin.php. Another detail i noticed: if I run in non-auth-mode (gives the all group level=2 and comment in "$InterfaceCtlFunction"
then when ever I choose to edit a page then the edit form shows the start page (in edit mode) hence it is not possible to edit other pages than start page.
[DT]: I have put up another version of the zip (same url) with a few more mods. Can you go through the same again please..
I have upgraded [[http:\\beta.turland.net]] to run 0.4.03 and do not get the isssues you seem to be experiencing.
A couple of questions...
- Do you have an index.php in the base dir ? if so remove
- Are you using the rewrite code in the htaccess file ?
[Uffe]: downloaded and installed the new 0.4.03. When ever I now get a green line in the top stating login successful - looks great :-)
In the previous tests I actually had an index.php file in the base dir - it is deleted now in this test - stills get the same problems.
The htaccess file is the one shipped with your zip - no modifications.
But I'm still not allowed to edit even when I'm successfully authenticated... strange...it just says that I need to login.
When I've logged in the "login" button/link is changed to "logoff". If I press the "home" (or any other) button/link it will display "login" again. It seems that I'm logged out whenever I press a button - therefore authenticated editing is not allowed.
Regarding the beta.turland site: (unauthenticated) editing of the main page works great. But something is wrong editing the sandpit/sandpit keeps on stacking "sandpit" on the url..
If I do an unauthenticated local setup (give "all" acl level="255"
I can edit the start page but still not create the new sandpit/sandpit pagepage. Is redirected to to an edit screen for the start page.
[DT] Thanks for the help on this Uffe... It's going to have to wait until later.. I have isolated the problem to the variables.php 'pretty url' section...
[DT] OK. I think I got it this time.. It all seems to work now on the beta site.. There was a issue with the pretty url code not working on top level url's. Updated the zip file once again, so if you could try it out....
[DT] Pretty sure I have got it covered now... Still had a problem if the first level directory was same name as php script ie a page of wikidx/docs/index and a script name of wikidx.php would cause a problem. This is now fixed. beta zip file updated 09:20 (GMT) 16th Dec. Please d/l and let me know how you get on...
[Uffe]: Downloaded and installed the newest beta 0.4.03
At the same time I (desperately) upgraded my WinXP installation to Apache2.0.55/PHP5.1.1 (from Apache2.0.52/PHP5.0.4).
Now running with "$InterfaceCtlFunction" commented out every thing seems to work - authentication also :-)
Problem is now that I've changed several things (apache/php/wikidx) so I can't point out what made the difference (sorry).
One problem persists running with "$InterfaceCtlFunction" commented in still won't let me edit any other page than the start page. If I try to edit sandbox pages I'm presented with an editor window containing the start page.
[DT] Good news that the basic links work... Not sure why the form buttons in the default skin wont work though. I will have to download new apache/php combi to see if I can reproduce. I'm currently on Apache/1.3.33, php 4.3.11...
[DT] Found it!!!!!! There was a hidden field missing from the _CmdButton function in skins/default/skin.php. Add the following line after the form method=...... line
$out .= "<input type='hidden' name='page' value='".$val['page']."'/>";
[Uffe]: YES !!! cool thanks for your effort :-) - this version is really cool. I love the ACL/auth stuff !!! Thanks :-)