Forums | Mahara Community

Support /
Login form

03 July 2013, 2:51 AM

Hi, I am new to Mahara things and have a question, how do I make the login form is displayed?

Thank you

Aaron Wells's profile picture
Posts: 896

03 July 2013, 9:15 AM

Hi Norbert,

Welcome to Mahara!

Are you asking how to display the login form? It should just show up on the Mahara homepage after you have finished installation. Here's the manual page about it:


03 July 2013, 6:43 PM

Hi Aaron,

Thank you for your Welcome!

This is my installation: After installation there was a login form. But now, I've no idea, where is the login form. As an admin, I can login with Is it possible, that I have turned off something in the backend ?



Aaron Wells's profile picture
Posts: 896

03 July 2013, 8:06 PM

I see, your front page is not showing the login form at all. Smile I have seen this happen occasionally, usually with new Mahara installations. If you've just newly installed Mahara, probably the easiest thing to do is to delete it and reinstall, and see if that fixes the problem.

If you're good with PHP and would like to troubleshoot the problem, the first thing I'd recommend is turning on error message output on your site. If you're using Mahara 1.7 or later, you can do that by adding this to your config.php file:

$cfg->productionmode = false;

From there, well, the login form is  not a hard-coded part of the Mahara front page. Instead, it's a "sideblock", and whether or not it is displayed on the front page is determined by some function calls that happen when Mahara is processing the page template. Generally speaking, it should always show up on the front page if you're not logged in. But there do appear to be some erroneous combinations of configuration settings that can make it not show up.

Anyway, the code that adds the login block to the front page is in htdocs/lib/web.php, around line 584. Specifically, it's the call to auth_generate_login_form() that does it. In theory, you could examine what's going on in that part of the code. But if you're not familiar with PHP, it may be a tricky thing to investigate.

Good luck, and let me know if you need any further help!


04 July 2013, 1:00 AM

I have a new installation made ​​under Everything works fine. Thanks for the support.



5 results