Recurring failures from editor builds, submit, and Firebase.
Quiz Builder issues
What is failing?
Rebuild block PHP
Run npx turbo build --filter=@prc/quiz-builder. Confirm build/{block}/class-*.php exists. Check logs for Block missing.
Check kill switch, publish state, rate limit, Firebase
See the sections below for 403/404/429 vs group 503.
This answer needs a valid destination.
Edit the block and connect this answer to another question or outcome.
Blocks missing after a build
Symptom: prc-quiz/controller (or another quiz block) missing or invalid.
Cause: load_blocks() globs build/*/; missing compiled PHP is logged and skipped.
Fix: Rebuild @prc/quiz-builder and verify PHP under build/.
Submissions fail
Symptom: Submit returns 403, 404, 429, or a generic error.
Cause: $rest_disabled kill switch, unpublished/missing quiz, or rate limit (100/quiz/IP/minute).
Fix: Confirm publish state; wait on 429; set $rest_disabled = false only for a real emergency.
Group quizzes return 503
Symptom: Create-group or group submit says the results service is unavailable.
Cause: Firebase Realtime Database or Auth not configured.
Fix: Generate the service account (npm run gen:firebase-sa); confirm prc-firebase loads it. Non-group submits may still return persisted: false.
Analytics sidebar missing
Symptom: No quiz analytics panel in the editor.
Cause: Panel enqueues only when $screen->post_type === 'quiz'.
Fix: Edit the quiz CPT directly, not only a page that embeds Synced Quiz.