Skip to content

Fixing (Enhance): Notify to Email / Discord when Plugin got deleted #95

@siluthfi

Description

@siluthfi

Fixing (Enhance): Notify to Email / Discord when Plugin got deleted

Source Problem

[2025-05-14T13:53:24.805864+07:00] OJTLog.ERROR: Uncaught Exception InvalidArgumentException: "URI must be a string or UriInterface" at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/vendor/guzzlehttp/psr7/src/Utils.php line 457 {"exception":"[object] (InvalidArgumentException(code: 0): URI must be a string or UriInterface at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/vendor/guzzlehttp/psr7/src/Utils.php:457)"} []
[2025-05-14T13:53:24.805864+07:00] OJTLog.ERROR: Uncaught Exception InvalidArgumentException: "URI must be a string or UriInterface" at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/vendor/guzzlehttp/psr7/src/Utils.php line 457 {"exception":"[object] (InvalidArgumentException(code: 0): URI must be a string or UriInterface at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/vendor/guzzlehttp/psr7/src/Utils.php:457)"} []
[2025-05-15T14:41:36.387713+07:00] OJTLog.ERROR: Uncaught Exception Error: "Call to a member function setData() on null" at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/modules/ojtAdvanceSecurity/src/Features/ProtectFromIllegalBackLink/ProtectFromIllegalBackLink.php line 516 {"exception":"[object] (Error(code: 0): Call to a member function setData() on null at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/modules/ojtAdvanceSecurity/src/Features/ProtectFromIllegalBackLink/ProtectFromIllegalBackLink.php:516)"} []
[2025-05-15T14:41:36.566409+07:00] OJTLog.ERROR: Uncaught Exception Error: "Call to a member function setData() on null" at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/modules/ojtAdvanceSecurity/src/Features/ProtectFromIllegalBackLink/ProtectFromIllegalBackLink.php line 516 {"exception":"[object] (Error(code: 0): Call to a member function setData() on null at /home/e-journal.unair.ac.id/public_html/plugins/generic/ojtPlugin/modules/ojtAdvanceSecurity/src/Features/ProtectFromIllegalBackLink/ProtectFromIllegalBackLink.php:516)"} []

Konteks

OjtPlugin memiliki alur yang jika adanya error PHP yang bersumber dari folder OjtPlugin/modules/*, maka plugin yang berada pada folder tersebut akan dihapus otomatis untuk menghindari terjadinya Error 500.

Problem

Alur ini hanya memiliki logika untuk menghapus plugin secara otomatis dan mencatat error, sehingga tim developer/support tidak mengetahui adanya kejadian error yang terjadi pada sistem.

Solution

  • Lakukan penambahan notifikasi ke email / discord untuk mengetahui jika adanya terjadi PHP Error yang bersumber dari folder modules/

Impact

  • Tim developer/support langsung mendapat notifikasi saat terjadi error, mengurangi waktu respon.
  • Informasi error yang dikirim ke email/Discord membantu tim melakukan analisis lebih cepat.
  • Memungkinkan tracking error berulang dari plugin tertentu.

Notes


Assignees: []
Related Issues: []

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions