Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Logging Off doesn't work, can someone pls check this:

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-09-2003, 10:31 AM
 
TheWrongGrape TheWrongGrape is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Los Angeles, CA
Posts: 68
 

Default Logging Off doesn't work, can someone pls check this:

Hi, I haven't made any changes to authbox.tpl, but clicking the LogOff button does nothing. Here is the code from authbox.tpl:
Code:
{* $Id: authbox.tpl,v 1.12 2002/10/21 07:06:43 zorg Exp $ *} <TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <form action="../include/login.php" method=post name=loginform> <TR> <TD class=VertMenuTitle height=26 width=26>[img]{$ImagesDir}/dingbats_authentification.gif[/img]</TD> <TD class=VertMenuTitle height=26 valign=center width="80%" ><FONT class=VertMenuTitle>{$lng.lbl_authentication}</FONT></TD> </TR> <tr> <td class=VertMenuBox > </td> <td class=VertMenuBox valign="top" > {$login} {$lng.txt_logged_in} {include file="buttons/logout_menu.tpl"} </td> </tr> <input type=hidden name=mode value=logout> <input type=hidden name=redirect value="{$redirect}"> </form> </table>

Although nothing happens on the page, once I click LogOff a little icon shows up in my browser's (IE) status bar telling me there's an "Error on page." Clicking that icon tells me:
Quote:
Problems with this Web page might prevent it from being displayed properly or functioning properly.

Line: 1
Char: 1
Error: Object doesn't support this property or method
Code: 0

I don't understand, since Line 1 Char 1 is just the "h" from <html>
Help please!
Reply With Quote
  #2  
Old 05-09-2003, 10:56 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

do you have the debug cvonsole switched on ?

if so switch it off and see if that fixs it
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-09-2003, 11:34 AM
 
TheWrongGrape TheWrongGrape is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Los Angeles, CA
Posts: 68
 

Default Debug has never been on, however ...

From the template editing page, when I click preview for authbox.tpl and then click LogOff from the resulting new browser window, it works! I am logged off Admin. When I return to my orignal browser window and try to do something else, I'm told Access Denied and need to log back in. So the problem isn't with the template, I guess, but with whatever context the template is in. I don't really understand it. A customer can't LogOff and I can't logOff from admin. Grrr ... any other ideas?
Reply With Quote
  #4  
Old 05-09-2003, 11:49 AM
 
TheWrongGrape TheWrongGrape is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Los Angeles, CA
Posts: 68
 

Default

Oops. Nevermind. I think I've isolated the problem, working on it now.

(My layout/design calls for two authbox.tpl on the page, when I have only one, it works, but with two, I think there's a conflict).

Thanks for trying to help though!
Reply With Quote
  #5  
Old 09-29-2006, 06:44 PM
 
lootsale lootsale is offline
 

Member
  
Join Date: Sep 2006
Posts: 24
 

Default Re: Logging Off doesn't work, can someone pls check this:

i have tried this and works fine with mine. you may view on the top in header.

{if $login eq "" }
<a href="<A href="https://www.lootsale.co.uk/error_message.php?need_login">Login/Register</a>
{else}
<a href="<A href="http://www.lootsale.co.uk/include/login.php?mode=logout&redirect=customer">Logout</a>
{/if}

Best Wishes..
__________________
iddiboy..
lootsale.co.uk..
x-cart 4.1.3..
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:52 PM.

   

 
X-Cart forums © 2001-2020