Debugging in Joomla

joomla debugging

Joomla is a powerful and flexible content management system (CMS) used by millions of websites worldwide. Like any software, however, Joomla websites can encounter errors or unexpected behavior. Whether you are building custom extensions, modifying templates, or maintaining an existing site, knowing how to debug Joomla effectively is an essential skill.

This article will guide you through Joomla's built-in debugging tools, useful extensions, and general best practices for troubleshooting issues on your Joomla site.

Enable Joomla Debug Mode

Joomla comes with a built-in Debug System, which provides helpful diagnostic information:

1. Log in to: Joomla Administrator panel.

2. Go to SystemGlobal Configuration.

joomla debugging global configuration

3. Under the System tab, find Debug Settings.

joomla debugging system

4. Set Debug System to Yes.

5. Save your changes.

When enabled, Joomla will display detailed information about database queries, memory usage, and loaded language files at the bottom of each page.

Important: Only enable Debug Mode on a development or staging site. On a live site, it can expose sensitive information to the public.

Enable Error Reporting

Another key tool is Joomla's Error Reporting setting. It controls how much PHP error information is displayed.

1. Go to: SystemGlobal ConfigurationServer tab.

joomla debugging error reporting

2. Find the Error Reporting settings.

3. Select Maximum (or Development) for the most detailed error messages.

joomla debugging error reporting to maximum

4. Save your changes.

This will show PHP notices, warnings, and fatal errors that can help you identify the root cause of a problem.

PHP Error Logs and Xdebug

For deeper debugging, use server-side PHP tools:

PHP error logs: Check your hosting control panel for PHP logs.

Xdebug: A PHP extension that provides advanced stack traces and works with IDEs (like PhpStorm or Visual Studio Code) for step-by-step debugging.

Xdebug can be invaluable when you need to trace complex bugs in Joomla components or extensions.

Xdebug PHP extension may turn on only at Hosting. It turn on only for Development environment.

Errors 403 and 404 in Joomla

When working with Joomla, you might sometimes see a 403 error or 404 error. A these errors is usually easy to diagnose once you understand what it means.

In Joomla, this can happen in both the frontend (public-facing site) and the backend (administrator panel).

Joomla Errors is can happen when:

  • Trying to access restricted content without proper credentials;
  • Incorrect file/folder permissions on the server;
  • Security extensions blocking access;
  • Misconfigured .htaccess rules;
  • Broken component or plugin permissions

Having an error.php file in your Joomla template is crucial for proper error handling and debugging. This file controls how errors are displayed to users and administrators. You may change what your clients see: if you change this file.

joomla debugging error file

On your website you see 403 error or 404 error when you not "turn on" the "SystemGlobal ConfigurationServer tab" .

When you "turn on" SystemGlobal ConfigurationServer tab - you see error details

joomla debugging error show

When you not see error details when you turn on debug mode - this mean: you have incorrect error.php file. So best will replace your template error.php file by "Joomla default error.php" file from: "{your website}/templates/cassiopeia/error.php"

Important: For errors report in "joomla admin part" responsible the file: "{your website}/administrator/templates/atum/error_full.php"

When Joomla Error occurs, error.php helps by:

  • Providing more detailed error information than the generic Error page;
  • Allowing administrators to see debugging information while showing users a friendly message;
  • Helping identify the exact cause of the permission issue.

Errors in Joomla

When working with Joomla, you might sometimes see a 403 - Forbidden error and 404 - Page Not Found error . A Joomla error is usually easy to diagnose once you understand what it means. A 403 error and 404 error are HTTP status codes that means your server understood the request, but it's refusing to allow it.

In Joomla, this can happen in both the frontend (public-facing site) and the backend (administrator panel).

What is Joomla Error 404?

Joomla Error 404 is a "Web Page not found" error that occurs when a user attempts to access a web page and this page don't exist or Server can't show it.

How to Fix Joomla 403 Error

  • Turn on "Debug Mode and Maximum report in Global settings"
  • Check files which you see in Error details

What is Joomla Error 403?

Joomla Error 403 is a "Forbidden Access" error that occurs when a user attempts to access a resource they don't have permission to view.

How to Fix Joomla 403 Error

  • Turn on "Debug Mode and Maximum report in Global settings"
  • Check file permissions: Ensure files are 644 and folders are 755;
  • Review .htaccess: Temporarily rename to see if it's causing the issue;
  • Check user permissions: Verify user groups have proper access rights;
  • Disable security extensions: Temporarily disable security plugins to test;
  • Clear cache: Both Joomla and browser cache;
  • Check component settings: Some components have their own ACL settings;

Always ensure this file exists and is properly configured in your Joomla template.

General Debugging Best Practices

  • Always back up your site before debugging.
  • Work on a development/staging environment instead of live sites.
  • Use version control (Git) to track code changes.
  • When reporting bugs to the Joomla community or extension developers, provide clear error messages and steps to reproduce the issue.

Debugging is an essential part of Joomla development and maintenance. By using Joomla's built-in tools, error reporting, logging, and third-party extensions, you can systematically identify and resolve problems.

Remember that careful debugging not only fixes issues, it also helps you better understand how Joomla works and improves the overall quality of your site.

Other Joomla Documentation:

Ordasoft website development company

»