Open Thojohify opened 9 years ago
Hi,
I have just had a quick look at this - the code is working fine on my site, and to be honest, the logout part is not something I have changed since Iforked the code from the original Registered_Users plugin. However, I have also had a quick look at the code that is called on logout (attached below):
function ap_logout() {
// Allow plugins to handle logout events
Observer::notify('logout_requested');
$username = AuthUser::getUserName();
AuthUser::logout();
Observer::notify('admin_after_logout', $username);
redirect(get_url());
}
There are a couple of triggers to the Observer subsystem in there (notify and admin_after_logout) - have you changed either of these events to do something that redirects somewhere? Also, the get_url() function is part of the Wolf framework; calling it without any parameters should return the value of the BASE_URL property. Again, check that you haven't changed this value. What errors are you seeing, and where is it trying to redirect you to? If you create a new page and put the code:
<?php echo get_url(); ?>
Does this display the URL of your website when you go to that page?
The Approved_Users code I have built is quite specific for one particular application - it is intended as a starting point for your own requirements, and may not be appropriate 'out of the can'. Make sure that you fully understand how it works before changing too much stuff. Let me know how you get on. As I said before, it works well in my applcation of the code - all I can do at the moment is provide some pointers about where to look.
Hi Giles
I am tearing my hair out here (what little there is of it). I've followed your instructions and uploaded the Approved Users plugin to my site as I need the user management functions it offers. I've signed in as Admin and ticked the box, refreshed the page, logged out and logged back in, left it a day, left it a week. The tab does not appear. What am I doing wrong and what do I need to do to fix this?
I am using Wolf CMS 0.8.3.1
Cheers Colin D Miller
Attached: screenshot of my admin area ...
Perhaps this is another issue? I should raise this separately ...
Hi Colin, Sorry about the delayed reply - I've been working away from home with limited access to emails. I can't think of a reason off the top of my head why it does not display. However, it would be useful to have a look at the server logs (if you can access them) to see if there is anything in there that would indicate what is going on. If you are hosting your own site yourself, the System_out and System_err log files might be interesting to look at. If you have a commercially hosted site, yuo can generally see the same logs in cPanel if you look for "Error logs". Can you have a look in these logs and see if you can see something that looks relevant? They may be "file not found" or PHP errors.
Hi Giles
Thank you for getting back - I did not expect an immediate answer.
I have tried loading your Approved Users tool and failed to load it, and also tried to load Martijn van der Kleijn's Registered Users too, and found that it did the same thing. So I de-installed and deleted each in turn and tried again with your tool. I started monitoring the error logs and unticked, refreshed, ticked and refreshed but no error messages appeared. Could it be because I am using Wolf CMS 0.8.3.1? I am sure I have successfully uploaded all the files in your zip file. I've installed other plugins successfully on this and other websites which is why I am baffled by this.
Is there anything else I should be looking at?
Cheers Colin
Phone: 07810 334667 e-mail: me@colindmiller.com
On 22/11/2015 14:46, GilesMetcalf wrote:
Hi Colin, Sorry about the delayed reply - I've been working away from home with limited access to emails. I can't think of a reason off the top of my head why it does not display. However, it would be useful to have a look at the server logs (if you can access them) to see if there is anything in there that would indicate what is going on. If you are hosting your own site yourself, the System_out and System_err log files might be interesting to look at. If you have a commercially hosted site, yuo can generally see the same logs in cPanel if you look for "Error logs". Can you have a look in these logs and see if you can see something that looks relevant? They may be "file not found" or PHP errors.
— Reply to this email directly or view it on GitHub https://github.com/GilesMetcalf/approved_users/issues/1#issuecomment-158764472.
I installed this plugin and decided to try to logout, now I cannot access my site anymore because it keeps redirecting me(?) according to Google Chrome.
"ERR_TOO_MANY_REDIRECTS", cannot access it at all. Mind checking it out?