If you build or maintain WordPress sites, you know that fatal errors often go unnoticed until users start complaining.
Let’s fix that — here’s how to get real-time Telegram alerts for every critical error with Fatal to Telegram.
What does it do?
Whenever WordPress logs a fatal error, this plugin sends a detailed message to your Telegram:
- Error message & stack
- File and line
- Timestamp
- Site URL
Example:
🚨 Fatal error detected on mysite.com
Error: Call to undefined function...
File: /var/www/html/wp-content/plugins/someplugin.php
Line: 45
Time: 2024-06-16 13:37:42
How to Set Up
Create a Telegram bot:
Use @BotFather, run/newbot
, copy your token.-
Get your Chat ID:
- Personal: @userinfobot
- Group: add your bot, send a message, check via
https://api.telegram.org/bot<your_token>/getUpdates
- Find the
"chat": { "id": "-XXXXXXXXX" }
(negative for group).
-
Install the plugin:
- In WordPress admin, go to Plugins → Add New → search
Fatal to Telegram
. - Install & activate.
- In WordPress admin, go to Plugins → Add New → search
-
Configure:
- Paste your bot token & chat ID in plugin settings.
One bot can be used for multiple sites and different chats!
Why use it?
- Instant error monitoring (even while you sleep)
- Fix issues before users see the “white screen of death”
- Free, open-source, no coding required
Bonus: Login Monitoring
Want to monitor logins as well?
Try my Login Telegram Notifier — get alerts for every WordPress admin login.
Source & Feedback
Get Fatal to Telegram on WordPress.org
Open to ideas and feature requests!
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.