WordPress SDK
The Nadi WordPress plugin provides error monitoring for WordPress sites.
Requirements
- PHP 8.1 or higher
- WordPress 5.0 or higher
Installation
From WordPress Admin
- Download the latest release from GitHub
- Go to Plugins → Add New → Upload Plugin
- Select the downloaded ZIP file
- Click Install Now
- Click Activate Plugin
Manual Installation
- Download and extract the plugin
- Upload the
nadi-wordpressfolder to/wp-content/plugins/ - Activate the plugin through the Plugins menu
Via WP-CLI
bash
wp plugin install https://github.com/nadi-pro/nadi-wordpress/releases/latest/download/nadi-wordpress.zip --activateQuick Start
- Activate the plugin
- Go to Settings → Nadi
- Enter your API Key and Application Key in the Credentials tab
- Click Save Settings
- Go to the Status tab and click Test Connection
How It Works
- Exceptions are captured by PHP's exception handler
- Exception data (stack trace, context, metrics) is written as a JSON file to the
log/directory - A WordPress cron job runs every minute and triggers the Shipper binary
- The Shipper binary reads pending JSON logs and sends them to the Nadi API
- Errors appear in your Nadi dashboard
What's Captured
Once configured, the plugin automatically captures:
- PHP errors and exceptions
- WordPress-specific errors (WP_Error)
- Plugin/theme errors
- Database errors
- AJAX errors
| Data | Description |
|---|---|
| Error | Message, file, line |
| Stack Trace | Full PHP trace |
| WordPress | Version, active theme, plugins |
| PHP | Version, memory limit |
| Request | URL, method, POST data |
| User | Logged-in user (if any) |
Next Steps
- Configuration - Settings tabs and options
- Error Tracking - Advanced error tracking
- Production Setup - Cron, permissions, and security