Solved : You Need to Fill in your username – SMF login and registration error

Have you recently installed SMF (Simple Machines Forum) and are unable to login using the admin login? If you face this problem and see errors of this nature on the screen (like the screenshot bleow) then here is the complete solution for your problems.

SMF login / registration failure

SMF login / registration failure

How to fix “You Need to Fill in your username” – SMF login and registration error

1. Make sure the version of the website you are using is same as your forum.
This means if you have your website at makesure your forum path is In simpler words if your website is non www then the forum must not be www and vice versa.

You can edit this while installation or by running the repair settings file. Download it from this link and run the file to fix the issue.

2. Make sure your website does not redirect all index.php to “/” or root page of a folder.
e.g in my case my SEO site had htaccess configuration to redirect to only

All code like the following must be properly handled. Restrict them to particular directories or only the home directories if you need that redirect badly.

 RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$$1 [R=301,L]