Skip to content

empiricompany/openmage_ignition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenMage spatie-ignition integration

Latest Version on Packagist Total Downloads

Integrate ignition error page https://github.com/spatie/ignition in OpenMage!

Thanks to @fballiano for his smart idea started here: OpenMage/magento-lts#3954

Installation

The module needs a new event mage_run_installed_exception to catch exceptions introduced in OpenMage 20.7.0.

Install composer package

composer require empiricompany/openmage_ignition

Manually patch core files

If you want to manually patch you need to add new event in the file app/Mage.php

self::dispatchEvent('mage_run_installed_exception', ['exception' => $e]);

mage_run_installed_exception

  • Or apply a patch from this PR:
"patches": {
    "openmage/magento-lts": {
        "Add mage_run_installed_exception event when uncatched exception is thrown #3613": "https://github.com/OpenMage/magento-lts/pull/3613.patch"
    }
}

Ignition Settings

In System/Advanced/Developer section

settings

  1. Enabled: Enable / Disable (enable)
  2. Default Editor: set default editor (clipboard)
  3. Default Theme: set default theme (auto)
  4. Save custom settings in session: Enable if you want custom settings foreach session, otherwise settings will be overrided (disabled)
  5. Enable AI Generated Solution: Enable AI Generated Solution by OpenAI (⚠️ Warning: there is no cache implemention yet, so all errors always call OpenAI api)
  6. OpenAI API Key: OpenAI Api Key used to generate solutions
  7. Enable Flare: Enable error tracking with Flare
  8. Flare API Key: Flare Api Key of project
  9. Anonymize IP: anonymize IP sended to Falre

Save settings in file .ignition.json is not supported yet, all new settings will be saved directly in system config or in session.


Screenshots

demo1 demo2 idemo3

flare

About

OpenMage spatie-ignition integration

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages