Questions Loading Troubleshooter

Fix "Error Loading Questions" issues

Step 1: Test API Endpoint

Testing if the questions API is working correctly...

Testing GET /api/questions.php

Loading...

Step 2: Database Check

Verifying database tables and data...

• survey_categories: ✓ Exists

• survey_questions: ✓ Exists


• Categories: 4

• Active Questions: 10

Step 3: Browser Console

Check detailed error messages:

  1. 1. Press F12 to open Developer Tools
  2. 2. Click the Console tab
  3. 3. Look for any error messages in red
  4. 4. Screenshots can help with debugging

Common Errors:

  • Cannot read properties of undefined (reading 'replace') - Fixed in latest update
  • Failed to fetch - Server not running or wrong URL
  • JSON.parse error - API returning invalid JSON

Solution Checklist

If problems persist, check the admin debug panel or contact support.