How do I diagnose a PHP error?
PHP errors can show as a blank page, a "500" error, or a message on screen. The key is to see the actual error text, which usually tells you the file and line to fix.
- Check the error log. In the DirhamHost panel at my.dirhamaday.ae, open Errors or your site's error log. Look at the most recent entry; it names the file, line and type of error.
- For WordPress, enable debug. Add
define('WP_DEBUG', true);anddefine('WP_DEBUG_LOG', true);towp-config.php. Errors are written towp-content/debug.log. Turn this off once fixed, so errors are not shown to visitors. - Read the message. Common types: a fatal error (often a plugin/theme conflict or missing function), a memory exhausted error (raise the PHP memory limit), or a deprecated/syntax error after a PHP version change.
- Check the PHP version. In MultiPHP Manager, make sure your site runs a version its code supports; some errors appear only after an upgrade.
Once you know the offending file and message, you can usually deactivate the responsible plugin/theme or correct the code.
If the error is unclear or in core files, send us the exact log entry on WhatsApp +971 58 553 6767 or support@dirhamaday.ae and our 24/7 team will help interpret and fix it.
Still need a hand? Our UAE-based team is here 24/7.