DocsOCodeInsertSafe Mode — Full Guide
Reference

Safe Mode — Full Guide

OCodeInsertorravo.com/docs/ocodeinsert/safe-mode

Safe Mode -- Full Guide

Safe mode exists to protect your site when a snippet causes unexpected issues.

Activating Safe Mode

Option 1 -- Admin toggle:

Go to OCodeInsert -> Settings, enable Safe Mode, click Save Settings.

Option 2 -- URL parameter (per-request only):

Add ?oci_safe=1 to any frontend URL. Disables snippets for that request only -- no other visitors are affected.

Diagnosing Issues

  1. Use ?oci_safe=1 to confirm the issue is snippet-related
  2. Go to the Snippets list and pause snippets one by one to isolate the problem
  3. Edit the faulty snippet and correct the code
  4. Re-activate the snippet

Check Order

OCodeInsert evaluates snippets in this order:

  1. Is the plugin globally enabled?
  2. Is Safe Mode active?
  3. Is ?oci_safe=1 in the current URL?
  4. Does the snippet pass page type targeting?
  5. Does the snippet pass user condition?
  6. Does the snippet pass URL pattern matching?
  7. Is the snippet active?

All conditions must pass for a snippet to be injected.

Safe Mode — Full Guide — OCodeInsert Docs — Orravo