Easily integrate Spatie Ignition error pages into your OpenMage installation!
Thanks to @fballiano for the brilliant idea started here:
OpenMage/magento-lts#3954
This module requires the mage_run_installed_exception
event, introduced in OpenMage 20.7.0, to properly catch unhandled exceptions.
composer require empiricompany/openmage_ignition
If you prefer to manually patch OpenMage, add the following event dispatch inside app/Mage.php
:
self::dispatchEvent('mage_run_installed_exception', ['exception' => $e]);
Alternatively, you can apply this patch directly via Composer:
"patches": {
"openmage/magento-lts": {
"Add mage_run_installed_exception event for unhandled exceptions (#3613)": "https://github.com/OpenMage/magento-lts/pull/3613.patch"
}
}
Navigate to System > Configuration > Advanced > Developer > Ignition Settings:
Available settings:
-
Enabled — Enable or disable Ignition (default: enabled).
-
Default Editor — Set your preferred code editor (default: clipboard).
-
Default Theme — Choose between light, dark, or auto (default: auto).
-
Save Custom Settings in Session — Allow session-based overrides (default: disabled).
-
Enable AI-Generated Solutions — Generate error solutions with OpenAI.
Note: Requires installing the additional library:
composer require openai-php/client
⚠️ Warning: Caching is not yet implemented — every error will trigger an OpenAI API call. -
OpenAI API Key — API key for OpenAI integration.
-
Enable Flare — Enable error tracking with Flare.
-
Flare API Key — API key for your Flare project.
-
Anonymize IP — Anonymize user IP addresses sent to Flare.
Note:
Saving settings in .ignition.json
is currently not supported — all settings are stored in the OpenMage system configuration or session.
Ignition Error Page | Flare Integration |
---|---|
![]() |
![]() |
![]() |
![]() |