ProtectedPages 0.9.3 not working 100%
ProtectedPages 0.9.3 not working 100%
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!
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!
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
Re: ProtectedPages 0.9.3 not working 100%
Hello
I maintain the ProtectedPages module, and will look into it as soon as I have the time! Hang on!
Best regards
Morten/Silmarillion
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%
This is the code i'm using:
I have also tried:
And this:
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!
Code: Select all
{cms_module module="protectedpages" allow_groups="members" allow_users="user"}
Code: Select all
{cms_module module="protectedpages" allow_groups="members"}
Code: Select all
{cms_module module="protectedpages" allow_users="user"}
As for the pw's not saving, your changes to lines 102 and 106 fixed it perfectly. Good catch! Thanks!
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
ProtectedPages 0.9.3 not working 100%
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
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:with:Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username='?',SET password='?' WHERE id='?'";
and line 106, I replaced:Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username=?, password=? 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.Code: Select all
$query="UPDATE ".cms_db_prefix()."module_ppages_users SET username=? WHERE id=?";
Cheers
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
ProtectedPages 0.9.3 not working 100%
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
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:I have also tried:Code: Select all
{cms_module module="protectedpages" allow_groups="members" allow_users="user"}
And this:Code: Select all
{cms_module module="protectedpages" allow_groups="members"}
I checked and ther user is a member of the proper group.Code: Select all
{cms_module module="protectedpages" allow_users="user"}
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%
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! :)
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
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?!
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?!
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
Re: quick solution :-S
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
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?!