Page 1 of 1
ProtectedPages 0.9.3 not working 100%
Posted: Wed Feb 02, 2005 11:02 pm
by ngus
hi all, i'm running cms 0.8.2, and have installed protectedpages 0.9.3, and am having two problems.
1. protected pages does protect the page i want it to, but NO users can log in
2. when i try to change a pw of a user and then check the db via phpmyadmin, the pw is not changed and is still the original pw.
i'm not an expert but not totally green, but i'm stumped...
any help or ideas would be much appreciated.
the url to the site w/issues is:
http://ofc.dreamhost.com/index.php?page=membersonly
if anyone want to help troubleshoot the user/pw is litterally: user/password
thanks!
Re: ProtectedPages 0.9.3 not working 100%
Posted: Wed Feb 02, 2005 11:52 pm
by Silmarillion
Hello
I maintain the ProtectedPages module, and will look into it as soon as I have the time! Hang on!
Best regards
Morten/Silmarillion
ngus wrote:hi all, i'm running cms 0.8.2, and have installed protectedpages 0.9.3, and am having two problems.
1. protected pages does protect the page i want it to, but NO users can log in
2. when i try to change a pw of a user and then check the db via phpmyadmin, the pw is not changed and is still the original pw.
i'm not an expert but not totally green, but i'm stumped...
any help or ideas would be much appreciated.
the url to the site w/issues is:
http://ofc.dreamhost.com/index.php?page=membersonly
if anyone want to help troubleshoot the user/pw is litterally: user/password
thanks!
ProtectedPages 0.9.3 not working 100%
Posted: Thu Feb 03, 2005 5:50 am
by ngus
This is the code i'm using:
Code: Select all
{cms_module module="protectedpages" allow_groups="members" allow_users="user"}
I have also tried:
Code: Select all
{cms_module module="protectedpages" allow_groups="members"}
And this:
Code: Select all
{cms_module module="protectedpages" allow_users="user"}
I checked and ther user is a member of the proper group.
As for the pw's not saving, your changes to lines 102 and 106 fixed it perfectly. Good catch! Thanks!
ProtectedPages 0.9.3 not working 100%
Posted: Thu Feb 03, 2005 8:41 am
by Silmarillion
Hello Patricia and ngus
Oops! I'll check it out this afternoon and look into the other issue.
Ngus: Do you know what kind of server the system is running on? Another guy the other day had some trouble with the IIS-server.
Patricia: I thought you said you weren't a coder!?
I'll get back to you!
Best regards
Morten/Silmarillion
Patricia wrote:hello ngus,
Please paste here the exact {cms_module module="protectedpages" etc...} as you have put in the page?
and also, if you allowed access to a group, check the user is added to that group.
about your point 2, I realised it was the same for me, password did not update. I just had a look in the file and made the following changes (basically removed the simple quotes around ?), now user update works.
file: processadmin.php
line 102, I replaced:
Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username='?',SET password='?' WHERE id='?'";
with:
Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username=?, password=? WHERE id=?";
and line 106, I replaced:
Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username='?' WHERE id='?'";
with:
Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username=? WHERE id=?";
Silmarillion, check if I missed other places where quotes have to be removed.
Cheers
ProtectedPages 0.9.3 not working 100%
Posted: Thu Feb 03, 2005 12:28 pm
by Silmarillion
Hello NGus
I have tried looking around a bit, and as far as I can see you WebHost, DreamHost, allows you to run PHP either as CGI or as an Apache-module. As far as I can tell the authorization code I use may not work with the CGI-method, is that what your webhotel is using? If it is, could I ask you to try and change to the Apache-module method, the instructions as to how to do this can be found here:
https://panel.dreamhost.com/kbase/index.cgi?area=2934
If is works, I may have to reconsider the authorization method I use...
Hope it helps you, I cannot see any other reason why it shouldn't work...
Best regards
Morten/Silmarillion
ngus wrote:This is the code i'm using:
Code: Select all
{cms_module module="protectedpages" allow_groups="members" allow_users="user"}
I have also tried:
Code: Select all
{cms_module module="protectedpages" allow_groups="members"}
And this:
Code: Select all
{cms_module module="protectedpages" allow_users="user"}
I checked and ther user is a member of the proper group.
As for the pw's not saving, your changes to lines 102 and 106 fixed it perfectly. Good catch! Thanks!
ProtectedPages 0.9.3 not working 100%
Posted: Thu Feb 03, 2005 5:25 pm
by ngus
Silmarillion-
I made the change from running php as cgi, to 'normal' and now protectedpages doesn't do anything... when i go to:
http://ofc.dreamhost.com/index.php?page=membersonly
all i get is a blank white page...
What can I try next?
Thanks for all of your help! :)
quick solution :-S
Posted: Tue Feb 22, 2005 8:42 pm
by TNTH
I've got the same problem, but I really need a quick solution, if possible.
What I'm working on now is the following:
http://www.br-it.nl/klanten/
Username and password are: user and password, but it keeps coming with the loginwindow.
Help?!
Re: quick solution :-S
Posted: Tue Feb 22, 2005 8:46 pm
by Silmarillion
I'm very sorry, but there will not be a quick solution as I am rewriting the login-method completely for the new 0.9-module-API. Sorry guys... Upgrade and wait patiently for PPages 0.9.5 for CMS 0.9... Should be out real soon, I hope...
Best regards
Morten/Silmarillion
TNTH wrote:I've got the same problem, but I really need a quick solution, if possible.
What I'm working on now is the following:
http://www.br-it.nl/klanten/
Username and password are: user and password, but it keeps coming with the loginwindow.
Help?!
ok
Posted: Tue Feb 22, 2005 8:48 pm
by TNTH
Well at least thanks for the very fast answer
Then I'll try to passwordprotect the whole directory.