https://github.com/empiricompany/openmage_ignition
OpenMage spatie-ignition integration
https://github.com/empiricompany/openmage_ignition
Last synced: about 2 months ago
JSON representation
OpenMage spatie-ignition integration
- Host: GitHub
- URL: https://github.com/empiricompany/openmage_ignition
- Owner: empiricompany
- Created: 2024-04-24T10:49:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-09T08:51:45.000Z (about 1 year ago)
- Last Synced: 2025-03-06T05:37:54.370Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 51.8 KB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-openmage - Laravel Ignition
README
# OpenMage spatie-ignition integration
[](https://packagist.org/packages/empiricompany/openmage_ignition)
[](https://packagist.org/packages/empiricompany/openmage_ignition)Integrate ignition error page https://github.com/spatie/ignition in OpenMage!
Thanks to [@fballiano](https://github.com/fballiano) for his smart idea started here:
https://github.com/OpenMage/magento-lts/pull/3954## Installation
The module needs a new event `mage_run_installed_exception` to catch exceptions introduced in OpenMage 20.7.0.### Install composer package
```cli
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````php
self::dispatchEvent('mage_run_installed_exception', ['exception' => $e]);
```
- Or apply a patch from this PR:
```json
"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
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 FalreSave settings in file `.ignition.json` is not supported yet, all new settings will be saved directly in system config or in session.
---
## Screenshots


