Forums / Setup & design / Login for registered user not possible-only after new signup

Login for registered user not possible-only after new signup

Author Message

E Hoelzler

Tuesday 24 October 2006 10:27:36 am

After having signed up as guest user (lets say user A) and leaving the system (and closing the browser) it is impossible to log in again as user A, although the admin shows the user properly. But: when signing in as user B, logging of as user B - then it is possible to log in also as user A - as long as I do not close the browser (and therefore the session).

Thus, the system seems to have two different states:
State 1: after a "fresh" sign up it accepts to log in as a previously registered user.
State 2: when entering the system wothout this fresh sign up, it is impossible to log in.

Internally the login process seems to work properly. I have instrumented the file kernel/user/login.php with debug statements and they show thatthe correct user ID belonging to the user name is found (e.g. 401). The login.php procedure terminates properly with the

        return $Module->redirectTo( $redirectionURI );

statement. But on the pagelayout.tpl, which comes up subsequently (and which I instrumented with a

 {$current_user.contentobject_id} 

statement , the (anonymous) user is shown instead.

Furthermore the login process works properly (no complaints about a wrong password or similar.

Wher is the ghost, who removes the correct user ID between the end of login.php and the display of the pagelayout.tpl show?
I have temporarily removed all "cache-block" entries from the pagelayout.tpl. Can there be a "cache-trap" somewhere else?
I have installed the "personal folder" contribution (with a fix of the section problem there). Perhaps this has an influence - but - seriously speaking - I dont see it.

Thanks for Help! Erwin Hölzler, Metacontent Munich

E Hoelzler

Wednesday 25 October 2006 11:15:18 am

Error found!

At the provider (1 und 1), I have a redirection which redirects the user from a reasonable site name to the somewhat crypric and long server name. The default setting is "frame redirection" which obvviously spoils the server name. Changing to "http-redirection" fixed the bug.

What we learn: <b>always use http - redirection at your provider, never frame - redirection</b>

Erwin Hölzler

eZ debug

Timing: Jan 18 2025 18:34:26
Script start
Timing: Jan 18 2025 18:34:26
Module start 'content'
Timing: Jan 18 2025 18:34:26
Module end 'content'
Timing: Jan 18 2025 18:34:26
Script end

Main resources:

Total runtime0.4343 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0135 593.6328180.7969
Module start 'content' 0.01350.0124 774.429793.9922
Module end 'content' 0.02590.4083 868.4219524.4219
Script end 0.4342  1,392.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00521.2059200.0003
Check MTime0.00200.4533200.0001
Mysql Total
Database connection0.00150.355710.0015
Mysqli_queries0.358282.48541410.0025
Looping result0.00190.44191390.0000
Template Total0.404393.110.4043
Template load0.00120.274010.0012
Template processing0.403292.828410.4032
Override
Cache load0.00090.204710.0009
Sytem overhead
Fetch class attribute can translate value0.00080.185810.0008
XML
Image XML parsing0.00030.060310.0003
General
dbfile0.00260.5947200.0001
String conversion0.00000.001830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs