ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can’t log in and get error message saying username field required

October 06, 2010 8:44am

Subscribe [4]
  • #1 / Oct 06, 2010 8:44am

    Clive Portman

    83 posts

    Hi there

    One of our clients cannot log-in to his Expression Engine control panel (and neither can I) - when we enter our log-in details, an error message appears that says ‘The username field is required’

    I am the non-technical half of our business and my technical partner is out of the office and uncontactable today so not sure what to do - however the client wants a speedy response and solution so I am hoping that someone can tell me what may be causing this and if it can be solved (easily I hope!),

    Thanks
    Kate

  • #2 / Oct 06, 2010 9:26am

    Benjamin

    116 posts

    Do you know which version and build you are running?

    Have you tried;
    1. Login in with a different account (maybe a super admin account?).
    2. Tried a different web browser.
    3. Clearing cache (since you can’t login, try clearing your cache via FTP)

  • #3 / Oct 06, 2010 9:41am

    Clive Portman

    83 posts

    Hi there

    Thanks for your reply.

    I believe it is version 2.0
    I’ve tried logging on as a super admin but get same result and have also tried using different browsers but no change.
    Not sure how I go about clearing cache via FTP… can you help?

    Thanks
    Kate

  • #4 / Oct 06, 2010 9:55am

    Benjamin

    116 posts

    It’s pretty hard to help without knowing any details such as build version? 

    Has the website been upgraded to a new version or build recently?

    Do you have an FTP program, such as Filezilla, Transmit or something?

  • #5 / Oct 06, 2010 11:24am

    Clive Portman

    83 posts

    I have now located the version and build info from looking through the download history:

    Current Version: 2.1.0 - Build: 20100810

    It was a commercial licence upgraded mid February this year so has been working fine since then and there have been no recent changes made to the website.

    I have Filezilla as a FTP client.

    Thanks
    Kate

  • #6 / Oct 06, 2010 2:21pm

    Clive Portman

    83 posts

    Howdy.

    Have sorted this - was trying something with .htaccess and I hadn’t realised it was preventing the login. Stupid, I know.

    What I was trying to do was redirect domain.com/index.php to domain.com for search engine reasons. Does anyone know a way to do this with EE without wrecking the whole show?

  • #7 / Oct 06, 2010 3:23pm

    Benjamin

    116 posts

    There are multiple approaches to removing the index.php from the url, however, htaccess heavily depends on server settings so there isn’t really one solution to fit all, but here are some resources to get you started:

    Leevi Graham’s htaccess generator: http://devot-ee.com/add-ons/lg-htaccess-generator/

    Wiki entry: http://expressionengine.com/wiki/Remove_index.php_From_URLs/

  • #8 / Oct 06, 2010 5:09pm

    Clive Portman

    83 posts

    I’ve managed to remove index.php from the urls already, using this:

    # BEGIN ExpressionEngine Rewrite
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteRule ^(.*)$ /index.php?$1 [L]
    </IfModule>
    # END ExpressionEngine Rewrite

    ...but if someone manually enters domain.com/index.php into their browser I wanted it to redirect them to just domain.com. By adding a 301 redirect to do that, it caused the problem above.

    Anyone?

  • #9 / Oct 07, 2010 3:58am

    John Henry Donovan

    12339 posts

    monkey_don,

    We don’t support the removal of index.php via a htaccess so I am moving this thread to the CodeShare Corner for you.

    There is a quite in-depth Wiki article on htaccess rules available though

  • #10 / Dec 09, 2011 12:55pm

    aircrash

    293 posts

    Kate,

    Did you ever figure out a way to remove a manually entered index.php url? I’m running into the same login issue and haven’t been able to find a workaround.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases