Troubleshooting

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.

  1. 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.
  2. For WordPress, enable debug. Add define('WP_DEBUG', true); and define('WP_DEBUG_LOG', true); to wp-config.php. Errors are written to wp-content/debug.log. Turn this off once fixed, so errors are not shown to visitors.
  3. 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.
  4. 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.

Related articles

My website is down, what do I do?How do I fix a 500 Internal Server Error?What causes 502 and 504 gateway errors?How do I fix a 403 Forbidden error?Why am I getting a 404 Not Found error?