🔍 SafeVoice Login Debug Tool
1. Database Connection
✓ Database connection successful
Database: popya_safe
Host: localhost
User: popya_safe
2. Users Table Check
✓ Found 5 user(s) in database
| ID | Username | Role | Category | Full Name | Active | Last Login |
|---|
| 1 | admin | super_admin | - | System Administrator | ✓ Yes | 2025-11-10 08:02:54 |
| 2 | lifeline | expert | Lifeline/Childline | Lifeline Namibia | ✓ Yes | 2025-12-15 11:19:46 |
| 3 | NAMPOL | expert | Police | Namibian Police | ✓ Yes | 2025-11-03 11:24:15 |
| 4 | MGECW | expert | Ministry of Gender | Ministry of Gender Equality | ✓ Yes | Never |
| 5 | MOHSS | expert | Ministry of Health | Ministry of Health and Social Services | ✓ Yes | Never |
3. Password Verification Test
4. Session Configuration
Session Status: Active
Session Name: safevoice_session
Session Lifetime: 3600 seconds
Current Session ID: 1tdpual0bmpght6054a5k0bnd5
Session Data: Contains data
5. File Permissions
| Path | Status |
|---|
| uploads/ | ✓ OK |
| logs/ | ✓ OK |
| includes/config.php | ✓ OK |
| includes/database.php | ✓ OK |
| includes/auth.php | ✓ OK |
6. Quick Fixes
If login still doesn't work:1. Run
generate_passwords.php to create correct password hashes
2. Copy the SQL UPDATE statement and run it in your database
3. Make sure all users have is_active = 1
4. Clear your browser cookies and try again
5. Check that PHP sessions are working on your server