🔍 Operations Database Debug

1. Database Connection

✓ Database connected successfully!

2. Required Tables

Table NameStatusRow Count
departments✓ Exists9
staff✓ Exists1
staff_emergency_contacts✓ Exists0
staff_certifications✓ Exists0
staff_availability✓ Exists0
staff_shifts✓ Exists0
staff_documents✓ Exists1
department_staff✓ Exists0
department_resources✓ Exists0
tasks✓ Exists8
task_dependencies✓ Exists0
task_comments✓ Exists0
task_attachments✓ Exists0

3. Database Views

View NameStatus
department_summary✓ Exists
staff_summary✓ Exists
task_summary✓ Exists

4. Query Tests

QueryStatusDetails
departments✓ SuccessReturned 14 columns
staff✓ SuccessReturned 29 columns
tasks✓ SuccessReturned 20 columns

5. Sample Data

Departments:

IDNameCodeBudgetStatus
1OperationsOPS$50,000.00active
2ProductionPROD$75,000.00active
3SecuritySEC$40,000.00active
4MedicalMED$30,000.00active
5HospitalityHOSP$35,000.00active

Staff:

Total staff members: 1

Tasks:

Total tasks: 8

6. Foreign Key Constraints

TableColumnReferences
departmentsdepartment_head_idstaff.id
department_resourcesdepartment_iddepartments.id
department_staffstaff_idstaff.id
department_staffstaff_idstaff.id
department_staffdepartment_iddepartments.id
department_staffdepartment_iddepartments.id
staffdepartment_iddepartments.id
staff_availabilitystaff_idstaff.id
staff_certificationsstaff_idstaff.id
staff_documentsstaff_idstaff.id
staff_emergency_contactsstaff_idstaff.id
staff_shiftsdepartment_iddepartments.id
staff_shiftsstaff_idstaff.id
tasksdepartment_iddepartments.id
tasksparent_task_idtasks.id
tasksassigned_tostaff.id
task_attachmentstask_idtasks.id
task_commentstask_idtasks.id
task_dependenciesdepends_on_task_idtasks.id
task_dependenciestask_idtasks.id

7. PHP Environment

SettingValue
PHP Version8.2.28
PDO Driversmysql, sqlite
Display Errors
Error Reporting22527

8. Recent PHP Errors

Error log: /home/u420726827/.logs/error_log_soundhavenfestival_com

[23-Dec-2025 19:10:35 UTC] W9 Upload DB Error: Database operation failed. Please try again later.
[23-Dec-2025 19:10:35 UTC] W9 Upload Error: Database insert failed: Database operation failed. Please try again later.
[23-Dec-2025 19:10:55 UTC] Database Query Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'contract_id' in 'INSERT INTO'
[23-Dec-2025 19:10:55 UTC] W9 Upload DB Error: Database operation failed. Please try again later.
[23-Dec-2025 19:10:55 UTC] W9 Upload Error: Database insert failed: Database operation failed. Please try again later.
[23-Dec-2025 19:11:08 UTC] Database Query Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'contract_id' in 'INSERT INTO'
[23-Dec-2025 19:11:08 UTC] W9 Upload DB Error: Database operation failed. Please try again later.
[23-Dec-2025 19:11:08 UTC] W9 Upload Error: Database insert failed: Database operation failed. Please try again later.
[23-Dec-2025 19:12:00 UTC] W9 Upload DB Error (PDO): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'contract_id' in 'INSERT INTO'
[23-Dec-2025 19:12:00 UTC] W9 Upload Error: Database error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'contract_id' in 'INSERT INTO'
[23-Dec-2025 19:12:52 UTC] W9 Upload Error: Upload failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'INSERT INTO'
[23-Dec-2025 19:13:02 UTC] W9 Upload Error: Upload failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'INSERT INTO'
[24-Dec-2025 07:36:33 UTC] Vendor webhook received: 2025-12-24 07:36:33
[24-Dec-2025 07:36:33 UTC] Webhook signature verification failed: Unable to extract timestamp and signatures from header
[24-Dec-2025 20:35:06 UTC] Webhook received at 2025-12-24 20:35:06
[24-Dec-2025 20:35:06 UTC] Webhook error: Invalid signature - Unable to extract timestamp and signatures from header
[25-Dec-2025 17:16:14 UTC] Vendor webhook received: 2025-12-25 17:16:14
[25-Dec-2025 17:16:14 UTC] Webhook signature verification failed: Unable to extract timestamp and signatures from header
[25-Dec-2025 17:16:14 UTC] Webhook received at 2025-12-25 17:16:14
[25-Dec-2025 17:16:14 UTC] Webhook error: Invalid signature - Unable to extract timestamp and signatures from header

9. Recommendations

✓ Everything looks good!

Debug completed at 2025-12-25 19:07:01