Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2007, 10:10 PM
vAx's Avatar
vAx vAx is offline
New Pligger
 
Join Date: Jun 2007
Location: Chicago
Posts: 19
Thanks: 0
Thanked 4 Times in 2 Posts
[SOLVED] LogOut Error Fixed

I noticed when trying to logout using Opera or Firefox you get a blank page with some text saying Click here to logout or something like that, but it doesn't go anywhere.

To fix it go to login.php and replace the following on line 32:

// if user requests to logout
if(isset($_GET["op"])){
if($_GET["op"] === 'logout') {
//$current_user->Logout($_REQUEST['return']);
$current_user->Logout(header("Location: index.php"));
}
}

Pligg 9.7 is here! Nice!
__________________
High Quality Club/Trance/DJ Tees @ www.MyClubTees.com
Reply With Quote
The Following 3 Users Say Thank You to vAx For This Useful Post:
  #2 (permalink)  
Old 07-14-2007, 04:53 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
this saves alot of hassle with admin pages.

for example if an admin logs out it redirects them to the admin page where they get "some error message" and people will think it's a bug not letting them logout but it simply redirecting to the admin page as a anonymous user.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #3 (permalink)  
Old 07-19-2007, 08:52 PM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 116
Thanks: 8
Thanked 35 Times in 8 Posts
I just installed 9.7 and I can't log out of my admin account using IE7. I tried the fix above and not only did it not fix the problem, but when using Firefox and a normal account it just went to a blank page. I'm assuming the fix above must be for 9.6, so I removed it.

Anyone else having a problem logging out of the admin account with 9.7 using IE7? I might be having the same problem with regular accounts, but I can't log out to test it (haven't tried deleting my cookies yet).
Reply With Quote
  #4 (permalink)  
Old 12-02-2007, 08:28 AM
longcountdown's Avatar
Pligg Donor
Pligg Version: 9.8.2
Pligg Template: moderno-orange
 
Join Date: Nov 2007
Location: Japan
Posts: 75
Thanks: 25
Thanked 18 Times in 11 Posts
Quote:
Originally Posted by fingerprn View Post
Anyone else having a problem logging out of the admin account with 9.7 using IE7?
Yes. Me, too, with 9.8.2. Exactly as you described.

Last edited by longcountdown; 12-02-2007 at 10:34 AM..
Reply With Quote
  #5 (permalink)  
Old 12-03-2007, 09:51 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Please help us help you. Post a link to your site!!!
__________________
- Ash
Reply With Quote
  #6 (permalink)  
Old 12-05-2007, 03:50 PM
TobiParrot's Avatar
Casual Pligger
Pligg Version: Pligg beta 9.8.2
Pligg Template: Default
 
Join Date: Dec 2007
Location: UK
Posts: 45
Thanks: 5
Thanked 8 Times in 6 Posts
I encountered the same problem with redirect after logout using Firefox (stuck in a loop on blank page). This worked for me, but I only installed Pligg today, so ignore me if this solution is off the mark.

libs/html1.php
line 416 and line 487
change
Code:
If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=".$var1;}
to:
Code:
 If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=index.php";}
There's probably a better way!

beta 9.8
win XP + IIS
PHP 4.3.11
MySQL 3.23.58
Reply With Quote
The Following 3 Users Say Thank You to TobiParrot For This Useful Post:
  #7 (permalink)  
Old 12-06-2007, 03:55 PM
New Pligger
Pligg Version: 0
Pligg Template: 0
 
Join Date: Nov 2007
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
TobiParrot, thanks a lot... I waited looong for this answer.... It fixed my BIG problem. No i can go live with my website.



Quote:
Originally Posted by TobiParrot View Post
I encountered the same problem with redirect after logout using Firefox (stuck in a loop on blank page). This worked for me, but I only installed Pligg today, so ignore me if this solution is off the mark.

libs/html1.php
line 416 and line 487
change
Code:
If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=".$var1;}
to:
Code:
 If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=index.php";}
There's probably a better way!

beta 9.8
win XP + IIS
PHP 4.3.11
MySQL 3.23.58
Reply With Quote
The Following User Says Thank You to chawra For This Useful Post:
  #8 (permalink)  
Old 01-22-2008, 08:51 AM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 416
Thanks: 75
Thanked 48 Times in 36 Posts
Thank you very much TobiParrot
Reply With Quote
  #9 (permalink)  
Old 02-13-2008, 10:55 AM
jacksparrow's Avatar
Pligg Donor
Pligg Version: 9.9.0
 
Join Date: Feb 2007
Location: NJ
Posts: 32
Thanks: 10
Thanked 1 Time in 1 Post
This sure helped me a lot
Reply With Quote
  #10 (permalink)  
Old 03-10-2008, 03:35 PM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 416
Thanks: 75
Thanked 48 Times in 36 Posts
for 9.9 I just changed line 424 and it works

If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=" . $var1;}

to

If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=" . index.php;}
Reply With Quote
The Following User Says Thank You to graphicsguru For This Useful Post:
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Logout on profile page grimusm General Help 2 12-04-2007 04:40 PM
[SOLVED] How to modify the return path url after logout? new_newbie General Help 1 08-26-2007 04:57 PM
Logout Problem ozo General Help 2 05-24-2007 02:37 PM
Login / Logout problem aliveshecried Bug Report 5 04-11-2007 05:45 PM
Pligg [Build 693] - Can't Logout Daniel Bug Report 3 02-12-2007 08:55 PM


Search Engine Friendly URLs by vBSEO 3.2.0