The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Fri Apr 27, 2012 6:26 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 27, 2012 6:07 pm
Posts: 3
We upgraded our Joomla from 1.6 to 2.5.4 using the auto update feature. It was a 2 step process and the upgrade was successful. Right after the upgrade the admin login page stopped working. When I go to http://www.mysite.com/administrator/ it does not prompt the login dialogue instead it paints the header and shows the logout link to the right. At first this was very frustrating and I was almost going to restore from backup and roll back to the old version.

But then I am was able to get the login to the site by using the full login url http://www.mysite.com/administrator/ind ... =com_login ???

which is fine as I am at least able to get into the admin pages. But the problem is I am also able to see the rest of the admin pages even if my login session has expired by using the full URLS

eg. https://www.mysite.com/administrator/in ... com_config shows all the config value although it does not show the save buttons.

It sounds like the site is not redirecting to the login page when there is no valid session token. But I don't know where to look and fix this. I am hosted on HostGator, running Linux / Apache

Has anyone else experienced this problem? What is the fix ?


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 7:26 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 23, 2011 10:35 pm
Posts: 12
I'm experiencing it right now and trying to find a fix. I was able to get to the admin login page like you did, but once I log in, I get the same painted header and view site - logout to the right.

Frustrating to say the least. I've had some suggestions but not working so far. If I find the solution, I'll let you know.

Otherwise, I'll be reinstalling and starting over.


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 7:27 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23363
Location: @Webdongle
viewtopic.php?f=625&t=691030&p=2793967#p2793191

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 9:15 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 27, 2012 6:07 pm
Posts: 3
Webdongle, Thank you very much :-)

I applied the security patch http://joomlacode.org/gf/project/joomla ... m_id=28354

and it fixed the issue < 1 min.


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 9:22 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 23, 2011 10:35 pm
Posts: 12
I'm not a programmer and really don't understand it, but i"m learning. So, where and how do I apply the patch? Help would be appreciated!! :o)


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 9:36 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 27, 2012 6:07 pm
Posts: 3
I just directly edited the file the patch script was going to do.

Go to your-www-root/administrator/includes directory and look for file helper.php. Make a back-up copy of this file in case you accidentally mess it up, you can always revert back.

Open and edit the file: using whatever edit tools your hosting provider has

Look for the following line, it is inside the findOption() function

if (!$user->authorise('core.login.admin')) {

and replace it with this line

if (($user->get('guest')) || !$user->authorise('core.login.admin')) {

and save the file.

That's all I did. Hope this helps.


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 10:04 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23363
Location: @Webdongle
administrator/includes/helper.php administrator/includes/helper.php

line 27

Replace
if (!$user->authorise('core.login.admin')) {
with
if (($user->get('guest')) || !$user->authorise('core.login.admin')) {


Code:
      $option = strtolower(JRequest::getCmd('option'));
 
       $user = JFactory::getUser();
      if (!$user->authorise('core.login.admin')) {
          $option = 'com_login';
       }


Becomes
Code:
      $option = strtolower(JRequest::getCmd('option'));
 
       $user = JFactory::getUser();
      if (($user->get('guest')) || !$user->authorise('core.login.admin')) {
          $option = 'com_login';
       }

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 11:21 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 23, 2011 10:35 pm
Posts: 12
You guys Rock!! Thanks for the help. Worked perfectly.

Was ready to uninstall, backup, restore, etc. You saved me days of headache.

Thanks again!!


Top
 Profile  
 
PostPosted: Sat Apr 28, 2012 12:09 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23363
Location: @Webdongle
Not us, the dev's they did all the hard work

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Sat Apr 28, 2012 3:47 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 14709
Location: Kent, England
Webdongle wrote:
Not us, the dev's they did all the hard work


... and equally don't shoot the people on the forum trying to sort out your problems the rest of the time, as we are still (generally) just the messengers ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 



Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group