SEC-19A · Section 19: Troubleshooting, Error Guide & Manual Administration
✓ Fully Implemented
Troubleshooting & System Error Message Reference Guide
Complete diagnostic reference covering all 10 major error scenarios: login failure, forgotten password, access denied (403), tenant mismatch, missing prayer times, expired trial/unpaid subscription (402), file upload failure, form validation failure, and duplicate kariah records.
1. Login Failure & Forgotten Password
- Symptom: "Invalid email or password" on
/login. - Cause & Remedy:
- Verify email spelling and confirm that the account status in `users` is `active` (not `suspended`).
- If 5 failed attempts occurred within 15 minutes, wait 15 minutes for the brute-force lock to clear.
- To reset a forgotten password, visit
/{lang}/forgot-password, request a reset token (valid for 60 minutes), and set a new 12–72 character password at/{lang}/reset-password.
2. Access Denied (403 Forbidden) & Tenant Mismatch
- Symptom: HTTP `403 Forbidden` when opening a management screen or submitting an action.
- Cause & Remedy:
- Missing Role Permission: Check the live permission matrix at `/manual/roles` or `/admin/permissions`.
- Mosque Tenant Mismatch: Attempting to modify records belonging to another `mosque_id`. Visit `/mosque-admin` and select your authorized mosque.
- MAIN/JAKIM Jurisdiction Mismatch: Filtering by a `state_id` outside your verified `institution_state_access` grants.
3. Missing Prayer Times or Stale Schedule Warning
- Symptom: Prayer widget shows a zone setup prompt or stale cached schedule warning.
- Remedy: Select a verified `prayer_zone_id` in `/mosque-admin/prayer` and click Sync Now, or run `php database/manage.php prayer-sync`.
4. Expired Trial & Unpaid Subscription (HTTP 402)
- Symptom: Read-only subscription banner on `/mosque-admin/*`, HTTP `402 Payment Required` on form submission, or locked institutional dashboard on `/main/dashboard` or `/jakim/dashboard`.
- Remedy: Open `/mosque-admin/subscription`, `/main/subscription`, or `/jakim/subscription`, generate a renewal invoice if needed, and complete payment via toyyibPay or manual bank transfer.
5. File Upload Failure, Form Validation Failure & Duplicate Kariah Member Record
- File Upload Failure:
- Mosque registration documents (`/register-mosque`) & payment proofs: must be PDF, JPG, or PNG (≤ 5 MB).
- Mosque logo/cover, CMS/editorial images & activity posters: must be JPG, PNG, or WEBP (≤ 3 MB).
- Form Validation Failure (HTTP 400 / 422): Ensure postcodes are 5 digits, external links start with `https://`, end times are not before start times, and browser cookies are enabled for CSRF validation.
- Duplicate Kariah Member Record: When an application is flagged Possible duplicate — review manually in `/mosque-admin/kariah-members`, check the Member Directory first. If the applicant is genuinely a distinct individual, check Approve as separate member and enter a 10+ character reason.
Input Fields & Options Reference
| HTTP Status / Error | Primary Cause | Immediate Remedy |
|---|---|---|
400 Bad Request | Missing or expired CSRF token. | Refresh the page, ensure cookies are enabled, and resubmit. |
402 Payment Required | Trial expired or subscription is expired / suspended. | Settle the renewal invoice on your subscription page. |
403 Forbidden | Insufficient role permission or cross-tenant/cross-state access attempt. | Verify active role permissions or switch active mosque at /mosque-admin. |
405 Method Not Allowed | POST to a read-only route or GET to /logout. | Use the standard in-app navigation and form buttons. |
422 Unprocessable Entity | Validation error (postcode, email, date range, file MIME/size, or duplicate record). | Read the alert banner above the form and correct the highlighted field. |
Expected Results: Users and administrators can rapidly diagnose and resolve any operational error in Kariahku.com.
Important Notes & Data Boundaries: For additional categorized Q&A across all 11 topics, visit the <a href="faq"><strong>FAQ Center</strong></a> at `/{lang}/manual/faq`.
Common Errors & Troubleshooting
If you encounter an unexpected server issue, check PHP and database connectivity using php database/manage.php status.