Troubleshooting Joomla: An error has occurred.

As you know Joomla has a bad error reporting. One of the most frustrating error message is ‘An error has occurred.’ followed by some error code like 1146. In this tutorial we will update Joomla’s core file so that it will show a more informative error messages instead of just error code.


We will modify the execute function of JControllerLegacy class, its in /joomlapath/libraries/legacy/controller/legacy.php on Joomla 3.2.x. In this function we will add an exception handling code so that it will display php stack trace when an exception has occurred.


Leave a Comment

Your email address will not be published. Required fields are marked *