After an upgrade (7.2 to 8.1 and 8.3 or 8.x RC 8.4) the admin can't login anymore in some situations
- Status
- Closed
- Subject
- After an upgrade (7.2 to 8.1 and 8.3 or 8.x RC 8.4) the admin can't login anymore in some situations
- Version
- 7.x
8.x - Category
- Conflict of two features (each works well independently)
- Consistency
- Error
- Usability
- Documentation (or Advocacy)
- Feature
- Accessibility
Admin Interface (UI) - Resolution status
- Fixed or Solved
- Submitted by
- Bernard TREMBLAY
- Volunteered to solve
- Bernard TREMBLAY
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
After upgrade the admin can't login anymore
The failure sequence :
- Create a new directory or repository for the new version
- Update with your files (particularly images or icons)
- Site enable (example a sub-domain) on Apache
- Copy the database on new name
- Install manually .htaccess (compare and insert your valid options )
- Update "local.php"
- run <your new domain>/tiki-install.php. Goto the end (note an error occurs if your say at the end "run tiki" without locking or not because tiki-setup tries to re-open a session already automatically opened by installer). You just launch again (default tiki-index)
- Try to login as admin : You will be rejected as wrong password
Analysis - many possible reasons :
There are a lot of reasons to be in this situations. So to be successful a lot of conditions must be satisfied :
- If your new version uses the same current domain (after upgrade for my own I defines the same "servername" as current one and then keep the other when a particular name containng the version :
- The Cookies of session will try to reconnect an older version and a trace shows that the password is not the one you have given (generally empty). So the cookies of the site name must be cleared on your navigator
- The temp files or session table contain too wrong data : they must be cleared on server for your current copy (SVN update case)
- Your admin record in user_user record contains sessions data : they create a conflict which makes crash your login
- Be careful of the fact that you can have an open session in your navigator with the same site (sometimes we uses a lot of tab management which can create this : on firefox use showcase and search to clear your old sessions
- Generally avoid these problem is sufficient but at the end you will be prompt to update your password (as for the first login as admin with password admin). This can fail for the following reason : if the .htaccess is not set or modrewrite not well operational the <site name> will include the "port" used by your server. If your NAT translates the port address (i.e. 80-> 4397) you will get the following url <site>:4397/.... which fails
It is sure that if you use only one site close everything and upgrade you will get the minimum of problems but you will get someone anywhere.This situation is common and complex for whom have to manage product and data migration from one version (or several) of tiki to a new one.
It is not seen generally by developers, because it is not at all their common upgrade process nor test.
- Solution
The true solution is a modification of installer and userlib which will make useful resets that I have done successfully manually (after a lot of hours of work). It had been reproduced and tested twice.
The manual operations are described into "workaround" which can be reached only after summit.
- Workaround
Manual operations
- Be sure to have closen the url
- use phpmyadmin to access user_user : edit the admin record : set to null
- provpass
- lastlogin
- currentlogin
- challenge
- pass_confirm- Clear "temp" files and "sessions cache" if not in "temp"
- On the computer for the domain clear the cookies
- Launch the url: http(s)://<site>/tiki-change_password.php?user=admin
- You will be proposed to change the password (you must use a new one, even after login you go back to the old and current one)
- You are now logged in and will never have any problem
Everything will be now OK.
note for others users working on others computers:
For others users new sessions will be created. Some problem can occur with PHPSESSID for others users running a session while you make your update. Even they disconnect (you close the site during update - needed), when they reconnect the PHPSESSID cookie can give wrong data. The solution is to clear this cookie before reconnection after an upgrade (soft version and data structure).
Option :
- You can reset the admin record with the tiki.sql corresponding record. But be careful, if you have changed the minimum size of password you will fail...
I have developped an sql request which resets full default configuration for logins and reset admin default. But as it can change with new version I can be given only as example (valid till 8.4).
Naturally some of this operations are not necessary depending of options.- Easy to solve?
- 3
- Priority
- 15
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4162
- Created
- Saturday 18 February, 2012 13:36:00 UTC
by Bernard TREMBLAY - LastModif
- Friday 03 July, 2026 14:59:48 UTC