Forums / Install & configuration / Admin and users cannot login

Admin and users cannot login

Author Message

Derrick Oltmann

Thursday 11 October 2007 12:46:25 pm

When trying to login to the admin interface, I would be sent back to the same login screen, with no errors. I manually changed my password by updating hash in the password_hash field in ezUser table using the following format username\npassword.

Now It is telling me that it does not recognize my username/password.

It does this for all users, and new users cannot activate accounts or login as well...

Nothing was changed (on my part) between when I was logged in and when it wanted me to relog, and could not.

Any Ideas?

*Edit*
Trying to login to the admin site with a normal user will produce an "Access Denied" message, but admin is unable to login. Although users will authenticate on main page, it will not actually log them in, as where the admin account will not not authenticate.

Betsy Gamrat

Thursday 11 October 2007 4:20:29 pm

I would check the database settings in site.ini.append.php for all siteaccesses.

Then, clear the caches.

To recover your password, use example.com/user/forgotpassword - and enter your email address.

Damien Pobel

Friday 12 October 2007 2:45:12 am

Hi Derrick,

I had a problem like that. It was because of a database corruption. This corruption was due to the ezsession table that keeps on growing with the default Debian (and Ubuntu...) configuration of session handler in PHP.
See http://issues.ez.no/10431

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Emil Lazaro

Saturday 13 October 2007 11:11:31 pm

Hi, I have the same problem on my local Windows install of 3.10
How do I clear the cache, when I cannot log in as admin?

I also noticed when I printed out the current session content that there is a user logged in, the one that comes with the sample site install (user: anonymous, e-mail: nospam@ez.no). I assume that's because the demo package has been created while this user was logged in, so this remained int the cache files.

Can I just manually delete the files in var/cache?

Ousmane Ba

Saturday 03 November 2007 9:03:35 pm

It's my first week here among you guys and hope to be able to contribute soon.
I am learning by making every possible mistake.
Yesterday I experienced the same problem. Turned on debugging and also noticed a select on the ezsession table I made a back up and then truncated the table and it fixed it.
I guess deleting entries specific to your user id should work.

Note there is a cronjobs script in contributions that clears up sessions. I am taking a look at it.

Ousmane Ba

Betsy Gamrat

Wednesday 09 January 2008 3:32:21 pm

Other things to try:

Check the memory limit in php.ini
Run the cronjob (does some clean up)

eZ debug

Timing: Jan 18 2025 23:14:42
Script start
Timing: Jan 18 2025 23:14:42
Module start 'content'
Timing: Jan 18 2025 23:14:43
Module end 'content'
Timing: Jan 18 2025 23:14:43
Script end

Main resources:

Total runtime0.7076 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.8281180.8281
Module start 'content' 0.00600.5920 768.6563683.8281
Module end 'content' 0.59800.1095 1,452.4844337.0703
Script end 0.7075  1,789.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5659210.0002
Check MTime0.00140.2018210.0001
Mysql Total
Database connection0.00070.099910.0007
Mysqli_queries0.627088.61122090.0030
Looping result0.00200.27582070.0000
Template Total0.676095.520.3380
Template load0.00200.277320.0010
Template processing0.674095.260420.3370
Template load and register function0.00020.032910.0002
states
state_id_array0.00140.198410.0014
state_identifier_array0.00170.238720.0008
Override
Cache load0.00170.2406370.0000
Sytem overhead
Fetch class attribute can translate value0.00240.334060.0004
Fetch class attribute name0.00080.114780.0001
XML
Image XML parsing0.00510.714560.0008
class_abstraction
Instantiating content class attribute0.00000.002490.0000
General
dbfile0.00861.2148330.0003
String conversion0.00000.000930.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs