Resurrect Lost Joomla/Virtuemart Error Messages

Let me guess, you’ve got a Joomla/Virtuemart site up, but your visitors aren’t seeing any helpful error messages. Am I right? Say I try and log in with a bogus username, you’d like to see that error message down there.

Username and password do not match or you do not have an account yet.

…but instead you’re just getting a page refresh. Confusing, huh? Well, lucky for you it’s a simple template fix.

  1. Log into the Joomla admin panel and navigate to “Extensions->Template Manager.”
  2. Click on the name of your “Default” template (it should be starred).
  3. Click the “Edit HTML” button in the upper right.
  4. Add the below code to the template file right above the <jdoc:include type="component" /> line.

<!-- Display Error Messages -->
<jdoc:include type="message" />
<!-- End Messages -->
<jdoc:include type="component" />

Source: Login error message not showing, need fix

11 thoughts on “Resurrect Lost Joomla/Virtuemart Error Messages

  1. Hi

    I have a “strange” problem whereby some people can see Info and Error messages and some cannot.

    e.g. Adding an item to the Cart should return:

    Info: The product was added to your cart.

    I cannot see this message as with many others.

    I have tried Firefox and IE8; Windows 7, XP, Linux machines, to no avail.

    Is your above solution applicable to my problem?

    Why can some see the messages and others not?

    Thank You


  2. Hey Eddie, if some people are seeing the error messages and others are not, then this is not likely the solution to your problem.

    Are you talking about the popup that appears when you add an item to your cart? Is it blank?

  3. Hi Tristan

    Yes, the Info popup which appears next to Cart and above the basket.

    Also, error messages.


    A customer logs in, adds an item to the cart, proceeds to to Payment (after Shipping) and chooses to pay by credit card.

    Customer inputs no or incorrect card details (e.g. expiry date which is past).

    Nothing happens.

    The page seems to just return with no error messages.

    So, I lose the sale if the customer makes an input error as he is not seeing any message.

    Also, the server is not returning any messages. If I look at the source (ctl+u in Firefox) then there is no message for those who cannot see messages.

    I know of only one person who is seeing messages and if he looks at the source the message is visible.

    So, it cannot be a syle sheet declaration issue.

    I am using a customised VM template but have tried switching to the Default with no change.

    This problem is irrespective of browser or operating system.

    I am stumped.



  4. Also, the server is not returning any messages. If I look at the source (ctl+u in Firefox) then there is no message for those who cannot see messages.

  5. If I add as you said, my template show a duplicated area. Everything that’s appear on the main content , appears on site’s top. But if I remove the code , the success message doesn’t show up because the redirect.

  6. excelente Fix for this issue!!!
    i just add this line code in my index.php, but not before the just add in the $layout conditional.

    $layout = $tmplTools->getLayout ();
    if ($layout) {
    $tmplTools->display ($layout);

Comments are closed.