1. PHP Version Check
PHP Version: 8.1.33
✅ PHP version is compatible
2. Configuration File Check
✅ config.php exists
3. Database Connection Test
✅ Database connection successful
Tables found: 7
- activity_logs
- application_forms
- divisions
- international_exhibition_data
- regional_offices_data
- users
- work_submissions
4. File Permissions Check
login.php: 0644
dashboard.php: 0644
includes/config.php: 0644
uploads: 0755
5. PHP Extensions Check
✅ pdo extension loaded
✅ pdo_mysql extension loaded
✅ session extension loaded
6. Session Test
Warning: session_start(): Session cannot be started after headers have already been sent in
/home/dashboardtdapgov/public_html/debug_errors.php on line
86
✅ Sessions working
7. Uploads Directory Check
✅ Uploads directory exists and is writable
8. Config File Include Test
✅ Config file included successfully
✅ Database class working
9. Common Solutions
If you see errors above, try these solutions:
- Database Connection Error: Check if database exists in cPanel and user has proper permissions
- File Permission Error: Set PHP files to 644, folders to 755
- Missing Tables: Run the database setup script
- PHP Version Error: Contact hosting provider to upgrade PHP
- Missing Extensions: Contact hosting provider to enable required extensions
10. Next Steps
After fixing any errors above:
- Delete this debug file for security
- Try accessing login.php
- If still having issues, check cPanel Error Logs