Page 1 of 1

Can't login after update to 1.02

Posted: Mon Sep 25, 2006 10:48 am
by wientanz
Hi,

I currently have the problem that I updated a few a of my websites from 0.13 to 1.02 and ran into trouble with 2 of the sites:

1.) I can't login any longer to www.bugovsky.com/admin. No user works.
2.) frankreich-guide.com has some menu problems after updating. The menu should stay horizontal, but for some unfathomable reason it spits out the page the user is currently on and makes a linebreak or paragraph right before and after that, which really breaks the menu. As I read a few posts, I copied the "Accessibility and cross-browser tools" stylesheet from a fresh install and appended it to my template. Still no luck.

If any of you guys and gals have an idea, I would be thankful.

Re: Can't login after update to 1.02

Posted: Mon Sep 25, 2006 12:49 pm
by tsw
2)

the active page link is changed to h3, you might want to style it similar to li a

(maybe something like

Code: Select all

#menu ul li a,
#menu ul li h3
{
background-color: transparent;
background-repeat: repeat-x;
padding: 8px 12px 8px 12px;
font-size: 12px;
color: #fff;
font-weight: bold;
display:inline;
}
)


OR change the menumanager template to not change active page to h3

(with simple menu its something like

{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator *}

{if $count > 0}

{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}

{if $node->current == true}
url}">Current page is {$node->hierarchy}: {$node->menutext}

{elseif $node->parent == true}
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->hierarchy}: {$node->menutext}

{elseif $node->type == 'sectionheader'}
{$node->menutext}

{elseif $node->type == 'separator'}


{else}
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}{if $node->target != ''} target="{$node->target}"{/if}>{$node->hierarchy}: {$node->menutext}

{/if}

{/foreach}
{repeat string="" times=$node->depth-1}

{/if}

(remove red parts and add green parts)

hope this helps

for the login problem. can you set debug on and test again and check if there are any errors

Re: Can't login after update to 1.02

Posted: Sun Oct 01, 2006 9:06 pm
by wientanz
Thanks! Changing the MenuTemplate did it.

And how can I set the debug mode?

Re: Can't login after update to 1.02

Posted: Mon Oct 02, 2006 8:53 pm
by wientanz
Ok, just found the debug option in the config.php.

When I try to log in, this happens. It all looks good, but the link to the admin are is just wrong. When I enter the right user and pw, I get sent back to the login. When I enter a unknown user/wrong passwd,  it says right that. But not when I enter the right user. Strange. Debug data is:

Code: Select all

Debug is on. Redirecting disabled... Please click this link to continue.
/admin/login.php

Debug: (3.7000000000009E-05) - (461232)
loading smarty
Debug: (0.009687) - (698752)
loading adodb
Debug: (0.012204) - (753608)
loading page functions
Debug: (0.016531) - (911992)
loading content functions
Debug: (0.020412) - (1068016)
loading pageinfo functions
Debug: (0.021958) - (1094744)
loading translation functions
Debug: (0.023213) - (1109904)
loading events functions
Debug: (0.027145) - (1189640)
loading template functions
Debug: (0.034715) - (1273712)
loading gcb functions
Debug: (0.038173) - (1347608)
loading module class
Debug: (0.046249) - (1672992)
loading bookmark functions
Debug: (0.049037) - (1704064)
loading content class
Debug: (0.060921) - (2111568)
loading user functions
Debug: (0.074287) - (2172776)
loading group functions
Debug: (0.099449) - (2204616)
loading stylesheet functions
Debug: (0.114596) - (2250952)
loading user tags functions
Debug: (0.138171) - (2273160)
done loading files
Debug: (0.32549) - (2846424)
<br>
(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs<br>
 Error (0): <br>

Debug: (0.35091) - (2887144)
<br>
(mysql): SELECT * FROM cms_userplugins<br>
 Error (0): <br>

Debug: (1.283571) - (3156256)
<br>
(mysql): SELECT * FROM cms_modules ORDER BY module_name<br>
 Error (0): <br>

Debug display of 'End of include':(2.31247) - (5232800)

Debug: (2.314134) - (5195992)
No session found.  Now check for cookies
Debug: (2.314205) - (5196160)
No cookies found.  Redirect to login.
Debug: (2.331941) - (5197952)
<br>
(mysql): SELECT user_id FROM cms_users WHERE username = 'Stefan' AND password = '****removed****' AND active = 1 AND admin_access = 1<br>
 Error (0): <br>

Debug: (2.332648) - (5199200)
<br>
(mysql): SELECT username, password, active, first_name, last_name, admin_access, email FROM cms_users WHERE user_id = '1'<br>
 Error (0): <br>

Debug: (2.332815) - (5199216)
Got user by username
Debug: (2.332874) - (5199368)
user Object
(
    [id] => 1
    [username] => Stefan
    [password] => ****removed****
    [firstname] => 
    [lastname] => 
    [email] => ****removed****
    [active] => 1
    [adminaccess] => 1
)

Debug: (2.332937) - (5199816)
Starting login procedure.  Setting userid so that other pages will pick it up and set a cookie.
Debug: (2.333396) - (5199776)
<br>
(mysql): SELECT preference, value FROM cms_userprefs WHERE user_id = '1'<br>
 Error (0): <br>

Debug: (2.33542) - (5201304)
<br>
(mysql): INSERT INTO cms_adminlog (timestamp, user_id, username, item_id, item_name, action) VALUES (1159822154,'1','Stefan','1','Stefan','User Login')<br>
 Error (0): <br>

Debug: (2.337451) - (5202072)
<br>
(mysql): SELECT eh.tag_name, eh.module_name, e.originator, e.event_name, eh.handler_order, eh.handler_id, eh.removable FROM cms_event_handlers eh
        INNER JOIN cms_events e ON e.event_id = eh.event_id
        ORDER BY eh.handler_order ASC<br>
 Error (0): <br>

Debug: (2.338062) - (5201592)
<br>
(mysql): SELECT version from cms_version<br>
 Error (0): <br>