[SOLVED]Cannot login to Joomla backend as admin

February 11th, 2009 by amatesi

Recently I encountered a whole load of problems related to Joomla and my new business open source web site.

Here I’m gonna post some general info and experiences, useful to troubleshoot possible joomla problems, especially related to when you’re unable to login to the administrator backend (I know how it feels, just free your mind: computers are numbers and circuits).

What I am sharing here is my reaction to frustration, with suggestions and feedback received from the official joomla! forum and the official joomla! italian community (thanks – you know who you are).

please check here: http://forum.joomla.it/index.php/topic,56790.0.html and

and here: http://forum.joomla.org/viewtopic.php?f=431&t=262426

The first thing I feel to suggest you is to check configuration.php and .htaccess files on you site’s root.

It’s important for configuration.php not to contain any blank lines; also, check this file in respect to the Linux/UNIX text file conventions. On Windows, text file lines’ are terminated with a CRLF, on Linux/UNIX instead, the lines of a text file are terminated with just a LF (for a tutorial on what that means, check here: http://usertools.plus.net/tutorials/id/22).

The .htaccess (on the contrary of configuration.php), may contain blank lines, just make sure that, if any, they respect the ‘foretold Linux/UNIX text file conventions (lines have to be ended by LFs); also, check and make sure the rules are correct and there are no hidden CRLF after the rules declarations (in case of doubt, restore the original htaccess.txt from an untouched joomla! build).

From my experience, those checks helped me solve my admin loop, cannot login problems; an obvious way to avoid this kind of problems is to become a power user on the Linux side (aka pwrusr), but that’s a personal choice! If working directly on your joomla! site with, say, Ubuntu, these problems would’nt have ever happened to any of us (I admit it: I was jerking on my site with my powerful Vista64 gaming rig).

Another useful thing to check for, is to make sure you have the right PHP version: make sure your host is serving you with PHP 5 (since joomla was made with it). How to discover if you have PHP5 if you can’t access the admin backend? Well, upload on your site’s root the uncompressed file JTSPOST (here: http://joomlacode.org/gf/project/jts/frs/), and open the address corresponding to the copied file’s name. Once you open it up, it’s gonna give you some useful info about joomla! and your server, included what php version you have.
Please remeber that if you happen to fix your problem, then remove JTSPOST from your server’s root, because if you forgive it there, you may leave a possible information security hole.

OK, so, going on, as I said, I checked the joomla! official forums, and referred to them for other possible problems and related suggestions, wich I will report here for the sake of completeness (note that I edited some parts for some added clarity):

Suggestion n.1)

  1. edited the file administrator/components/com_login/admin.login.php to comment out line 69 (//LoginController::display() )
  2. browsed to the login page.
  3. [tried to login] and got an ‘Invalid token‘ message.
  4. Reedited the [administrator/components/com_login/]admin.login.php file to remove my comment at line 69.
  5. Refreshed the login page in my browser and got the normal login form.
  6. Logged in [successfully].

 try this and if it doesn’t work, then:

Suggestion n.2) [user inoxfire]

  1. edit file administrator/components/com_login/admin.login.php [to comment out line 57, // JRequest::checkToken('request') or jexit( 'Invalid Token' );]
  2. browsed to the login page.
  3. [tried to login] and got an ‘Invalid token‘ message.
  4. Reedited the [administrator/components/com_login/]admin.login.php file to remove my comment at line 57.
  5. Refreshed the login page in my browser and got the normal login form.

 try this and if it doesn’t work, then:

Suggestion n.3)

  1. Log into phpMyAdmin and navigate to the jos_plugins table.
  2. Look for the "User – Joomla!".
  3. Ensure that it is published as mine was not (set published to 1 just in case).
  4. [Look for] in row "Authentication – Joomla"
  5. Ensure that it is published as mine was not (set published to 1 just in case).

 try this and if it doesn’t work, then:

Suggestion n.4)
  1. first check your Super Admin status:
    [Open PHPmyAdmin] in the "jos_users" table set SuperAdmin to:
    – field "id" – value "62"
    – field "gid" – value "25" or "26".
  2. in the "jos_core_acl_aro" table find row for "62":
    – field "id" – write this down (should be 10 normally) – this is the "aro_id".
  3. in the "jos_core_acl_groups_aro_map" table find row for "aro_id" = 10
    – "group_id" should be "25" or "26".

BONUS:

If, for some reasons, you need to reset your joomla! admin password, or if you need to offer admin access to somebody else, or for whatever the reason, please change it by doing so:

  1. Open PHPmyAdmin.
  2. access your joomla DB and goto table jos_users.
  3. modify "admin"-row and set it’s password code to this: 21232f297a57a5a743894a0e4a801fc3 (it’s the equivalent of ‘admin‘).

(for more info and explanations, check this post over here: http://forum.joomla.org/viewtopic.php?t=10985).

Hope this info is useful for everyone, and wish you all have a good time.

Posted in Joomla, Web Master | 118 Comments »

Joomla & Flash intro welcome (or splash) page integration

November 18th, 2007 by amatesi

My first post is gonna talk about the nice integration often searched by people 'round the web…
Enter Joomla & Flash Integration:

Quickstart for the impatient
1) Create a Section/Category/Content of your choice (say "intro").
2) Create a void Joomla theme (go to compassdesign, they have an already made one ready).
3) Customize the template to your needs (insert your Flash intro).
4) Upload Add the template to your Joomla install setup and associate the template to the "intro" Section.
5) Set the "intro" section as your first mainmenu entry and give assign it "Special" permissions.

…done: your site now will have a nice Flash intro!

For the less impaired, here's a more detailed descriptive explanation:

As in point 1), you were taught to c 1) Create a new section (so you can assign the custom template to this new section). So, as usual, "New" -> "Section" and name it as you desire whatever you want); "New" -> "Category" and name it, then "New" -> "Content" and save, then create a new menu entry linked to this section (called say "intro") wich connects.

2) Next we need a Get a null basic void template for joomla, go get yours at from www.compassdesigns.net (note  first you'll have to register, so proceed and then search for "blank site template").

When 3) Once you have downloaded your void template, open it up with your fav text editor (mine is PSPad gVim ;) ), and customize it with your code:

  • Find the <body>.
  • Insert your splash intro code there (well, here I'm not gonna go with many details: you'll have to know some basic (X)HTML on you own before doing that].
  • Now 4)Upload your hand-modified template as usual from the Joomla backend (basically, install as usual: Go to "Install" -> "Templates" and upload your template from there).

5) From the "template chooser" and open your listed template; from there and make an "association" from the template to your "Menu Voice" (use the "Associate" button up-right).

2011/06/30 – UPDATE n.1) Sorry for my english: this was my first post and it was written long ago! I've tried to clean it up somehow, so bear with me. Also, please keep in mind that my Joomla! articles were written for Joomla! 1.0.11, 1.0.12 and 1.0.13 (as far as I remember). Today things should have _dramatically_ changed and probably there are more efficient ways to add a flash intro to your Joomla! site than the one described ;-) Thank you all for your comments.

Posted in Joomla, Web Master | 9 Comments »